44 lines
1.5 KiB
Go
44 lines
1.5 KiB
Go
package srv_user
|
|
|
|
import (
|
|
"videoweb/pub/models/usermod"
|
|
"videoweb/pub/pubdef"
|
|
)
|
|
|
|
type UserListReq struct {
|
|
pubdef.Page
|
|
Id *int64 `json:"id"` // 用户ID
|
|
AccountNo string `json:"accountNo"` // 账号(精确)
|
|
Email string `json:"email"` // 邮箱(精确)
|
|
NickName string `json:"nickName"` // 昵称(模糊)
|
|
DistrictCode string `json:"districtCode"` // 渠道码
|
|
Status *pubdef.UserStatus `json:"status"` // 状态
|
|
Type *pubdef.UserType `json:"type"` // 用户类型
|
|
}
|
|
|
|
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"`
|
|
}
|
|
|
|
type GiftCoinReq struct {
|
|
UserId int64 `json:"userId" binding:"required"` // 目标用户ID
|
|
Coin int64 `json:"coin" binding:"required"` // 赠送金币数(正数=增加,负数=扣除)
|
|
Remark string `json:"remark"` // 备注(记录在流水表)
|
|
}
|
|
|
|
type UpdateVipReq struct {
|
|
UserId int64 `json:"userId" binding:"required"` // 用户ID
|
|
PackageId int64 `json:"packageId" binding:"required"` // 会员畅享套餐ID
|
|
}
|
|
|
|
type ResetPasswordReq struct {
|
|
UserId int64 `json:"userId" binding:"required"` // 用户ID
|
|
Password string `json:"password" binding:"required"` // 明文密码
|
|
}
|