16 lines
497 B
C#
16 lines
497 B
C#
|
|
using VideoConcat.Common.Tools;
|
|
|
|
namespace VideoConcat.Common.Api.Base
|
|
{
|
|
public class SystemApi
|
|
{
|
|
public static async Task<UserLoginResponse> LoginAsync<UserLoginResponse>(string username, string password)
|
|
{
|
|
HttpService Http = new();
|
|
ApiResponse<UserLoginResponse> res = await Http.PostAsync<UserLoginResponse>("/api/base/login", new { Username = username, Password = password, Platform = "pc" });
|
|
return res.Data;
|
|
}
|
|
}
|
|
}
|