package staffrouter import ( v1 "gin_server_admin/api/v1" "github.com/gin-gonic/gin" ) type StaffRouter struct{} func (s *StaffRouter) InitStaffRouter(Router *gin.RouterGroup) { staffRouter := Router.Group("staff") var authorityApi = v1.ApiGroupApp.StaffApi.StaffPeople { staffRouter.POST("", authorityApi.Index) //员工档案入口 staffRouter.POST("/", authorityApi.Index) //员工档案入口 staffRouter.GET("", authorityApi.Index) //员工档案入口 staffRouter.GET("/", authorityApi.Index) //员工档案入口 staffRouter.POST("/stafflist", authorityApi.StaffList) //员工列表 } }