26 lines
588 B
Go
26 lines
588 B
Go
package model
|
|
|
|
import "encoding/json"
|
|
|
|
// ApiReq ...
|
|
type ApiReq struct {
|
|
Module string `json:"module"`
|
|
Action string `json:"action"`
|
|
Timestamp int64 `json:"timeStamp"`
|
|
}
|
|
|
|
// ApiResp ...
|
|
type ApiResp struct {
|
|
ResponseData json.RawMessage `json:"response_data"`
|
|
ReleaseInfo []any `json:"release_info"`
|
|
StatusCode int `json:"status_code"`
|
|
}
|
|
|
|
// ApiUserInfoResp ...
|
|
type ApiUserInfoResp struct {
|
|
Result UserInfo `json:"result"`
|
|
Status int `json:"status"`
|
|
CommandNum bool `json:"commandNum"`
|
|
TimeStamp int64 `json:"timeStamp"`
|
|
}
|