enterprise_create.go 1.2 KB

12345678910111213141516171819202122232425262728
  1. package http_model
  2. type CreateEnterpriseRequest struct {
  3. EnterpriseId int `json:"enterprise_id"` // 企业id
  4. UserId int `json:"user_id"` // 对应用户id
  5. RealName string `json:"real_name"` // 真实姓名
  6. Phone string `json:"phone"` //手机号
  7. Industry int `json:"industry"` // 行业,1-14分别代表能源、化工、材料、机械设备/军工、企业服务/造纸印刷、运输设备、旅游酒店、媒体/信息通信服务、批发/零售、消费品、卫生保健/医疗、金融、建材/建筑/房地产、公共事业
  8. BusinessName string `json:"business_name"` // 公司或组织名称
  9. Email string `json:"email"` // 电子邮件
  10. Code string `json:"code"` //验证码
  11. }
  12. type CreateEnterpriseData struct {
  13. EnterpriseId int `json:"enterprise_id"` // 企业id
  14. }
  15. type CreateUserData struct {
  16. UserID int `json:"user_id"` // 用户id
  17. }
  18. func NewCreateEnterpriseRequest() *CreateEnterpriseRequest {
  19. return new(CreateEnterpriseRequest)
  20. }
  21. func NewCreateEnterpriseResponse() *CommonResponse {
  22. resp := new(CommonResponse)
  23. resp.Data = new(CreateEnterpriseData)
  24. return resp
  25. }