新增岗位接口
This commit is contained in:
@@ -169,4 +169,23 @@ func privateRouter(r *gin.Engine, api controller.Api) {
|
||||
// 修改部门
|
||||
deptGroup.PUT("/:dept_id", api.Dept.PutDept)
|
||||
}
|
||||
|
||||
// 岗位
|
||||
postGroup := adminGroup.Group("/post")
|
||||
{
|
||||
// 获取岗位列表-分页
|
||||
postGroup.GET("", api.Post.GetPostPage)
|
||||
|
||||
// 新增岗位
|
||||
postGroup.POST("", api.Post.AddPost)
|
||||
|
||||
// 岗位详情
|
||||
postGroup.GET("/:post_id", api.Post.GetPost)
|
||||
|
||||
// 删除岗位-批量
|
||||
postGroup.DELETE("", api.Post.DeletePost)
|
||||
|
||||
// 修改岗位
|
||||
postGroup.PUT("/:post_id", api.Post.PutPost)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user