来源:hgdjnet-server 9bfbafe10d417deea959bd53117bc88a10e60a83 项目身份 HKDJ / JHA-216,独立官网仓库,Jenkins 守卫键 hkdjnet 测试目录 /server/hkdj_net,App/Web API 30331/30332 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
44 lines
1.5 KiB
Go
44 lines
1.5 KiB
Go
package srv_user
|
|
|
|
import (
|
|
"hkdj-web-server/pub/models/usermod"
|
|
"hkdj-web-server/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"` // 明文密码
|
|
}
|