24 lines
546 B
Go
24 lines
546 B
Go
package srv_user
|
|
|
|
import (
|
|
"videoweb/pub/models/usermod"
|
|
"videoweb/pub/pubdef"
|
|
)
|
|
|
|
type UserListReq struct {
|
|
pubdef.Page
|
|
Id *int64 `json:"id"` // 用户ID
|
|
NickName string `json:"nickName"` // 昵称(模糊)
|
|
Status *pubdef.UserStatus `json:"status"` // 状态
|
|
}
|
|
|
|
type UserListResp struct {
|
|
Total int64 `json:"total"`
|
|
List usermod.UserList `json:"list"`
|
|
}
|
|
|
|
type UserUpdateReq struct {
|
|
Id int64 `json:"id" binding:"required"`
|
|
Param usermod.UserUpdate `json:"param"`
|
|
}
|