Эх сурвалжийг харах

通用接口 注释 传参demo

shiqian 4 жил өмнө
parent
commit
4b847a368f

+ 36 - 0
boman-modules/boman-system/src/main/java/com/boman/system/controller/ObjController.java

@@ -29,6 +29,17 @@ public class ObjController {
 
     /**
      * 功能描述: 通用保存接口
+     *                {
+     *                    "objId": 1,
+     *                    "table": "sys_config",
+     *                    "fixedData": {
+     *                        "CONFIG_NAME": "测试config_name",
+     *                        "CONFIG_KEY": "测试config_key",
+     *                        "CONFIG_VALUE": "测试config_value",
+     *                        "CONFIG_TYPE": "Y",
+     *                        "REMARK": "测试remark"
+     *                    }
+     *                }
      *
      * @param baseTableSaveDTO 前台传过来的dto
      * @return com.boman.system.common.ValueHolder
@@ -41,6 +52,15 @@ public class ObjController {
 
     /**
      * 功能描述: 通用删除接口 (真的删除)
+     *               eg:  {
+     *                         "table": "sys_config",
+     *                         "idList": [
+     *                             141,
+     *                             142
+     *                         ]
+     *                     }
+     *
+     *
      *
      * @param baseTableSaveDTO 前台传过来的dto
      * @return com.boman.system.common.ValueHolder
@@ -54,6 +74,16 @@ public class ObjController {
     /**
      * 功能描述: 通用删除接口 (逻辑删除)
      *
+     *                    eg:{
+     *                           "table": "sys_config",
+     *                           "logicDelName": "CONFIG_KEY",
+     *                           "logicDelValue": "我被修改了吧",
+     *                           "idList": [
+     *                               141,
+     *                               142
+     *                           ]
+     *                       }
+     *
      * @param baseTableSaveDTO 前台传过来的dto
      * @return com.boman.system.common.ValueHolder
      */
@@ -91,5 +121,11 @@ public class ObjController {
     }
 
 
+    @ApiOperation(value = "表单提交接口")
+    @PostMapping("/objectSubmit")
+    public ValueHolder<List<JSONObject>> objectSubmit(@RequestBody BaseTableSaveDTO condition) {
+        return tableServiceCmdService.getObject(condition);
+    }
+
 
 }