VideoConcat/Common/Api/Base/SystemApi.cs
2025-02-08 18:43:27 +08:00

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