新增岗位接口

This commit is contained in:
2023-06-30 17:35:46 +08:00
parent 002353cc30
commit a2a1f1666c
10 changed files with 524 additions and 15 deletions
+19
View File
@@ -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)
}
}