.NET 10 solution for Ping, a Discord style chat app: Domain, Application and Infrastructure projects plus the Api host. SignalR for chat and presence, LiveKit for call tokens, EF Core on Postgres, S3 compatible storage for attachments, and OIDC auth shared with the Musify Zitadel instance. Includes the Compose stack for local development.
14 lines
337 B
C#
14 lines
337 B
C#
using FluentValidation;
|
|
using Ping.Api.DataTransferObjects.Friends;
|
|
|
|
namespace Ping.Api.Validators.Friends;
|
|
|
|
public sealed class SendFriendRequestRequestValidator : AbstractValidator<SendFriendRequestRequest>
|
|
{
|
|
public SendFriendRequestRequestValidator()
|
|
{
|
|
RuleFor(x => x.AddresseeId)
|
|
.GreaterThan(0);
|
|
}
|
|
}
|