Merge branch 'master' of https://gitea.nxsir.cn/nanxun/IM_NEW
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user