增加api请求数据模板

This commit is contained in:
FalconFly 2023-07-20 10:25:42 +08:00
parent 681237db55
commit 88d94787b5
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,16 @@
using System.Text.Json.Serialization;
namespace Falcon.SugarApi.ApiDefinistions
{
/// <summary>
/// api请求数据
/// </summary>
public class ApiRequestData<T>
{
/// <summary>
/// 用户凭据
/// </summary>
[JsonPropertyName("usercredential")]
public UserCredential UserCredential { get; set; }
}
}

View File

@ -0,0 +1,15 @@
using System.Text.Json.Serialization;
namespace Falcon.SugarApi.ApiDefinistions
{
/// <summary>
/// 凭据
/// </summary>
public class UserCredential {
/// <summary>
/// 票据
/// </summary>
[JsonPropertyName("ticket")]
public string Ticket { get; set; }
}
}