Przeglądaj źródła

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

hellohaidie 3 miesięcy temu
rodzic
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 227
     @PostMapping("/" + VERSION_V1 + "/saveModel")
228 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 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 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 172
     public Boolean needRefreshResource(String userCode) {