|
@@ -88,7 +88,7 @@ public class LiveDataAccountsController {
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
- return Result.ok("查询异常");
|
|
|
+ return Result.error("查询异常");
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -129,11 +129,11 @@ public class LiveDataAccountsController {
|
|
|
@PostMapping(value = "/edit")
|
|
|
public Result<Object> edit(@RequestBody LiveDataAccounts liveDataAccounts) {
|
|
|
if (Check.isNull(liveDataAccounts.getLiveAccountId())) {
|
|
|
- return Result.ok("缺少数据,请输入账户ID");
|
|
|
+ return Result.error("缺少数据,请输入账户ID");
|
|
|
}
|
|
|
LiveDataAccounts accounts = liveDataAccountsService.getById(liveDataAccounts.getLiveAccountId());
|
|
|
if (Check.isNull(accounts)) {
|
|
|
- return Result.ok("修改失败,未找到该账户");
|
|
|
+ return Result.error("修改失败,未找到该账户");
|
|
|
}
|
|
|
if (!Check.isNull(liveDataAccounts.getLiveAccountName())) {
|
|
|
QueryWrapper<LiveDataAccounts> queryWrapper = new QueryWrapper<>();
|
|
@@ -156,7 +156,7 @@ public class LiveDataAccountsController {
|
|
|
public Result<?> delete(@RequestParam(name = "liveAccountId") String liveAccountId, String userId) {
|
|
|
try {
|
|
|
if (Check.isNull(userId) || Check.isNull(liveAccountId)) {
|
|
|
- return Result.ok("缺少数据");
|
|
|
+ return Result.error("缺少数据");
|
|
|
}
|
|
|
LiveDataAccounts accounts = liveDataAccountsService.getById(liveAccountId);
|
|
|
if (!Check.isNull(accounts)) {
|