智慧食堂
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.

79 lines
5.2 KiB

  1. package md
  2. type EnterpriseListReq struct {
  3. Limit int `json:"limit"`
  4. Page int `json:"page" `
  5. Name string `json:"name" `
  6. }
  7. type CentralKitchenForSchoolInfoResp struct {
  8. Name string `json:"name" label:"名称"`
  9. Memo string `json:"memo" label:"备注"`
  10. Kind int32 `json:"kind" label:"种类(1:央厨-学校 2:央厨-工厂 3:自营-学校 4:自营-工厂)"`
  11. State int32 `json:"state" label:"状态(1:正常 2:冻结)"`
  12. IsOpenTeacherReportMeal int `json:"is_open_teacher_report_meal" label:"教师报餐(1:开启 2:关闭)"`
  13. IsOpenReportMealForDay int `json:"is_open_report_meal_for_day" label:"开启按天报餐(1:开启 2:关闭)"`
  14. IsOpenReportMealForMonth int `json:"is_open_report_meal_for_month" label:"开启按月报餐(1:开启 2:关闭)"`
  15. IsOpenReportMealForSemester int `json:"is_open_report_meal_for_semester" label:"开启按学期报餐(1:开启 2:关闭)"`
  16. IsOpenTeacherReportMealForDay int `json:"is_open_teacher_report_meal_for_day" label:"开启教师按天报餐(1:开启 2:关闭)"`
  17. IsOpenTeacherReportMealForMonth int `json:"is_open_teacher_report_meal_for_month" label:"开启教师按月报餐(1:开启 2:关闭)"`
  18. IsOpenTeacherReportMealForSemester int `json:"is_open_teacher_report_meal_for_semester" label:"开启教师按学期报餐(1:开启 2:关闭)"`
  19. IsOpenBreakfast int `json:"is_open_breakfast" label:"是否开启早餐(1:开启 0:关闭)"`
  20. IsOpenLunch int `json:"is_open_lunch" label:"是否开启午餐(1:开启 0:关闭)"`
  21. IsOpenDinner int `json:"is_open_dinner" label:"是否开启晚餐(1:开启 0:关闭)"`
  22. BreakfastUnitPrice string `json:"breakfast_unit_price" label:"早餐-单价"`
  23. BreakfastUnitPriceForTeacher string `json:"breakfast_unit_price_for_teacher" label:"教师-早餐-单价"`
  24. LunchUnitPrice string `json:"lunch_unit_price" label:"午餐-单价"`
  25. LunchUnitPriceForTeacher string `json:"lunch_unit_price_for_teacher" label:"教师-午餐-单价"`
  26. DinnerUnitPrice string `json:"dinner_unit_price" label:"晚餐-单价"`
  27. DinnerUnitPriceForTeacher string `json:"dinner_unit_price_for_teacher" label:"教师-晚餐-单价"`
  28. }
  29. type NursingHomePackageInfoResp struct {
  30. Name string `json:"name" label:"名称"`
  31. Memo string `json:"memo" label:"备注"`
  32. Kind int32 `json:"kind" label:"种类(1:央厨-学校 2:央厨-工厂 3:自营-学校 4:自营-工厂)"`
  33. State int32 `json:"state" label:"状态(1:正常 2:冻结)"`
  34. IsOpenReportMealForDay int `json:"is_open_report_meal_for_day" label:"开启按天报餐(1:开启 2:关闭)"`
  35. IsOpenReportMealForMonth int `json:"is_open_report_meal_for_month" label:"开启按月报餐(1:开启 2:关闭)"`
  36. IsOpenReportMealForYear int `json:"is_open_report_meal_for_year" label:"开启按年报餐(1:开启 2:关闭)"`
  37. IsOpenBreakfast int `json:"is_open_breakfast" label:"是否开启早餐(1:开启 0:关闭)"`
  38. IsOpenLunch int `json:"is_open_lunch" label:"是否开启午餐(1:开启 0:关闭)"`
  39. IsOpenDinner int `json:"is_open_dinner" label:"是否开启晚餐(1:开启 0:关闭)"`
  40. BreakfastUnitPrice string `json:"breakfast_unit_price" label:"早餐-单价"`
  41. LunchUnitPrice string `json:"lunch_unit_price" label:"午餐-单价"`
  42. DinnerUnitPrice string `json:"dinner_unit_price" label:"晚餐-单价"`
  43. }
  44. type FindCentralKitchenForSchoolPackageReq struct {
  45. PackageId int `json:"package_id" label:"套餐ID"`
  46. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  47. Year string `json:"year" binding:"required" label:"年份"`
  48. Month string `json:"month" binding:"required" label:"月份"`
  49. StartDate string `json:"start_date" binding:"required" label:"开始时间"`
  50. EndDate string `json:"end_date" binding:"required" label:"截止时间"`
  51. DateList []struct {
  52. Date string `json:"date"`
  53. IsOpenBreakfast int32 `json:"is_open_breakfast"`
  54. IsOpenLunch int32 `json:"is_open_lunch"`
  55. IsOpenDinner int32 `json:"is_open_dinner"`
  56. IsOpenReplenish int32 `json:"is_open_replenish"`
  57. } `json:"date_list" binding:"required" label:"日期"`
  58. }
  59. type FindNursingHomePackageReq struct {
  60. PackageId int `json:"package_id" label:"套餐ID"`
  61. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  62. Year string `json:"year" binding:"required" label:"年份"`
  63. Month string `json:"month" binding:"required" label:"月份"`
  64. StartDate string `json:"start_date" binding:"required" label:"开始时间"`
  65. EndDate string `json:"end_date" binding:"required" label:"截止时间"`
  66. DateList []struct {
  67. Date string `json:"date"`
  68. IsOpenBreakfast int32 `json:"is_open_breakfast"`
  69. IsOpenLunch int32 `json:"is_open_lunch"`
  70. IsOpenDinner int32 `json:"is_open_dinner"`
  71. IsOpenReplenish int32 `json:"is_open_replenish"`
  72. } `json:"date_list" binding:"required" label:"日期"`
  73. }