find_all_sub_account.go 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. package http_model
  2. type FindAllSubAccountRequest struct {
  3. PageNum int32 `json:"page"`
  4. PageSize int32 `json:"page_size"`
  5. SupplierId int `json:"supplier_id"` // 子账号属于的服务商id
  6. JobId int `json:"job_id"` // 岗位ID
  7. AccountStatus int `json:"account_status"` // 账号状态,1为正常,2为停用
  8. Condition string `json:"condition"` // 搜索框内容
  9. }
  10. type FindAllSubAccountInfo struct {
  11. SubAccountId int `json:"sub_account_id"` // 子账号ID
  12. PhoneNumber string `json:"phone_number"` // 手机号
  13. SubAccountName string `json:"sub_account_name"` // 子账号名称
  14. JobId int `json:"job_id"` // 岗位ID
  15. JobName string `json:"job_name"` // 岗位名称
  16. SupplierId int `json:"supplier_id"` // 所属服务商ID
  17. SupplierName string `json:"supplier_name"` // 所属服务商名称
  18. AccountStatus int `json:"account_status"` // 账号状态,1为正常,2为停用
  19. UserId int `json:"user_id"` // 用户表中ID
  20. }
  21. type FindAllSubAccountData struct {
  22. SubAccountInfo []*FindAllSubAccountInfo `json:"sub_account_info"` // 子账号信息列表
  23. Total int64 `json:"total"` // 总数
  24. }
  25. func NewFindAllSubAccountRequest() *FindAllSubAccountRequest {
  26. return new(FindAllSubAccountRequest)
  27. }
  28. func NewFindAllSubAccountResponse() *CommonResponse {
  29. resp := new(CommonResponse)
  30. resp.Data = new(FindAllSubAccountData)
  31. return resp
  32. }