VideoConcat/Common/Api/Base/SystemApi.cs
2025-01-27 22:07:25 +08:00

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;
}
}
}