|
|
@@ -3,6 +3,7 @@ package com.zhongshu.card.server.core.controller.org;
|
|
|
import com.github.microservice.auth.security.annotations.ResourceAuth;
|
|
|
import com.github.microservice.auth.security.type.AuthType;
|
|
|
import com.zhongshu.card.client.model.org.DepartmentParam;
|
|
|
+import com.zhongshu.card.client.ret.ResultContent;
|
|
|
import com.zhongshu.card.client.service.org.DepartmentService;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
|
import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
@@ -22,7 +23,7 @@ public class DepartmentController {
|
|
|
@ResourceAuth(value = "user",type = AuthType.User)
|
|
|
@Operation(summary = "添加部门", description = "添加部门")
|
|
|
@RequestMapping(value = "addDepartment", method = {RequestMethod.POST})
|
|
|
- public Object addDepartment(DepartmentParam param) {
|
|
|
+ public ResultContent addDepartment(DepartmentParam param) {
|
|
|
return this.departmentService.addDepartment(param);
|
|
|
}
|
|
|
|