修改国际化

This commit is contained in:
he
2023-05-06 16:11:31 +08:00
parent 9b6e8feabf
commit 122b50e114
18 changed files with 97 additions and 33 deletions
@@ -54,7 +54,7 @@ namespace IRaCIS.Core.Infrastructure.Extention
if (isMultiSortFiled&& sortArray==default)
{
throw new System.Exception("必须指定排序字段");
throw new System.Exception("The sort field must be specified");
}
if (pageNumber <= 0)
@@ -7,10 +7,10 @@ namespace IRaCIS.Core.Infrastructure.Extention
/// </summary>
public class ResponseOutput<T> : IResponseOutput<T>
{
/// <summary>
/// 是否成功标记
/// </summary>
public bool IsSuccess { get; private set; }
/// <summary>
/// 是否成功标记
/// </summary>
public bool IsSuccess { get; private set; }
public ApiResponseCodeEnum Code { get; set; } = ApiResponseCodeEnum.OK;
@@ -169,7 +169,7 @@ namespace IRaCIS.Core.Infrastructure.Extention
public static IResponseOutput<string> DBNotExistIfNUll(object businessObject)
{
return new ResponseOutput<string>().NotOk($"The business object{businessObject.GetType().Name} does not exist in the database, or was deleted by someone else, or an incorrect parameter query caused");
return new ResponseOutput<string>().NotOk("The business object{businessObject.GetType().Name} does not exist in the database, or was deleted by someone else, or an incorrect parameter query caused");
}