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.

56 lines
3.2 KiB

  1. package v1
  2. import "github.com/gogf/gf/v2/os/gtime"
  3. // InsertMemberReq 用户注册
  4. type InsertMemberReq struct {
  5. Name string `json:"name" v:"required#姓名不可为空!"`
  6. Code string `json:"code"`
  7. Tel string `json:"tel" v:"required#电话号码不可为空!"`
  8. Type int `json:"type"`
  9. Url string `json:"url"`
  10. WeChat string `json:"weChat"`
  11. Email string `json:"email" v:"required#邮箱号不可为空!"`
  12. Source int `json:"source" d:"0" dc:"数据来源, 0:原数据,现赢在美股导流部分 1:现DeepChart导流部分"`
  13. BenefitIntention string `json:"benefit_intention" v:"required#请选择您希望优先获取的权益!" dc:"用户选择的优先获取的权益意向 1:DeepChart 2:夺宝奇兵 3:专题课 用英文逗号分割,不要带空格"`
  14. //WeChat string `json:"weChat" v:"required#微信ID不可为空!"`
  15. //Code string `json:"code" v:"required#国家/地区代码不可为空!"`
  16. }
  17. // GetMemberListReq 获取用户信息
  18. type GetMemberListReq struct {
  19. Source int `json:"source" d:"0" dc:"数据来源, 0:原数据,现赢在美股导流部分 1:现DeepChart导流部分"`
  20. Page int `p:"page" d:"1"`
  21. PageSize int `p:"page_size" d:"20"`
  22. }
  23. // GetMemberListRes 获取用户信息
  24. type GetMemberListRes struct {
  25. Id int `json:"id" orm:"id" description:"主键id"`
  26. Name string `json:"name" orm:"name" description:"姓名"`
  27. Code string `json:"code" orm:"code" description:"国家/地区代码"`
  28. Telephone string `json:"telephone" orm:"telephone" description:"电话号码"`
  29. Wechat string `json:"wechat" orm:"wechat" description:"微信ID"`
  30. Email string `json:"email" orm:"email" description:"邮箱"`
  31. CreatedAt *gtime.Time `json:"createdAt" orm:"created_at" description:"添加时间"`
  32. Type int `json:"type" orm:"type" description:"注册来源(0其他,1视频,2直播,3帖子)"`
  33. Url string `json:"url" orm:"url" description:"来源地址"`
  34. UrlMd5 string `json:"urlMd5" orm:"url_md5" description:"来源地址(MD5加密)"`
  35. IsRelated int `json:"isRelated" orm:"is_related" description:"是否联系"`
  36. Note string `json:"note" orm:"note" description:"备注"`
  37. Source int `json:"source" orm:"source" description:"数据来源, 0:原数据,现赢在美股导流部分 1:现DeepChart导流部分"`
  38. BenefitIntention string `json:"benefit_intention" orm:"benefit_intention" description:"用户选择的优先获取的权益意向 1:DeepChart 2:夺宝奇兵 3:专题课 用英文逗号分割,不要带空格"`
  39. RegistrationIntention string `json:"registration_intention" dc:"用户报名意向"`
  40. }
  41. // UpdateStateReq 更新状态
  42. type UpdateStateReq struct {
  43. Id int `json:"id" v:"required"`
  44. State int `json:"state" v:"required|integer|in:0,1"`
  45. }
  46. // EditNoteReq 修改备注
  47. type EditNoteReq struct {
  48. Id int `json:"id" v:"required"`
  49. Note string `json:"note"`
  50. }