1234567891011121314151617181920212223242526272829 |
- using Microsoft.AspNetCore.Components.Authorization;
- using System.Threading.Tasks;
- using wispro.sp.entity;
- using wispro.sp.entity.CompareCase;
- using wispro.sp.share;
- using wispro.sp.web.Auth;
- using static Microsoft.EntityFrameworkCore.DbLoggerCategory;
- namespace wispro.sp.web.Services
- {
- public class CompareFileService
- {
- private readonly IHttpService _httpClient;
- private readonly JwtAuthenticationStateProvider _jwt;
- public CompareFileService(IHttpService httpClient, AuthenticationStateProvider jwt)
- {
- _httpClient = httpClient;
- _jwt = (JwtAuthenticationStateProvider)jwt;
- }
- public async Task<ListApiResponse<CaseInfo>> Query(QueryFilter queryFilter)
- {
- var data = await _httpClient.Post<ListApiResponse<CaseInfo>>($"CaseFileCompare/QueryFilter", queryFilter);
- return data;
- }
- }
- }
|