Skip to content

Commit 6244fe3

Browse files
committed
app 添加功能返回状态
1 parent 1a0029a commit 6244fe3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

moss-extension/src/main/java/org/xujin/moss/controller/AppController.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ public class AppController {
4242
*/
4343
@PostMapping("/add")
4444
public ResultData addApp(@RequestBody AppModel appModel) {
45-
ResultData result = new ResultData();
4645
appModel.setIsDeleted(Constants.IS_DELETE_FALSE);
4746
appService.addApp(appModel);
48-
return result;
47+
//返回成功状态
48+
return ResultData.builder().data(appModel).build();
4949
}
5050

5151
@GetMapping("/{id}")

0 commit comments

Comments
 (0)