Browse Source

Merge remote-tracking branch 'origin/release/V1.0.0/test' into release/V1.0.0/test

hellohaidie 3 months ago
parent
commit
6550c5c683

+ 2 - 2
src/main/java/com/lqkj/link/module/zone/controller/ResourceController.java

@@ -226,8 +226,8 @@ public class ResourceController {
226
     )
226
     )
227
     @PostMapping("/" + VERSION_V1 + "/saveModel")
227
     @PostMapping("/" + VERSION_V1 + "/saveModel")
228
     public MessageBean<ModelInfo> saveModel(@RequestBody ModelInfo modelInfo) {
228
     public MessageBean<ModelInfo> saveModel(@RequestBody ModelInfo modelInfo) {
229
-        resourceService.saveModel(modelInfo);
230
-        return MessageBean.ok(null, "个人文件夹保存接口");
229
+
230
+        return MessageBean.ok(resourceService.saveModel(modelInfo), "个人文件夹保存接口");
231
     }
231
     }
232
 
232
 
233
     @PostMapping("/" + VERSION_V1 + "/needRefresh")
233
     @PostMapping("/" + VERSION_V1 + "/needRefresh")

+ 2 - 2
src/main/java/com/lqkj/link/module/zone/service/ResourceService.java

@@ -165,8 +165,8 @@ public class ResourceService {
165
         return result;
165
         return result;
166
     }
166
     }
167
 
167
 
168
-    public void saveModel(ModelInfo modelInfo) {
169
-        infoRepository.save(modelInfo);
168
+    public ModelInfo saveModel(ModelInfo modelInfo) {
169
+        return infoRepository.save(modelInfo);
170
     }
170
     }
171
 
171
 
172
     public Boolean needRefreshResource(String userCode) {
172
     public Boolean needRefreshResource(String userCode) {