Browse Source

CommonController 增加几个接口3

shiqian 4 năm trước cách đây
mục cha
commit
88528c647f

+ 3 - 3
boman-web-core/src/main/java/com/boman/web/core/controller/CommonController.java

@@ -48,7 +48,7 @@ public class CommonController {
      * @param dto dto
      * @return com.boman.domain.dto.AjaxResult
      */
-    @PostMapping
+    @PostMapping("/one/map")
     public JSONObject getOneByMap(@RequestBody FormDataDto dto) {
         return commonService.getOneByMap(dto.getTable(), dto.getFixedData());
     }
@@ -71,7 +71,7 @@ public class CommonController {
      * @param dto dto
      * @return com.boman.domain.dto.AjaxResult
      */
-    @GetMapping("count/{tableName}/pkName/{pkName}")
+    @PostMapping("count")
     public int count(@RequestBody FormDataDto dto) {
         return commonService.count(dto);
     }
@@ -82,7 +82,7 @@ public class CommonController {
      * @param tableName tableName
      * @return com.boman.domain.dto.AjaxResult
      */
-    @GetMapping("count/{tableName}")
+    @GetMapping("newest/{tableName}")
     public JSONObject getNewest(@PathVariable("tableName") String tableName) {
         return commonService.getNewest(tableName);
     }