addNewSubAccount.go 836 B

12345678910111213141516171819202122232425
  1. package http_model
  2. type AddNewSubAccountRequest struct {
  3. EnterpriseId string `json:"enterprise_id"` // 子账号属于的企业id
  4. PhoneNumber string `json:"phone_number"` // 手机号
  5. SubAccountName string `json:"sub_account_name"` // 子账号名称
  6. JobId int `json:"job_id"` // 岗位ID
  7. Code string `json:"code"` // 验证码
  8. }
  9. type AddNewSubAccountData struct {
  10. UserID int64 `json:"user_id"` // 用户id
  11. EnterpriseId string `json:"enterprise_id"` // 企业id
  12. SubAccountID string `json:"sub_account_id"` // 子账号id
  13. }
  14. func NewAddSubAccountRequest() *AddNewSubAccountRequest {
  15. return new(AddNewSubAccountRequest)
  16. }
  17. func NewAddSubAccountResponse() *CommonResponse {
  18. resp := new(CommonResponse)
  19. resp.Data = new(AddNewSubAccountData)
  20. return resp
  21. }