30 lines
594 B
Go
30 lines
594 B
Go
package api
|
|
|
|
type RequestAPIUserCreate struct {
|
|
Username string `json:"username"`
|
|
Password string `json:"password"`
|
|
}
|
|
|
|
type RequestAPILogin struct {
|
|
Username string `json:"username"`
|
|
Password string `json:"password"`
|
|
}
|
|
|
|
type ResponseAPILogin struct {
|
|
Token string `json:"token"`
|
|
}
|
|
|
|
type ResponseAPIFilePost struct {
|
|
Message string `json:"message"`
|
|
Files []ResponseAPIFilePostFiles `json:"files"`
|
|
}
|
|
|
|
type ResponseAPIFilePostFiles struct {
|
|
ID string `json:"id"`
|
|
URL string `json:"url"`
|
|
}
|
|
|
|
type ResponseAPIUserList struct {
|
|
Usernames []string `json:"usernames"`
|
|
}
|