/
ibavca1
/
A4.ControlPost
Обзор
Документация
Войти
/
ibavca1
/
A4.ControlPost
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
src/A4.ControlPost.UserEditor/Services/IApiClient.cs
24 строки
886 B
ibavcagmailcom
Начало добавление крипрографии
22 май 2026, 05:11
22 май 2026, 05:11
1ef44b2
Код
Авторство
О чём код?
using System; using System.Threading.Tasks; using Refit; using A4.ControlPost.Core.Models; using System.Collections.Generic; using System.Reactive; namespace A4.ControlPost.UserEditor.Services; public interface IApiClient { [Post("/api/auth/login")] Task<ApiResponse<AuthResponse>> LoginAsync(LoginRequest request); [Post("/api/auth/register")] Task<ApiResponse<AuthResponse>> RegisterAsync(RegisterRequest request); [Get("/api/users")] Task<ApiResponse<List<UserDto>>> GetUsersAsync(); [Put("/api/users/{id}")] Task<ApiResponse<Unit>> UpadteUserAsync(string id, [Body] UpdateUserRequest request); [Post("/ai/auth/forgot-password")] Task<ApiResponse<Unit>> ForgotPasswordAsync([Body] ForgotPasswordRequest request); [Post("/api/auth/reset-password")] Task<ApiResponse<Unit>> ResetPasswordAsync([Body] ResetPasswordRequest request); }