SubAccountDetail.go 1.0 KB

1234567891011121314151617181920212223242526272829303132
  1. package http_model
  2. import "youngee_m_api/model/gorm_model"
  3. type SubAccountDetailRequest struct {
  4. PageSize int `json:"page_size"`
  5. PageNum int `json:"page"`
  6. JobId *int `json:"job_id,omitempty"` // 可选的岗位类型
  7. AccountStatus *int `json:"account_status,omitempty"` // 可选的账号状态
  8. Others string `json:"others,omitempty"` //手机号或账号名称
  9. }
  10. type SubAccountDetailResponse struct {
  11. SubAccountInfo gorm_model.YounggeeSubAccount //子账号详情
  12. JobName string `json:"job_name"`
  13. Creater string `json:"creater"`
  14. }
  15. type SubAccountData struct {
  16. SubAccountInfo []*SubAccountDetailResponse `json:"SubAccountData"`
  17. Total string `json:"total"`
  18. }
  19. func NewSubAccountDetailRequest() *SubAccountDetailRequest {
  20. return new(SubAccountDetailRequest)
  21. }
  22. func NewSubAccountDetailResponse() *CommonResponse {
  23. resp := new(CommonResponse)
  24. resp.Data = new(SubAccountData)
  25. return resp
  26. }