新增部门接口

This commit is contained in:
2023-06-30 16:55:41 +08:00
parent 188a8f0d02
commit 002353cc30
10 changed files with 379 additions and 216 deletions
+4 -4
View File
@@ -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)
}
}