智慧食堂
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

md_enterprise.go 1.8 KiB

pirms 1 gada
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. package md
  2. import "applet/app/db/model"
  3. type EnterpriseAddReq struct {
  4. Name string `json:"name" binding:"required" label:"名称"`
  5. Pvd int32 `json:"pvd" label:"场景"`
  6. Kind int32 `json:"kind" binding:"required" label:"种类(1:央厨-学校 2:央厨-工厂 3:自营-学校 4:自营-工厂)"`
  7. CompanyId int `json:"company_id" binding:"required" label:"所属公司id"`
  8. Memo string `json:"memo" label:"备注"`
  9. }
  10. type EnterpriseUpdateReq struct {
  11. Id int `json:"id" binding:"required" label:"企业id"`
  12. Name string `json:"name" binding:"required" label:"名称"`
  13. Pvd int32 `json:"pvd" label:"场景"`
  14. Kind int32 `json:"kind" binding:"required" label:"种类(1:央厨-学校 2:央厨-工厂 3:自营-学校 4:自营-工厂)"`
  15. CompanyId int `json:"company_id" binding:"required" label:"所属公司id"`
  16. Memo string `json:"memo" label:"备注"`
  17. State int32 `json:"state" label:"状态"`
  18. GradeList []struct {
  19. Name string `json:"name" label:"名称"`
  20. ClassList []struct {
  21. Name string `json:"name" label:"名称"`
  22. } `json:"class_list" label:"班级"`
  23. } `json:"grade_list" label:"年级"`
  24. }
  25. type EnterpriseDeleteReq struct {
  26. EnterpriseIds []int `json:"enterprise_ids"`
  27. }
  28. type EnterpriseUpdateStateReq struct {
  29. Id int `json:"id" binding:"required" label:"企业id"`
  30. State int32 `json:"state" label:"状态"`
  31. }
  32. type EnterpriseListReq struct {
  33. Limit int `json:"limit"`
  34. Page int `json:"page" `
  35. Name string `json:"name" label:"名称"`
  36. Kind int `json:"kind" label:"种类"`
  37. }
  38. type EnterpriseDetailResp struct {
  39. Enterprise model.Enterprise `json:"enterprise"`
  40. GradeList []GradeListStruct `json:"grade_list"`
  41. }
  42. type GradeListStruct struct {
  43. Grade model.Grade `json:"grade"`
  44. ClassList []model.Class `json:"class_list"`
  45. }