16 lines
314 B
Go
16 lines
314 B
Go
|
package apimodel
|
||
|
|
||
|
import "time"
|
||
|
|
||
|
// LoginRequest is the login API request
|
||
|
type LoginRequest struct {
|
||
|
ClientID string `json:"username"`
|
||
|
Password string `json:"password"`
|
||
|
}
|
||
|
|
||
|
// LoginResponse is the login API response
|
||
|
type LoginResponse struct {
|
||
|
Expire time.Time `json:"expire"`
|
||
|
Token string `json:"token"`
|
||
|
}
|