🎨 完善部分用户相关接口

This commit is contained in:
2025-04-17 17:41:47 +08:00
parent 00df85c4f0
commit 44f1b5d4b5
11 changed files with 211 additions and 15 deletions

View File

@@ -1,5 +1,7 @@
package request
import "git.echol.cn/loser/lckt/model/common/request"
type SendCodeReq struct {
Phone string `json:"phone" vd:"@:len($)>0; msg:'手机号码不能为空'"`
}
@@ -32,11 +34,18 @@ type BindWechatReq struct {
UnionId string `json:"unionId" gorm:"type:varchar(64);comment:用户统一标识。针对一个微信开放平台帐号下的应用,同一用户的 unionid 是唯一的。"`
}
type BindQQReq struct {
QQ string `json:"qq" vd:"@:len($)>0; msg:'QQ号不能为空'"`
}
type BindPhoneReq struct {
Id int `json:"id" vd:"@:len($)>0; msg:'用户ID不能为空'"`
Phone string `json:"phone" vd:"@:len($)>0; msg:'手机号码不能为空'"`
}
type GetUserListReq struct {
request.PageInfo
Type int `json:"type"`
UserLabel string `json:"user_label" `
}
type SetBalanceReq struct {
Id int `json:"id" vd:"@:len($)>0; msg:'用户ID不能为空'"`
Balance float32 `json:"balance" vd:"@:len($)>0; msg:'余额不能为空'"`
}