You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
619 B
22 lines
619 B
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) //员工列表
|
|
|
|
}
|
|
}
|
|
|