增加api请求基类ApiRequestData

This commit is contained in:
FalconFly 2023-09-08 10:01:12 +08:00
parent c8db46053f
commit 5343fd53c2

View File

@ -5,12 +5,19 @@ namespace Falcon.SugarApi.ApiDefinistions
/// <summary> /// <summary>
/// api请求数据 /// api请求数据
/// </summary> /// </summary>
public class ApiRequestData<T> public abstract class ApiRequestData
{ {
/// <summary> /// <summary>
/// 用户凭据 /// 用户凭据
/// </summary> /// </summary>
[JsonPropertyName("usercredential")] [JsonPropertyName("UserCredential")]
public UserCredential UserCredential { get; set; } public UserCredential? UserCredential { get; set; }
}
/// <summary>
/// api请求数据
/// </summary>
public abstract class ApiRequestData<T>:ApiRequestData
{
} }
} }