添加项目文件。
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
using FluentValidation;
|
||||
|
||||
namespace ContactService.WebApi.Controllers
|
||||
{
|
||||
public class FriendRequestAddRequest
|
||||
{
|
||||
public Guid TargetId { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? RemarkName { get; set; }
|
||||
|
||||
}
|
||||
|
||||
public class FriendRequestAddRequestValidator : AbstractValidator<FriendRequestAddRequest>
|
||||
{
|
||||
public FriendRequestAddRequestValidator()
|
||||
{
|
||||
RuleFor(r => r.TargetId)
|
||||
.NotEmpty()
|
||||
.NotNull()
|
||||
;
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user