You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
54 lines
3.0 KiB
54 lines
3.0 KiB
package v1
|
|
|
|
import "github.com/gogf/gf/v2/os/gtime"
|
|
|
|
// InsertMemberReq 用户注册
|
|
type InsertMemberReq struct {
|
|
Name string `json:"name" v:"required#姓名不可为空!"`
|
|
Code string `json:"code"`
|
|
Tel string `json:"tel" v:"required#电话号码不可为空!"`
|
|
Type int `json:"type"`
|
|
Url string `json:"url"`
|
|
WeChat string `json:"weChat"`
|
|
Email string `json:"email" v:"required#邮箱号不可为空!"`
|
|
Source int `json:"source" d:"0" dc:"数据来源, 0:原数据,现赢在美股导流部分 1:现DeepChart导流部分"`
|
|
BenefitIntention string `json:"benefit_intention" dc:"用户选择的优先获取的权益意向 1:DeepChart 2:夺宝奇兵 3:专题课 用英文逗号分割,不要带空格"`
|
|
}
|
|
|
|
// GetMemberListReq 获取用户信息
|
|
type GetMemberListReq struct {
|
|
Source int `json:"source" d:"0" dc:"数据来源, 0:原数据,现赢在美股导流部分 1:现DeepChart导流部分"`
|
|
Page int `p:"page" d:"1"`
|
|
PageSize int `p:"page_size" d:"20"`
|
|
}
|
|
|
|
// GetMemberListRes 获取用户信息
|
|
type GetMemberListRes struct {
|
|
Id int `json:"id" orm:"id" description:"主键id"`
|
|
Name string `json:"name" orm:"name" description:"姓名"`
|
|
Code string `json:"code" orm:"code" description:"国家/地区代码"`
|
|
Telephone string `json:"telephone" orm:"telephone" description:"电话号码"`
|
|
Wechat string `json:"wechat" orm:"wechat" description:"微信ID"`
|
|
Email string `json:"email" orm:"email" description:"邮箱"`
|
|
CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"添加时间"`
|
|
Type int `json:"type" orm:"type" description:"注册来源(0其他,1视频,2直播,3帖子)"`
|
|
Url string `json:"url" orm:"url" description:"来源地址"`
|
|
UrlMd5 string `json:"urlMd5" orm:"url_md5" description:"来源地址(MD5加密)"`
|
|
IsRelated int `json:"isRelated" orm:"is_related" description:"是否联系"`
|
|
Note string `json:"note" orm:"note" description:"备注"`
|
|
Source int `json:"source" orm:"source" description:"数据来源, 0:原数据,现赢在美股导流部分 1:现DeepChart导流部分"`
|
|
BenefitIntention string `json:"benefit_intention" orm:"benefit_intention" description:"用户选择的优先获取的权益意向 1:DeepChart 2:夺宝奇兵 3:专题课 用英文逗号分割,不要带空格"`
|
|
RegistrationIntention string `json:"registration_intention" dc:"用户报名意向"`
|
|
}
|
|
|
|
// UpdateStateReq 更新状态
|
|
type UpdateStateReq struct {
|
|
Id int `json:"id" v:"required"`
|
|
State int `json:"state" v:"required|integer|in:0,1"`
|
|
}
|
|
|
|
// EditNoteReq 修改备注
|
|
type EditNoteReq struct {
|
|
Id int `json:"id" v:"required"`
|
|
Note string `json:"note"`
|
|
}
|