find_all_sub_account.go 1.1 KB

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