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.
Open-IM-Server/pkg/cms_struct/user.go

77 lines
2.2 KiB

2 years ago
package cms_struct
3 years ago
3 years ago
type UserResponse struct {
2 years ago
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"`
3 years ago
}
type AddUserRequest struct {
2 years ago
OperationID string `json:"operationID" binding:"required"`
2 years ago
PhoneNumber string `json:"phoneNumber" binding:"required"`
UserId string `json:"userID" binding:"required"`
3 years ago
Name string `json:"name" binding:"required"`
Email string `json:"email"`
Birth string `json:"birth"`
Gender string `json:"gender"`
2 years ago
FaceURL string `json:"faceURL"`
3 years ago
}
type AddUserResponse struct {
}
3 years ago
type BlockUser struct {
UserResponse
2 years ago
BeginDisableTime string `json:"beginDisableTime"`
EndDisableTime string `json:"endDisableTime"`
3 years ago
}
3 years ago
type BlockUserRequest struct {
2 years ago
OperationID string `json:"operationID" binding:"required"`
2 years ago
UserID string `json:"userID" binding:"required"`
EndDisableTime string `json:"endDisableTime" binding:"required"`
3 years ago
}
type BlockUserResponse struct {
}
type UnblockUserRequest struct {
2 years ago
OperationID string `json:"operationID" binding:"required"`
2 years ago
UserID string `json:"userID" binding:"required"`
3 years ago
}
type UnBlockUserResponse struct {
}
type GetBlockUsersRequest struct {
2 years ago
OperationID string `json:"operationID" binding:"required"`
3 years ago
RequestPagination
}
type GetBlockUsersResponse struct {
2 years ago
BlockUsers []BlockUser `json:"blockUsers"`
3 years ago
ResponsePagination
2 years ago
UserNums int32 `json:"userNums"`
3 years ago
}
2 years ago
type GetUserIDByEmailAndPhoneNumberRequest struct {
OperationID string `json:"operationID" binding:"required"`
2 years ago
PhoneNumber string `json:"phoneNumber"`
2 years ago
Email string `json:"email"`
}
type GetUserIDByEmailAndPhoneNumberResponse struct {
UserIDList []string `json:"userIDList"`
}