staff user2

This commit is contained in:
jiangyong27 2025-03-11 16:10:36 +08:00
parent e8d795443e
commit 7a204908ab
1 changed files with 4 additions and 0 deletions

View File

@ -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/*")