staff user2
This commit is contained in:
parent
e8d795443e
commit
7a204908ab
|
@ -27,6 +27,10 @@ func initRoutge(engine *gin.Engine) {
|
|||
group.GET("/staff/salary", controller.NewStaff().Salary)
|
||||
group.GET("/staff/sync/salary", controller.NewStaff().SyncStaffSalary)
|
||||
noTokenGroup.POST("/staff/login", controller.NewStaff().Login)
|
||||
apiGroup.POST("/staff", controller.NewStaff().Create)
|
||||
apiGroup.PUT("/staff", controller.NewStaff().Update)
|
||||
apiGroup.DELETE("/staff", controller.NewStaff().Delete)
|
||||
apiGroup.GET("/staff", controller.NewStaff().List)
|
||||
|
||||
engine.LoadHTMLGlob("conf/template/*")
|
||||
|
||||
|
|
Loading…
Reference in New Issue