LSFE/LSFE.MobApp/Contracts/IApiClient.cs
2026-07-30 10:31:04 +08:00

24 lines
813 B
C#

using LSFE.Infrastructure.Model.Admin;
using LSFE.MobApp.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LSFE.MobApp.Contracts
{
public interface IApiClient<T>
{
Task<LoginResponse> LoginAsync(LoginRequest entity);
Task<List<T>> GetAllAsync();
Task<T> GetByIdAsync(int id);
Task<T> GetByIdAsync(Guid id);
Task<List<T>> GetWithQueryAsync(Dictionary<string, string> queryParams);
Task<ApiResponse<T>> CreateAsync(T entity);
Task<ApiResponse<T>> UpdateAsync(Guid id, T entity);
Task<ApiResponse<T>> DeleteAsync(Guid id);
Task<ApiResponse<T>> CreateAttendanceAsync(T entity);
Task<ApiResponse<T>> CreateCoveragePlanAsync(T entity);
}
}