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

40 lines
2.6 KiB

  1. package md
  2. type BuyPackageReq struct {
  3. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  4. UserIdentityId int `json:"user_identity_id" binding:"required" label:"用户身份id"`
  5. PackageId int `json:"package_id" label:"套餐ID"`
  6. PackageIds []int `json:"package_ids" label:"套餐ID"`
  7. Kind int `json:"kind" binding:"required" label:"购买类型(1:按学期购买 2:按月购买 3:按天购买 4:补餐)"`
  8. IsBuyByMealLabel bool `json:"is_buy_by_meal_label" label:"是否通过餐标购买"`
  9. IsBuyBreakfast int `json:"is_buy_breakfast" label:"是否购买早餐(1:是 2:否)"`
  10. MealLabelIdForBreakfast int `json:"meal_label_id_for_breakfast" label:"早餐餐标id"`
  11. IsBuyLunch int `json:"is_buy_lunch" label:"是否购买午餐(1:是 2:否)"`
  12. MealLabelIdForLunch int `json:"meal_label_id_for_lunch" label:"午餐餐标id"`
  13. IsBuyDinner int `json:"is_buy_dinner" label:"是否购买晚餐(1:是 2:否)"`
  14. MealLabelIdForDinner int `json:"meal_label_id_for_dinner" label:"晚餐餐标id"`
  15. WithDays []struct {
  16. Date string `json:"date" label:"日期"`
  17. IsBuyBreakfast int `json:"is_buy_breakfast" label:"是否购买早餐(1:是 2:否)"`
  18. IsBuyLunch int `json:"is_buy_lunch" label:"是否购买午餐(1:是 2:否)"`
  19. IsBuyDinner int `json:"is_buy_dinner" label:"是否购买晚餐(1:是 2:否)"`
  20. } `json:"with_days" label:"包含天数"`
  21. }
  22. type NursingHomeBuyPackageReq struct {
  23. EnterpriseId int `json:"enterprise_id" binding:"required" label:"企业id"`
  24. UserIdentityId int `json:"user_identity_id" binding:"required" label:"用户身份id"`
  25. PackageId int `json:"package_id" label:"套餐ID"`
  26. PackageIds []int `json:"package_ids" label:"套餐ID"`
  27. Kind int `json:"kind" binding:"required" label:"购买类型(1:按年购买 2:按月购买 3:按天购买 4:补餐)"`
  28. IsBuyBreakfast int `json:"is_buy_breakfast" label:"是否购买早餐(1:是 2:否)"`
  29. IsBuyLunch int `json:"is_buy_lunch" label:"是否购买午餐(1:是 2:否)"`
  30. IsBuyDinner int `json:"is_buy_dinner" label:"是否购买晚餐(1:是 2:否)"`
  31. WithDays []struct {
  32. Date string `json:"date" label:"日期"`
  33. IsBuyBreakfast int `json:"is_buy_breakfast" label:"是否购买早餐(1:是 2:否)"`
  34. IsBuyLunch int `json:"is_buy_lunch" label:"是否购买午餐(1:是 2:否)"`
  35. IsBuyDinner int `json:"is_buy_dinner" label:"是否购买晚餐(1:是 2:否)"`
  36. } `json:"with_days" label:"包含天数"`
  37. }