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