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

98 lines
6.9 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. IsOpenLimitOrderFood int `json:"is_open_limit_order_food" label:"是否开启限制订餐(1:开启 2:关闭)"`
  20. OrderFoodStartDate int `json:"order_food_start_date" label:"订餐时间-起始时间"`
  21. OrderFoodEndDate int `json:"order_food_end_date" label:"订餐时间-截止时间"`
  22. IsOpenLimitTeacherRegister int `json:"is_open_limit_teacher_register" label:"是否开启教师注册(1:开启 2:关闭)"`
  23. IsOpenBreakfast int `json:"is_open_breakfast" label:"是否开启早餐(1:开启 0:关闭)"`
  24. IsOpenLunch int `json:"is_open_lunch" label:"是否开启午餐(1:开启 0:关闭)"`
  25. IsOpenDinner int `json:"is_open_dinner" label:"是否开启晚餐(1:开启 0:关闭)"`
  26. IsOpenBreakfastForTeacher int `json:"is_open_breakfast_for_teacher" label:"是否开启早餐(1:开启 0:关闭)-教师"`
  27. IsOpenLunchForTeacher int `json:"is_open_lunch_for_teacher" label:"是否开启午餐(1:开启 0:关闭)-教师"`
  28. IsOpenDinnerForTeacher int `json:"is_open_dinner_for_teacher" label:"是否开启晚餐(1:开启 0:关闭)-教师"`
  29. BreakfastUnitPrice string `json:"breakfast_unit_price" label:"早餐-单价"`
  30. BreakfastUnitPriceForTeacher string `json:"breakfast_unit_price_for_teacher" label:"教师-早餐-单价"`
  31. LunchUnitPrice string `json:"lunch_unit_price" label:"午餐-单价"`
  32. LunchUnitPriceForTeacher string `json:"lunch_unit_price_for_teacher" label:"教师-午餐-单价"`
  33. DinnerUnitPrice string `json:"dinner_unit_price" label:"晚餐-单价"`
  34. DinnerUnitPriceForTeacher string `json:"dinner_unit_price_for_teacher" label:"教师-晚餐-单价"`
  35. BreakfastTeacherNotice string `json:"breakfast_teacher_notice" label:"教师早餐说明"`
  36. LunchTeacherNotice string `json:"lunch_teacher_notice" label:"教师午餐说明"`
  37. DinnerTeacherNotice string `json:"dinner_teacher_notice" label:"教师晚餐说明"`
  38. }
  39. type NursingHomePackageInfoResp struct {
  40. Name string `json:"name" label:"名称"`
  41. Memo string `json:"memo" label:"备注"`
  42. Kind int32 `json:"kind" label:"种类(1:央厨-学校 2:央厨-工厂 3:自营-学校 4:自营-工厂)"`
  43. State int32 `json:"state" label:"状态(1:正常 2:冻结)"`
  44. IsOpenReportMealForDay int `json:"is_open_report_meal_for_day" label:"开启按天报餐(1:开启 2:关闭)"`
  45. IsOpenReportMealForMonth int `json:"is_open_report_meal_for_month" label:"开启按月报餐(1:开启 2:关闭)"`
  46. IsOpenReportMealForYear int `json:"is_open_report_meal_for_year" label:"开启按年报餐(1:开启 2:关闭)"`
  47. IsOpenBreakfast int `json:"is_open_breakfast" label:"是否开启早餐(1:开启 0:关闭)"`
  48. IsOpenLunch int `json:"is_open_lunch" label:"是否开启午餐(1:开启 0:关闭)"`
  49. IsOpenDinner int `json:"is_open_dinner" label:"是否开启晚餐(1:开启 0:关闭)"`
  50. BreakfastUnitPrice string `json:"breakfast_unit_price" label:"早餐-单价"`
  51. LunchUnitPrice string `json:"lunch_unit_price" label:"午餐-单价"`
  52. DinnerUnitPrice string `json:"dinner_unit_price" label:"晚餐-单价"`
  53. }
  54. type FindCentralKitchenForSchoolPackageReq struct {
  55. PackageId int `json:"package_id" label:"套餐ID"`
  56. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  57. Year string `json:"year" binding:"required" label:"年份"`
  58. Month string `json:"month" binding:"required" label:"月份"`
  59. StartDate string `json:"start_date" binding:"required" label:"开始时间"`
  60. EndDate string `json:"end_date" binding:"required" label:"截止时间"`
  61. DateList []struct {
  62. Date string `json:"date"`
  63. IsOpenBreakfast int32 `json:"is_open_breakfast"`
  64. IsOpenLunch int32 `json:"is_open_lunch"`
  65. IsOpenDinner int32 `json:"is_open_dinner"`
  66. IsOpenReplenish int32 `json:"is_open_replenish"`
  67. } `json:"date_list" binding:"required" label:"日期"`
  68. //MealLabelListForBreakFast []MealLabelList `json:"meal_label_list_for_break_fast" label:"早餐-餐标集合"`
  69. //MealLabelListForLunch []MealLabelList `json:"meal_label_list_for_break_lunch" label:"午餐-餐标集合"`
  70. //MealLabelListForDinner []MealLabelList `json:"meal_label_list_for_break_dinner" label:"晚餐-餐标集合"`
  71. }
  72. type MealLabelList struct {
  73. Id int `json:"id" label:"id"`
  74. Name string `json:"name" binding:"required" label:"餐标名称"`
  75. Price string `json:"price" binding:"required" label:"单价"`
  76. }
  77. type FindNursingHomePackageReq struct {
  78. PackageId int `json:"package_id" label:"套餐ID"`
  79. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  80. Year string `json:"year" binding:"required" label:"年份"`
  81. Month string `json:"month" binding:"required" label:"月份"`
  82. StartDate string `json:"start_date" binding:"required" label:"开始时间"`
  83. EndDate string `json:"end_date" binding:"required" label:"截止时间"`
  84. DateList []struct {
  85. Date string `json:"date"`
  86. IsOpenBreakfast int32 `json:"is_open_breakfast"`
  87. IsOpenLunch int32 `json:"is_open_lunch"`
  88. IsOpenDinner int32 `json:"is_open_dinner"`
  89. IsOpenReplenish int32 `json:"is_open_replenish"`
  90. } `json:"date_list" binding:"required" label:"日期"`
  91. }