增加api请求数据模板
This commit is contained in:
parent
681237db55
commit
88d94787b5
16
Falcon.SugarApi/ApiDefinistions/ApiRequestData.cs
Normal file
16
Falcon.SugarApi/ApiDefinistions/ApiRequestData.cs
Normal 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; }
|
||||
}
|
||||
}
|
15
Falcon.SugarApi/ApiDefinistions/UserCredential.cs
Normal file
15
Falcon.SugarApi/ApiDefinistions/UserCredential.cs
Normal 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; }
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user