|
@@ -54,9 +54,8 @@ public class DingApiImpl implements DingApi {
|
|
|
public CommonResult<String> entry(@RequestBody StaffDTO dto) {
|
|
|
try {
|
|
|
|
|
|
-// String res = dingService.createStaff(dto);
|
|
|
- throw new ApiException("错误");
|
|
|
-// return CommonResult.success(res);
|
|
|
+ String res = dingService.createStaff(dto);
|
|
|
+ return CommonResult.success(res);
|
|
|
} catch (ApiException e) {
|
|
|
return CommonResult.error(101, e.getMessage());
|
|
|
}
|