16 lines
313 B
Go
16 lines
313 B
Go
package common
|
|
|
|
type Login struct {
|
|
Username string `json:"username"`
|
|
Password string `json:"password"`
|
|
}
|
|
|
|
type LoginResp struct {
|
|
Success bool `json:"success"`
|
|
Payload struct {
|
|
Token string `json:"token"`
|
|
Expiration int `json:"expiration"`
|
|
} `json:"payload"`
|
|
Error interface{} `json:"error"`
|
|
}
|