We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a0029a commit 6244fe3Copy full SHA for 6244fe3
moss-extension/src/main/java/org/xujin/moss/controller/AppController.java
@@ -42,10 +42,10 @@ public class AppController {
42
*/
43
@PostMapping("/add")
44
public ResultData addApp(@RequestBody AppModel appModel) {
45
- ResultData result = new ResultData();
46
appModel.setIsDeleted(Constants.IS_DELETE_FALSE);
47
appService.addApp(appModel);
48
- return result;
+ //返回成功状态
+ return ResultData.builder().data(appModel).build();
49
}
50
51
@GetMapping("/{id}")
0 commit comments