修改国际化
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user