蛋蛋星球 后台端
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.

md_customer_service.go 1.5 KiB

3 weeks ago
2 weeks ago
3 weeks ago
123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package md
  2. type PageCustomerServiceReq struct {
  3. Page int `json:"page"`
  4. PageSize int `json:"page_size"`
  5. State int `json:"state"` //状态
  6. Memo string `json:"memo" example:"备注"`
  7. Phone string `json:"phone"` // 手机号
  8. }
  9. type PageCustomerServiceResp struct {
  10. Page int `json:"page"`
  11. PageSize int `json:"page_size"`
  12. Total int64 `json:"total"`
  13. List []struct {
  14. Id int64 `json:"id"` //记录id
  15. Phone string `json:"phone" example:"手机号"`
  16. Nickname string `json:"nickname" example:"昵称"`
  17. Weight int32 `json:"weight"` // 权重
  18. State int32 `json:"state"` // 状态(1:正常 2:冻结)
  19. HaasUserNums int `json:"has_user_nums"` // 拥有用户数量
  20. Memo string `json:"memo" example:"备注"` // 备注
  21. CreateTime string `json:"create_time" example:"创建时间"` // 创建时间
  22. UpdateTime string `json:"update_time" example:"更新时间"` // 更新时间
  23. } `json:"list"`
  24. }
  25. type AddCustomerServiceReq struct {
  26. Phone string `json:"phone" example:"手机号"`
  27. Memo string `json:"memo" example:"备注"` // 备注
  28. Weight int32 `json:"weight"` // 权重
  29. }
  30. type SetCustomerServiceStateReq struct {
  31. Id int `json:"id"` // 拥有用户数量
  32. State int32 `json:"state"` // 状态
  33. }
  34. type UpdateCustomerServiceMemoReq struct {
  35. Id int `json:"id"` // 拥有用户数量
  36. Memo string `json:"memo" example:"备注"` // 备注
  37. }