通过配置api 接口,自动将Result 进行加密返回,同时code返回12标注 目前使用base64

This commit is contained in:
2024-07-30 15:12:11 +08:00
parent a9407c3290
commit 8b05c01e42
8 changed files with 109 additions and 30 deletions
@@ -54,7 +54,9 @@ namespace IRaCIS.Core.Infrastructure.Extention
NoToken = 10,
//带了Token,但是没有相应权限(该用户类型不能做)
HaveTokenNotAccess = 11
HaveTokenNotAccess = 11,
ResultEncrepted=12
}
@@ -27,7 +27,7 @@
/// <summary>
/// 返回数据
/// </summary>
T Data { get; }
T Data { get; set; }
}
//public interface IResponseOutput<T,T2> : IResponseOutput
@@ -25,7 +25,7 @@ namespace IRaCIS.Core.Infrastructure.Extention
/// 数据 兼顾以前 Json序列化的时候返回属性名为“Result”
/// </summary>
[JsonProperty("Result")]
public T Data { get; private set; }
public T Data { get; set; }
[JsonProperty("OtherInfo")]