Структура
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
using MediatR;
|
||||
|
||||
namespace Knot.Contracts.Profiles.Application.DTOs;
|
||||
|
||||
public record SearchProfilesRequest(string Query, int Limit = 20) : IRequest<List<UserProfileDto>>;
|
||||
|
||||
public record UpdateProfileRequest(
|
||||
string? DisplayName,
|
||||
string? About,
|
||||
string? Avatar,
|
||||
bool RemoveAvatar = false
|
||||
) : IRequest<UserProfileDto>;
|
||||
|
||||
public record UpdateSettingsRequest(
|
||||
bool? ShowLastSeen,
|
||||
bool? ShowAvatar,
|
||||
bool? ShowAbout,
|
||||
bool? ShowPhoneNumber,
|
||||
bool? ShowForwardedMessages,
|
||||
bool? ShowAddToGroupPermission
|
||||
) : IRequest<UserProfileDto>;
|
||||
Reference in New Issue
Block a user