23 lines
565 B
C#
23 lines
565 B
C#
using FluentValidation;
|
|
|
|
namespace GroupService.WebApi.Controllers.Group
|
|
{
|
|
public class GroupUpdateRequest
|
|
{
|
|
public Guid GroupId { get; set; }
|
|
public string? GroupName { get; set; }
|
|
public string? Avatar { get; set; }
|
|
public string? Description { get; set; }
|
|
}
|
|
|
|
public class GroupUpDateRequestValidator : AbstractValidator<GroupUpdateRequest>
|
|
{
|
|
public GroupUpDateRequestValidator()
|
|
{
|
|
RuleFor(r => r.GroupId)
|
|
.NotNull()
|
|
.NotEmpty();
|
|
}
|
|
}
|
|
}
|