Commit 61a8760c authored by wujipeng's avatar wujipeng
Browse files

钉钉-获取子部门ID列表

parent 6d24a84e
......@@ -9,6 +9,7 @@ import com.taobao.api.ApiException;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
......@@ -31,8 +32,8 @@ public class DingAttendanceController {
private PermissionConfig permissionConfig;
@ApiOperation(value = "获取子部门ID列表")
@GetMapping("/child")
public List<Long> getDeptTree(String deptId){
@GetMapping("/child/{deptId}")
public List<Long> getChildIdList(@PathVariable String deptId) {
String accessToken = permissionConfig.getAccessToken();
try {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment