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

md_enterprise.go 1.7 KiB

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