From f4a3813202da0450f3444bef6cbb141141302680 Mon Sep 17 00:00:00 2001
From: liujiandao <274878379@qq.com>
Date: 星期五, 19 四月 2024 16:35:28 +0800
Subject: [PATCH] 考勤导入

---
 router/router.go |   23 ++++++++++++++++++++++-
 1 files changed, 22 insertions(+), 1 deletions(-)

diff --git a/router/router.go b/router/router.go
index 04128b2..98fa0f0 100644
--- a/router/router.go
+++ b/router/router.go
@@ -21,7 +21,7 @@
 
 	r.StaticFS(conf.LocalConf.StorePath, http.Dir(conf.LocalConf.StorePath)) // 涓虹敤鎴峰ご鍍忓拰鏂囦欢鎻愪緵闈欐�佸湴鍧�
 	r.GET("/swagger/*any", ginSwagger.WrapHandler(swaggerFiles.Handler))
-	//r.Use(middleware.JWTAuth())
+	r.Use(middleware.JWTAuth())
 	//r.Use(middleware.VerifyResetPwd())
 
 	urlPrefix := "/api-jl/v1"
@@ -90,12 +90,33 @@
 		workerApi.DELETE("deleteWorkTypeInfo/:id", workTypeManageController.DeleteWorkTypeInfo) //鍒犻櫎宸ョ淇℃伅
 	}
 
+	//钖叕绠$悊
 	salaryApi := r.Group(urlPrefix + "/salary")
 	salaryPlanController := new(controllers.SalaryPlanController)
 	{
 		salaryApi.POST("saveSalaryPlan", salaryPlanController.SaveSalaryPlan)                   //淇濆瓨钖叕鏂规
 		salaryApi.POST("getSalaryPlanList", salaryPlanController.GetSalaryPlanList)             //鑾峰彇钖叕鏂规鍒楄〃
 		salaryApi.DELETE("deleteSalaryPlanInfo/:id", salaryPlanController.DeleteSalaryPlanInfo) //鍒犻櫎钖叕鏂规
+		salaryApi.GET("getSalaryTypeList/:type", salaryPlanController.GetSalaryTypeList)        //鑾峰彇钖祫绫诲瀷鍒楄〃
+		salaryApi.POST("saveSalaryType", salaryPlanController.SaveSalaryType)                   //淇濆瓨钖祫绫诲瀷
+	}
+
+	//鑰冨嫟绠$悊
+	attendanceApi := r.Group(urlPrefix + "/attendance")
+	attendanceController := new(controllers.AttendanceController)
+	{
+		attendanceApi.POST("attendanceInput", attendanceController.AttendanceInput)             //鑰冨嫟瀵煎叆
+		attendanceApi.POST("getAttendanceList", attendanceController.GetAttendanceList)         //鑾峰彇鑰冨嫟鍒楄〃
+		attendanceApi.DELETE("deleteAttendanceInfo", attendanceController.DeleteAttendanceInfo) //鍒犻櫎鑰冨嫟淇℃伅
+	}
+
+	mentorApi := r.Group(urlPrefix + "/mentor")
+	mentorCtl := new(controllers.MentorController)
+	{
+		mentorApi.POST("createMentorInfo", mentorCtl.CreateMentorInfo)       //鍒涘缓甯﹀緬淇℃伅
+		mentorApi.POST("updateMentorInfo", mentorCtl.UpdateMentorInfo)       //鏇存柊甯﹀緬淇℃伅
+		mentorApi.POST("getMentorList", mentorCtl.GetMentorList)             //鑾峰彇甯﹀緬淇℃伅鍒楄〃
+		mentorApi.DELETE("deleteMentorInfo/:id", mentorCtl.DeleteMentorInfo) //鍒犻櫎甯﹀緬淇℃伅
 	}
 
 	return r

--
Gitblit v1.8.0