面包店
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

50 line
1.9 KiB

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