12345678910111213141516171819202122232425262728293031 |
- package http_model
- type FindAllSubAccountRequest struct {
- SupplierId int `json:"supplier_id"` // 子账号属于的服务商id
- }
- type FindAllSubAccountInfo struct {
- SubAccountId int `json:"sub_account_id"` // 子账号ID
- PhoneNumber string `json:"phone_number"` // 手机号
- SubAccountName string `json:"sub_account_name"` // 子账号名称
- JobId int `json:"job_id"` // 岗位ID
- JobName string `json:"job_name"` // 岗位名称
- SupplierId int `json:"supplier_id"` // 所属服务商ID
- AccountStatus int `json:"account_status"` // 账号状态,1为正常,2为停用
- UserId int `json:"user_id"` // 用户表中ID
- }
- type FindAllSubAccountData struct {
- SubAccountInfo []*FindAllSubAccountInfo `json:"sub_account_info"` // 子账号信息列表
- Total int64 `json:"total"` // 总数
- }
- func NewFindAllSubAccountRequest() *FindAllSubAccountRequest {
- return new(FindAllSubAccountRequest)
- }
- func NewFindAllSubAccountResponse() *CommonResponse {
- resp := new(CommonResponse)
- resp.Data = new(FindAllSubAccountData)
- return resp
- }
|