修改
continuous-integration/drone/push Build is passing

This commit is contained in:
he
2024-05-07 14:45:32 +08:00
parent 7f28c984e1
commit f55fa98dec
8 changed files with 157 additions and 45 deletions
@@ -33,13 +33,23 @@ namespace IRaCIS.Core.Infrastructure.Extention
CloseCurrentWindows = 6,
/// <summary>
/// IP不一致
/// </summary>
IpDiscrepancy = 7,
//在其他地方登陆,被迫下线
LoginInOtherPlace = -1,
//在其他地方登陆,被迫下线
LoginInOtherPlace = -1,
AutoLoginOut = -2,
/// <summary>
/// 需要修改密码
/// </summary>
NeedChangePassWord=-3,
//没有带token访问(未登陆)
NoToken = 10,
@@ -128,9 +128,9 @@ namespace IRaCIS.Core.Infrastructure.Extention
// return new ResponseOutput<T>().Ok(data, msg);
//}
public static IResponseOutput<T> Ok<T>(T data = default, object otherData = default, string msg = "")
public static IResponseOutput<T> Ok<T>(T data = default, object otherData = default, string msg = "", ApiResponseCodeEnum code = ApiResponseCodeEnum.OK)
{
return new ResponseOutput<T>().Ok(data, otherData, msg);
return new ResponseOutput<T>().Ok(data, otherData, msg, code);
}
/// <summary>
/// 成功