2023-02-09 16:11:18 +08:00
|
|
|
package apistruct
|
2021-12-27 18:22:32 +08:00
|
|
|
|
|
|
|
|
type UserRegisterReq struct {
|
|
|
|
|
Secret string `json:"secret" binding:"required,max=32"`
|
2022-09-29 15:53:54 +08:00
|
|
|
Platform int32 `json:"platform" binding:"required,min=1,max=12"`
|
2022-01-19 18:14:53 +08:00
|
|
|
ApiUserInfo
|
2021-12-27 18:22:32 +08:00
|
|
|
OperationID string `json:"operationID" binding:"required"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type UserTokenInfo struct {
|
2021-12-28 18:03:51 +08:00
|
|
|
UserID string `json:"userID"`
|
2021-12-27 18:22:32 +08:00
|
|
|
Token string `json:"token"`
|
|
|
|
|
ExpiredTime int64 `json:"expiredTime"`
|
|
|
|
|
}
|
|
|
|
|
type UserRegisterResp struct {
|
|
|
|
|
UserToken UserTokenInfo `json:"data"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type UserTokenReq struct {
|
|
|
|
|
Secret string `json:"secret" binding:"required,max=32"`
|
2022-09-29 15:53:54 +08:00
|
|
|
Platform int32 `json:"platform" binding:"required,min=1,max=12"`
|
2021-12-27 18:22:32 +08:00
|
|
|
UserID string `json:"userID" binding:"required,min=1,max=64"`
|
|
|
|
|
OperationID string `json:"operationID" binding:"required"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type UserTokenResp struct {
|
|
|
|
|
UserToken UserTokenInfo `json:"data"`
|
|
|
|
|
}
|
2022-05-10 09:45:55 +08:00
|
|
|
|
2022-06-06 20:39:45 +08:00
|
|
|
type ForceLogoutReq struct {
|
2022-09-29 15:53:54 +08:00
|
|
|
Platform int32 `json:"platform" binding:"required,min=1,max=12"`
|
2022-06-07 11:42:15 +08:00
|
|
|
FromUserID string `json:"fromUserID" binding:"required,min=1,max=64"`
|
2022-06-06 20:39:45 +08:00
|
|
|
OperationID string `json:"operationID" binding:"required"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ForceLogoutResp struct {
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-10 09:45:55 +08:00
|
|
|
type ParseTokenReq struct {
|
|
|
|
|
OperationID string `json:"operationID" binding:"required"`
|
|
|
|
|
}
|
|
|
|
|
|
2022-05-10 11:57:25 +08:00
|
|
|
//type ParseTokenResp struct {
|
2023-03-08 17:29:03 +08:00
|
|
|
//
|
2022-05-10 11:57:25 +08:00
|
|
|
// ExpireTime int64 `json:"expireTime" binding:"required"`
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
type ExpireTime struct {
|
2022-05-10 12:07:09 +08:00
|
|
|
ExpireTimeSeconds uint32 `json:"expireTimeSeconds" `
|
2022-05-10 11:57:25 +08:00
|
|
|
}
|
|
|
|
|
|
2022-05-10 09:45:55 +08:00
|
|
|
type ParseTokenResp struct {
|
2022-06-29 18:48:17 +08:00
|
|
|
Data map[string]interface{} `json:"data" swaggerignore:"true"`
|
2022-05-10 12:20:53 +08:00
|
|
|
ExpireTime ExpireTime `json:"-"`
|
2022-05-10 09:45:55 +08:00
|
|
|
}
|