You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
77 lines
2.2 KiB
77 lines
2.2 KiB
package cms_api_struct
|
|
|
|
type UserResponse struct {
|
|
FaceURL string `json:"faceURL"`
|
|
Nickname string `json:"nickName"`
|
|
UserID string `json:"userID"`
|
|
CreateTime string `json:"createTime,omitempty"`
|
|
CreateIp string `json:"createIp,omitempty"`
|
|
LastLoginTime string `json:"lastLoginTime,omitempty"`
|
|
LastLoginIp string `json:"lastLoginIP,omitempty"`
|
|
LoginTimes int32 `json:"loginTimes"`
|
|
LoginLimit int32 `json:"loginLimit"`
|
|
IsBlock bool `json:"isBlock"`
|
|
PhoneNumber string `json:"phoneNumber"`
|
|
Email string `json:"email"`
|
|
Birth string `json:"birth"`
|
|
Gender int `json:"gender"`
|
|
}
|
|
|
|
type AddUserRequest struct {
|
|
OperationID string `json:"operationID" binding:"required"`
|
|
PhoneNumber string `json:"phoneNumber" binding:"required"`
|
|
UserId string `json:"userID" binding:"required"`
|
|
Name string `json:"name" binding:"required"`
|
|
Email string `json:"email"`
|
|
Birth string `json:"birth"`
|
|
Gender string `json:"gender"`
|
|
FaceURL string `json:"faceURL"`
|
|
}
|
|
|
|
type AddUserResponse struct {
|
|
}
|
|
|
|
type BlockUser struct {
|
|
UserResponse
|
|
BeginDisableTime string `json:"beginDisableTime"`
|
|
EndDisableTime string `json:"endDisableTime"`
|
|
}
|
|
|
|
type BlockUserRequest struct {
|
|
OperationID string `json:"operationID" binding:"required"`
|
|
UserID string `json:"userID" binding:"required"`
|
|
EndDisableTime string `json:"endDisableTime" binding:"required"`
|
|
}
|
|
|
|
type BlockUserResponse struct {
|
|
}
|
|
|
|
type UnblockUserRequest struct {
|
|
OperationID string `json:"operationID" binding:"required"`
|
|
UserID string `json:"userID" binding:"required"`
|
|
}
|
|
|
|
type UnBlockUserResponse struct {
|
|
}
|
|
|
|
type GetBlockUsersRequest struct {
|
|
OperationID string `json:"operationID" binding:"required"`
|
|
RequestPagination
|
|
}
|
|
|
|
type GetBlockUsersResponse struct {
|
|
BlockUsers []BlockUser `json:"blockUsers"`
|
|
ResponsePagination
|
|
UserNums int32 `json:"userNums"`
|
|
}
|
|
|
|
type GetUserIDByEmailAndPhoneNumberRequest struct {
|
|
OperationID string `json:"operationID" binding:"required"`
|
|
PhoneNumber string `json:"phoneNumber"`
|
|
Email string `json:"email"`
|
|
}
|
|
|
|
type GetUserIDByEmailAndPhoneNumberResponse struct {
|
|
UserIDList []string `json:"userIDList"`
|
|
}
|