Merge Go frontend (apiserver + xcecli) into meson build
This commit is contained in:
parent
43dc12a36c
commit
c9dc8c4676
205 changed files with 30793 additions and 328 deletions
19
src/frontend/xcecli/models/logon.go
Executable file
19
src/frontend/xcecli/models/logon.go
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
package models
|
||||
|
||||
// LogonData define the data structure in the logon response
|
||||
type LogonData struct {
|
||||
Token string `json:"token"`
|
||||
Path string `json:"path"`
|
||||
IP string `json:"ip"`
|
||||
CreateTime int64 `json:"createtime"`
|
||||
TokenExpireTime int64 `json:"token_expire_time"`
|
||||
}
|
||||
|
||||
// LogonResponse define the data structure in the logon response
|
||||
type LogonResponse struct {
|
||||
Code int `json:"code"`
|
||||
Msg string `json:"msg"`
|
||||
Data LogonData `json:"data"`
|
||||
Count int `json:"count"`
|
||||
CACert string `json:"cacert"`
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue