智慧食堂
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

md_enterprise.go 4.5 KiB

1 rok temu
1 rok temu
1 rok temu
1 rok temu
1 rok temu
1 rok temu
1 rok temu
1 rok temu
1 rok temu
1 rok temu
1 rok temu
1 rok temu
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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:自营-工厂 5:养老院)"`
  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:自营-工厂 5:养老院)"`
  15. CompanyId int `json:"company_id" binding:"required" label:"所属公司id"`
  16. Memo string `json:"memo" label:"备注"`
  17. State int32 `json:"state" label:"状态"`
  18. PeriodList []struct {
  19. Id int `json:"id" label:"学段id"`
  20. Name string `json:"name" label:"名称"`
  21. GradeList []struct {
  22. Id int `json:"id" label:"年级id"`
  23. Name string `json:"name" label:"名称"`
  24. ClassList []struct {
  25. Id int `json:"id" label:"班级id"`
  26. Name string `json:"name" label:"名称"`
  27. } `json:"class_list" label:"班级"`
  28. } `json:"grade_list" label:"年级"`
  29. } `json:"period_list" label:"学段"`
  30. }
  31. type EnterpriseDeleteReq struct {
  32. EnterpriseIds []int `json:"enterprise_ids"`
  33. }
  34. type EnterpriseUpdateStateReq struct {
  35. Id int `json:"id" binding:"required" label:"企业id"`
  36. State int32 `json:"state" label:"状态"`
  37. }
  38. type EnterpriseListReq struct {
  39. Limit int `json:"limit"`
  40. Page int `json:"page" `
  41. Name string `json:"name" label:"名称"`
  42. Kind int `json:"kind" label:"种类"`
  43. }
  44. type EnterpriseDetailResp struct {
  45. Enterprise model.Enterprise `json:"enterprise"`
  46. PeriodList []PeriodListStruct `json:"period_list"`
  47. }
  48. type PeriodListStruct struct {
  49. Period model.Period `json:"period"`
  50. GradeList []GradeListStruct `json:"grade_list"`
  51. }
  52. type GradeListStruct struct {
  53. Grade model.Grade `json:"grade"`
  54. ClassList []model.Class `json:"class_list"`
  55. }
  56. type SetCentralKitchenForSchoolWithSpecForSystemReq struct {
  57. BreakfastUnitPrice string `json:"breakfast_unit_price" binding:"required" label:"早餐-单价"`
  58. BreakfastUnitPriceForTeacher string `json:"breakfast_unit_price_for_teacher" binding:"required" label:"教师-早餐-单价"`
  59. LunchUnitPrice string `json:"lunch_unit_price" binding:"required" label:"午餐-单价"`
  60. LunchUnitPriceForTeacher string `json:"lunch_unit_price_for_teacher" binding:"required" label:"教师-午餐-单价"`
  61. DinnerUnitPrice string `json:"dinner_unit_price" binding:"required" label:"晚餐-单价"`
  62. DinnerUnitPriceForTeacher string `json:"dinner_unit_price_for_teacher" binding:"required" label:"教师-晚餐-单价"`
  63. }
  64. type ListCentralKitchenForSchoolPackageForSystemReq struct {
  65. Page int `json:"page" label:"页码"`
  66. Limit int `json:"limit" label:"每页数量"`
  67. Year string `json:"year" label:"年份"`
  68. Month string `json:"month" label:"月份"`
  69. }
  70. type SaveCentralKitchenForSchoolPackageForSystemReq struct {
  71. Id int `json:"id" label:"套餐ID"`
  72. Year string `json:"year" binding:"required" label:"年份"`
  73. Month string `json:"month" binding:"required" label:"月份"`
  74. StartDate string `json:"start_date" binding:"required" label:"开始时间"`
  75. EndDate string `json:"end_date" binding:"required" label:"截止时间"`
  76. State int `json:"state" label:"状态(1:可用 2:不可用)"`
  77. DateList []struct {
  78. Date string `json:"date"`
  79. IsOpenBreakfast int `json:"is_open_breakfast"`
  80. IsOpenLunch int `json:"is_open_lunch"`
  81. IsOpenDinner int `json:"is_open_dinner"`
  82. IsOpenReplenish int `json:"is_open_replenish"`
  83. } `json:"date_list" binding:"required" label:"日期"`
  84. }
  85. type SyncCentralKitchenForSchoolPackageForSystemReq struct {
  86. Ids []int `json:"ids" label:"套餐ids"`
  87. EnterpriseIds []int `json:"enterprise_ids" label:"校企ids"`
  88. IsCarryPackagePrice bool `json:"is_carry_package_price" label:"是否跟随套餐价格"`
  89. }
  90. type CentralKitchenForSchoolPackageForSystemWithDay struct {
  91. Date string `json:"date"`
  92. IsOpenBreakfast int `json:"is_open_breakfast"`
  93. IsOpenLunch int `json:"is_open_lunch"`
  94. IsOpenDinner int `json:"is_open_dinner"`
  95. IsOpenReplenish int `json:"is_open_replenish"`
  96. }