增加教职工支持
此提交包含在:
@@ -16,12 +16,13 @@ func Setup(engine *gin.Engine) {
|
||||
user.POST("/login", app.HandlerFunc(hub.Login))
|
||||
user.Use(middleware.JWT(1))
|
||||
user.GET("/me", app.HandlerFunc(hub.Me))
|
||||
user.POST("/set_type", app.HandlerFunc(hub.SetType))
|
||||
}
|
||||
checkin := engine.Group("/checkin")
|
||||
{
|
||||
hub := service.ExCheckinService
|
||||
checkin.GET("/list_activities", app.HandlerFunc(hub.ListActivities))
|
||||
checkin.Use(middleware.JWT(1))
|
||||
checkin.GET("/list_activities", app.HandlerFunc(hub.ListActivities))
|
||||
checkin.POST("/submit", app.HandlerFunc(hub.Submit))
|
||||
checkin.GET("/get_my_activities_today", app.HandlerFunc(hub.GetMyActivitiesToday))
|
||||
checkin.POST("/set_status", middleware.JWT(2), app.HandlerFunc(hub.SetStatus))
|
||||
|
新增問題並參考
封鎖使用者