Selaa lähdekoodia

fix: 保存模型

liaoyitao 3 kuukautta sitten
vanhempi
commit
a7aec65a2b

+ 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
 }

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

@@ -164,8 +164,8 @@ public class ResourceService {
164 164
         return null;
165 165
     }
166 166
 
167
-    public void saveModel(ModelInfo modelInfo) {
168
-        infoRepository.save(modelInfo);
167
+    public ModelInfo saveModel(ModelInfo modelInfo) {
168
+        return infoRepository.save(modelInfo);
169 169
     }
170 170
 
171 171
 }