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

customer_router.go 6.7 KiB

1 jaar geleden
1 jaar geleden
1 jaar geleden
1 jaar geleden
1 jaar geleden
1 jaar geleden
1 jaar geleden
1 jaar geleden
1 jaar geleden
1 jaar geleden
1 jaar geleden
1 jaar geleden
1 jaar geleden
1 jaar geleden
1 jaar geleden
1 jaar geleden
1 jaar geleden
1 jaar geleden
1 jaar geleden
1 jaar geleden
1 jaar geleden
1 jaar geleden
1 jaar geleden
1 jaar geleden
1 jaar geleden
1 jaar geleden
1 jaar geleden
1 jaar geleden
1 jaar geleden
1 jaar geleden
1 jaar geleden
1 jaar geleden
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. package router
  2. import (
  3. "applet/app/customer/hdl"
  4. selfSupportForSchoolhdl "applet/app/customer/hdl/self_support_for_school"
  5. "applet/app/customer/mw"
  6. "github.com/gin-gonic/gin"
  7. )
  8. func CustomerInit(r *gin.RouterGroup) {
  9. rPay(r.Group("/pay"))
  10. rCentralKitchenForSchoolOrder(r.Group("/order/centralKitchenForSchool"))
  11. rNursingHomeOrder(r.Group("/order/nursingHome"))
  12. rSelfSupportForSchoolOrder(r.Group("/order/selfSupportForSchool"))
  13. rSelfSupportForSchool(r.Group("/selfSupportForSchool"))
  14. rUserIdentity(r.Group("/userIdentity"))
  15. r.GET("/sanHu", hdl.SanHu)
  16. r.POST("/test", hdl.Demo)
  17. r.POST("/curlAlipayPlanetEcocampusApiRosterSignUpInfoTest", hdl.CurlAlipayPlanetEcocampusApiRosterSignUpInfo)
  18. r.POST("/login", hdl.Login)
  19. r.POST("/register", hdl.Register)
  20. r.POST("/aesDecrypt", hdl.AesDecrypt)
  21. r.POST("/systemOauthToken", hdl.SystemOauthToken)
  22. r.GET("/getSysCfg", hdl.GetSysCfg) //获取基础配置
  23. r.Use(mw.Auth) //检测登录状态
  24. r.GET("/userInfo", hdl.UserInfo) //用户信息
  25. r.Group("/enterprise")
  26. {
  27. r.GET("enterprise/info", hdl.EnterpriseInfo) // 单位信息
  28. r.GET("enterprise/schoolBelowGrade", hdl.SchoolBelowGrade) //"学校"下年级
  29. r.GET("enterprise/schoolGradeBelowClass", hdl.SchoolGradeBelowClass) //"学校"年级下班级
  30. r.POST("enterprise/list", hdl.EnterpriseList) //"校企列表
  31. r.POST("enterprise/centralKitchenForSchool/saveUserIdentity", hdl.SaveCentralKitchenForSchoolUserIdentity) //"央厨-学校"新增身份信息
  32. r.GET("enterprise/centralKitchenForSchool/package", hdl.CentralKitchenForSchoolPackage) //"央厨-学校"获取套餐
  33. r.GET("enterprise/centralKitchenForSchool/myReserve", hdl.CentralKitchenForSchoolMyReserve) //"央厨-学校"我的预定
  34. r.POST("enterprise/selfSupportForSchool/saveUserIdentity", hdl.SaveSelfSupportForSchoolUserIdentity) //"自营-学校"新增身份信息
  35. r.POST("enterprise/nursingHome/saveUserIdentity", hdl.SaveNursingHomeUserIdentity) //"养老院"新增身份信息
  36. r.GET("enterprise/nursingHome/package", hdl.NursingHomePackage) //"养老院"获取套餐
  37. r.GET("enterprise/nursingHome/myReserve", hdl.NursingHomeMyReserve) //"养老院"我的预定
  38. }
  39. r.Group("/notice")
  40. {
  41. r.GET("notice/list", hdl.NoticeList)
  42. }
  43. r.Group("/banner")
  44. {
  45. r.GET("banner/list", hdl.BannerList)
  46. }
  47. }
  48. func rPay(r *gin.RouterGroup) {
  49. r.Use(mw.Auth) //检测登录状态
  50. r.POST("/buyPackage", hdl.BuyPackage) // 购买套餐
  51. r.GET("/ordState", hdl.OrdState) // 查看订单支付状态
  52. r.POST("/nursingHomeBuyPackage", hdl.NursingHomeBuyPackage) // 购买套餐
  53. r.GET("/nursingHomeOrdState", hdl.NursingHomeOrdState) // 查看订单支付状态
  54. }
  55. func rCentralKitchenForSchoolOrder(r *gin.RouterGroup) {
  56. r.Use(mw.Auth) // 检测登录状态
  57. r.POST("/list", hdl.CentralKitchenForSchoolOrderList) // 央厨学校-订单列表
  58. r.GET("/belowWithDay", hdl.CentralKitchenForSchoolOrderBelowWithDay) // 央厨学校-订单下订餐日期数据
  59. r.GET("/detail", hdl.CentralKitchenForSchoolOrderDetail) // 央厨学校-订单详情
  60. r.POST("/refund", hdl.CentralKitchenForSchoolOrderRefund) // 央厨学校-订单退款申请
  61. r.POST("/refundList", hdl.CentralKitchenForSchoolOrderRefundList) // 央厨学校-订单退款列表
  62. }
  63. func rNursingHomeOrder(r *gin.RouterGroup) {
  64. r.Use(mw.Auth) //检测登录状态
  65. r.POST("/list", hdl.NursingHomeOrderList) // 养老院-订单列表
  66. r.GET("/belowWithDay", hdl.NursingHomeOrderBelowWithDay) // 养老院-订单下订餐日期数据
  67. r.GET("/detail", hdl.NursingHomeOrderDetail) // 养老院-订单详情
  68. r.POST("/refund", hdl.NursingHomeOrderRefund) // 养老院-订单退款申请
  69. r.POST("/refundList", hdl.NursingHomeOrderRefundList) // 养老院-订单退款列表
  70. }
  71. func rSelfSupportForSchoolOrder(r *gin.RouterGroup) {
  72. r.Use(mw.Auth) //检测登录状态
  73. r.POST("/list", hdl.SelfSupportForSchoolOrderList) // 自营学校-订单列表
  74. r.POST("/arrearsList", hdl.SelfSupportForSchoolOrderArrearsList) // 自营学校-欠费订单列表
  75. r.POST("/debtRepay", hdl.SelfSupportForSchoolOrderDebtRepay) // 自营学校-支付欠款订单
  76. }
  77. func rSelfSupportForSchool(r *gin.RouterGroup) { //自营学校
  78. r.Use(mw.Auth) //检测登录状态
  79. r.GET("/educateSceneTokenQuery", selfSupportForSchoolhdl.EducateSceneTokenQuery) // 自营学校-查询刷脸用户开通详细信息
  80. r.GET("/educateSceneTokenCreateForApplet", selfSupportForSchoolhdl.EducateSceneTokenCreateForApplet) // 自营学校-教育场景token生成处理器(作用于 跳转到一脸通行小程序采集人脸)
  81. r.GET("/educateSceneTokenCreateForConcentratedCollectApplet", selfSupportForSchoolhdl.EducateSceneTokenCreateForConcentratedCollectApplet) // 自营学校-教育场景token生成处理器(作用于 跳转到集采小程序)
  82. r.GET("/educateFacepayApply", selfSupportForSchoolhdl.EducateFacepayApply) // 自营学校-创建刷脸支付开通标识
  83. r.GET("/concentrateFacePassStudentList", selfSupportForSchoolhdl.ConcentrateFacePassStudentList) // 自营学校-集采学生列表
  84. r.GET("/concentrateFacePassStudentConfirm", selfSupportForSchoolhdl.ConcentrateFacePassStudentConfirm) // 自营学校-集采学生确认
  85. }
  86. func rUserIdentity(r *gin.RouterGroup) { //用户身份
  87. r.Use(mw.Auth) //检测登录状态
  88. r.DELETE("/deleteUserIdentity/:id", hdl.DeleteUserIdentity) // 删除身份信息
  89. r.POST("/updateCentralKitchenForSchoolUserIdentity", hdl.UpdateCentralKitchenForSchoolUserIdentity) // 修改"央厨-学校"学生身份信息
  90. r.POST("/updateSelfSupportForSchoolUserIdentity", hdl.UpdateSelfSupportForSchoolUserIdentity) // 修改"自营-学校"学生身份信息
  91. r.POST("/updateNursingHomeUserIdentity", hdl.UpdateNursingHomeUserIdentity) // 修改"养老院"身份信息
  92. }