新增部门接口
This commit is contained in:
@@ -158,15 +158,15 @@ func privateRouter(r *gin.Engine, api controller.Api) {
|
||||
deptGroup.GET("", api.Dept.GetDeptList)
|
||||
|
||||
// 新增部门
|
||||
deptGroup.POST("", api.Dept.GetDeptList)
|
||||
deptGroup.POST("", api.Dept.AddDept)
|
||||
|
||||
// 部门详情
|
||||
deptGroup.GET("/:api_id", api.Dept.GetDeptList)
|
||||
deptGroup.GET("/:dept_id", api.Dept.GetDept)
|
||||
|
||||
// 删除部门-批量
|
||||
deptGroup.DELETE("", api.Dept.GetDeptList)
|
||||
deptGroup.DELETE("", api.Dept.DeleteDept)
|
||||
|
||||
// 修改部门
|
||||
deptGroup.PUT("/:api_id", api.Dept.GetDeptList)
|
||||
deptGroup.PUT("/:dept_id", api.Dept.PutDept)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user