1.优化主播代码模块代码,添加统一异常处理
This commit is contained in:
@@ -22,7 +22,7 @@ public class ChatController {
|
||||
@PostMapping("add")
|
||||
public ResponseData<Object> add(@RequestBody ChatModel model) {
|
||||
int insert = chatDao.insert(model);
|
||||
return insert == 1 ? ResponseData.success("") : ResponseData.error(ResponseInfo.ERROR,null);
|
||||
return insert == 1 ? ResponseData.success("") : ResponseData.error(ResponseInfo.ERROR.getCode(),null);
|
||||
}
|
||||
|
||||
//根据ip查询数据
|
||||
|
||||
Reference in New Issue
Block a user