面包店
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

44 lines
1.6 KiB

  1. package md
  2. type EnterpriseListReq struct {
  3. Limit int `json:"limit"`
  4. Page int `json:"page" `
  5. Name string `json:"name" binding:"required" label:"名称"`
  6. Memo string `json:"memo" label:"备注"`
  7. LeadName string `json:"lead_name" label:"负责人姓名"`
  8. LeadPhone string `json:"lead_phone" label:"负责人手机号"`
  9. }
  10. type EnterpriseListResp struct {
  11. Id int `json:"id" binding:"required" label:"公司id"`
  12. State int32 `json:"state" label:"状态"`
  13. Name string `json:"name" binding:"required" label:"名称"`
  14. Memo string `json:"memo" label:"备注"`
  15. LeadName string `json:"lead_name" label:"负责人姓名"`
  16. LeadPhone string `json:"lead_phone" label:"负责人手机号"`
  17. CreateAt string `json:"create_at" label:"创建时间"`
  18. UpdateAt string `json:"update_at" label:"更新时间"`
  19. }
  20. type EnterpriseUpdateStateReq struct {
  21. Id int `json:"id" binding:"required" label:"企业id"`
  22. State int32 `json:"state" label:"状态"`
  23. }
  24. type EnterpriseDeleteReq struct {
  25. EnterpriseIds []int `json:"enterprise_ids"`
  26. }
  27. type EnterpriseAddReq struct {
  28. Name string `json:"name" binding:"required" label:"名称"`
  29. CompanyId int `json:"company_id" binding:"required" label:"所属公司id"`
  30. Memo string `json:"memo" label:"备注"`
  31. }
  32. type EnterpriseUpdateReq struct {
  33. Id int `json:"id" binding:"required" label:"公司id"`
  34. Name string `json:"name" binding:"required" label:"名称"`
  35. CompanyId int `json:"company_id" binding:"required" label:"所属公司id"`
  36. Memo string `json:"memo" label:"备注"`
  37. }