|
|
@@ -5,8 +5,8 @@ import cn.reghao.autodop.common.utils.data.db.PageList;
|
|
|
import cn.reghao.autodop.common.utils.data.serializer.JsonConverter;
|
|
|
import cn.reghao.autodop.dmaster.app.entity.LocalDir;
|
|
|
import cn.reghao.autodop.dmaster.app.entity.Notification;
|
|
|
-import cn.reghao.autodop.dmaster.app.service.crud.LocalDirCrudService;
|
|
|
-import cn.reghao.autodop.dmaster.app.service.crud.NotificationCrudService;
|
|
|
+import cn.reghao.autodop.dmaster.app.service.crud.global.LocalDirCrudService;
|
|
|
+import cn.reghao.autodop.dmaster.app.service.crud.global.NotificationCrudService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
@@ -35,9 +35,7 @@ public class GlobalCrudController {
|
|
|
@ApiOperation(value = "添加本地目录配置")
|
|
|
@PostMapping(value = "/localdir", consumes = "application/json")
|
|
|
public ResponseEntity<String> addLocalDir(@RequestBody String json) throws Exception {
|
|
|
- LocalDir localDir = (LocalDir) JsonConverter.jsonToObject(json, LocalDir.class);
|
|
|
- localDirCrudService.addOrModify(localDir);
|
|
|
- return ResponseEntity.ok().body(WebResult.success("ok"));
|
|
|
+ return ResponseEntity.ok().body(WebResult.success("系统已自动创建..."));
|
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "分页获取本地目录配置")
|
|
|
@@ -58,8 +56,7 @@ public class GlobalCrudController {
|
|
|
@ApiOperation(value = "删除本地目录配置")
|
|
|
@DeleteMapping("/localdir/{uniqueKey}")
|
|
|
public ResponseEntity<String> deleteLocalDir(@PathVariable("uniqueKey") String uniqueKey) throws Exception {
|
|
|
- localDirCrudService.delete(uniqueKey);
|
|
|
- return ResponseEntity.ok().body(WebResult.success("ok"));
|
|
|
+ return ResponseEntity.ok().body(WebResult.success("不允许删除..."));
|
|
|
}
|
|
|
|
|
|
/* 通知配置 */
|