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

md_enterprise.go 3.5 KiB

1 jaar geleden
1 jaar geleden
1 jaar geleden
1 jaar geleden
1 jaar geleden
1 jaar geleden
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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. Id int `json:"id" label:"年级id"`
  20. Name string `json:"name" label:"名称"`
  21. ClassList []struct {
  22. Id int `json:"id" label:"班级id"`
  23. Name string `json:"name" label:"名称"`
  24. } `json:"class_list" label:"班级"`
  25. } `json:"grade_list" label:"年级"`
  26. }
  27. type EnterpriseDeleteReq struct {
  28. EnterpriseIds []int `json:"enterprise_ids"`
  29. }
  30. type EnterpriseUpdateStateReq struct {
  31. Id int `json:"id" binding:"required" label:"企业id"`
  32. State int32 `json:"state" label:"状态"`
  33. }
  34. type EnterpriseListReq struct {
  35. Limit int `json:"limit"`
  36. Page int `json:"page" `
  37. Name string `json:"name" label:"名称"`
  38. Kind int `json:"kind" label:"种类"`
  39. }
  40. type EnterpriseDetailResp struct {
  41. Enterprise model.Enterprise `json:"enterprise"`
  42. GradeList []GradeListStruct `json:"grade_list"`
  43. }
  44. type GradeListStruct struct {
  45. Grade model.Grade `json:"grade"`
  46. ClassList []model.Class `json:"class_list"`
  47. }
  48. type ListCentralKitchenForSchoolPackageForSystemReq struct {
  49. Page int `json:"page" label:"页码"`
  50. Limit int `json:"limit" label:"每页数量"`
  51. Year string `json:"year" label:"年份"`
  52. Month string `json:"month" label:"月份"`
  53. }
  54. type SaveCentralKitchenForSchoolPackageForSystemReq struct {
  55. Id int `json:"id" label:"套餐ID"`
  56. Year string `json:"year" binding:"required" label:"年份"`
  57. Month string `json:"month" binding:"required" label:"月份"`
  58. StartDate string `json:"start_date" binding:"required" label:"开始时间"`
  59. EndDate string `json:"end_date" binding:"required" label:"截止时间"`
  60. State int `json:"state" label:"状态(1:可用 2:不可用)"`
  61. DateList []struct {
  62. Date string `json:"date"`
  63. IsOpenBreakfast int `json:"is_open_breakfast"`
  64. IsOpenLunch int `json:"is_open_lunch"`
  65. IsOpenDinner int `json:"is_open_dinner"`
  66. IsOpenReplenish int `json:"is_open_replenish"`
  67. } `json:"date_list" binding:"required" label:"日期"`
  68. }
  69. type SyncCentralKitchenForSchoolPackageForSystemReq struct {
  70. Ids []int `json:"ids" label:"套餐ids"`
  71. EnterpriseIds []int `json:"enterprise_ids" label:"校企ids"`
  72. IsCarryPackagePrice bool `json:"is_carry_package_price" label:"是否跟随套餐价格"`
  73. }
  74. type CentralKitchenForSchoolPackageForSystemWithDay struct {
  75. Date string `json:"date"`
  76. IsOpenBreakfast int `json:"is_open_breakfast"`
  77. IsOpenLunch int `json:"is_open_lunch"`
  78. IsOpenDinner int `json:"is_open_dinner"`
  79. IsOpenReplenish int `json:"is_open_replenish"`
  80. }