新增单元测试项目 封装基础调用api

This commit is contained in:
2023-06-26 17:47:45 +08:00
parent 3b7f8f078e
commit 2a14e5586c
8 changed files with 228 additions and 7 deletions
@@ -10,7 +10,7 @@ namespace IRaCIS.Core.Infrastructure.Extention
/// <summary>
/// 是否成功标记
/// </summary>
public bool IsSuccess { get; private set; }
public bool IsSuccess { get; set; }
public ApiResponseCodeEnum Code { get; set; } = ApiResponseCodeEnum.OK;
@@ -19,13 +19,13 @@ namespace IRaCIS.Core.Infrastructure.Extention
/// <summary>
/// 消息
/// </summary>
public string ErrorMessage { get; private set; }
public string ErrorMessage { get; set; }
/// <summary>
/// 数据 兼顾以前 Json序列化的时候返回属性名为“Result”
/// </summary>
[JsonProperty("Result")]
public T Data { get; private set; }
public T Data { get; set; }