大量后端代码格式化
This commit is contained in:
@@ -85,10 +85,8 @@ public class TransactionCategoryController(
|
||||
{
|
||||
return category.Id.Ok();
|
||||
}
|
||||
else
|
||||
{
|
||||
return "创建分类失败".Fail<long>();
|
||||
}
|
||||
|
||||
return "创建分类失败".Fail<long>();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -133,10 +131,8 @@ public class TransactionCategoryController(
|
||||
{
|
||||
return "更新分类成功".Ok();
|
||||
}
|
||||
else
|
||||
{
|
||||
return "更新分类失败".Fail();
|
||||
}
|
||||
|
||||
return "更新分类失败".Fail();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -165,10 +161,8 @@ public class TransactionCategoryController(
|
||||
{
|
||||
return BaseResponse.Done();
|
||||
}
|
||||
else
|
||||
{
|
||||
return "删除分类失败,分类不存在".Fail();
|
||||
}
|
||||
|
||||
return "删除分类失败,分类不存在".Fail();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
@@ -196,10 +190,8 @@ public class TransactionCategoryController(
|
||||
{
|
||||
return categories.Count.Ok();
|
||||
}
|
||||
else
|
||||
{
|
||||
return "批量创建分类失败".Fail<int>();
|
||||
}
|
||||
|
||||
return "批量创建分类失败".Fail<int>();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user