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.
20 lines
516 B
20 lines
516 B
|
4 years ago
|
package personnel
|
||
|
|
|
||
|
|
import (
|
||
|
|
"hr_server/api/version1"
|
||
|
|
|
||
|
|
"github.com/gin-gonic/gin"
|
||
|
|
)
|
||
|
|
|
||
|
|
//员工档案
|
||
|
|
func (p *PersonnelRoute) InitRouterGroup(route *gin.RouterGroup) {
|
||
|
|
apiRouter := route.Group("staff")
|
||
|
|
var apiHandle = version1.AppApiInlet.StaffApi
|
||
|
|
{
|
||
|
|
apiRouter.GET("", apiHandle.Index) //入口
|
||
|
|
apiRouter.POST("", apiHandle.Index) //入口
|
||
|
|
apiRouter.POST("stafflist", apiHandle.StaffList) //人员列表
|
||
|
|
apiRouter.POST("addstaff", apiHandle.AddStaff) //添加人员档案
|
||
|
|
}
|
||
|
|
}
|