mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-05-01 07:35:58 +08:00
cms
This commit is contained in:
@@ -1,10 +1,6 @@
|
||||
package cms_api_struct
|
||||
|
||||
|
||||
type RequestPagination struct {
|
||||
PageNumber int `json:"page_number"`
|
||||
ShowNumber int `json:"show_number"`
|
||||
PageNumber int `form:"page_number" binding:"required"`
|
||||
ShowNumber int `form:"show_number" binding:"required"`
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,65 @@
|
||||
package cms_api_struct
|
||||
|
||||
type GetUsersResponse struct {
|
||||
|
||||
type UserResponse struct {
|
||||
ProfilePhoto string `json:"profile_photo"`
|
||||
Nickname string `json:"nick_name"`
|
||||
UserId string `json:"user_id"`
|
||||
CreateTime string `json:"create_time"`
|
||||
}
|
||||
|
||||
type GetUserRequest struct {
|
||||
UserId string `form:"user_id"`
|
||||
}
|
||||
|
||||
type GetUserResponse struct {
|
||||
UserResponse
|
||||
}
|
||||
|
||||
type GetUsersRequest struct {
|
||||
RequestPagination
|
||||
}
|
||||
|
||||
type GetUsersResponse struct {
|
||||
Users []*UserResponse `json:"users"`
|
||||
}
|
||||
|
||||
type ResignUserRequest struct {
|
||||
UserId string `json:"user_id"`
|
||||
}
|
||||
|
||||
type ResignUserResponse struct {
|
||||
}
|
||||
|
||||
type AlterUserRequest struct {
|
||||
UserId string `json:"user_id"`
|
||||
}
|
||||
|
||||
type AlterUserResponse struct {
|
||||
}
|
||||
|
||||
type AddUserRequest struct {
|
||||
}
|
||||
|
||||
type AddUserResponse struct {
|
||||
}
|
||||
|
||||
type BlockUserRequest struct {
|
||||
UserId string `json:"user_id"`
|
||||
}
|
||||
|
||||
type BlockUserResponse struct {
|
||||
}
|
||||
|
||||
type UnblockUserRequest struct {
|
||||
UserId string `json:"user_id"`
|
||||
}
|
||||
|
||||
type UnBlockUserResponse struct {
|
||||
}
|
||||
|
||||
type GetBlockUsersRequest struct {
|
||||
RequestPagination
|
||||
}
|
||||
|
||||
type GetBlockUsersResponse struct {
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user