新增国家、州省地区的API
This commit is contained in:
@@ -1,11 +1,12 @@
|
||||
using Atomx.Admin.Client.Models;
|
||||
using FluentValidation;
|
||||
using Microsoft.Extensions.Localization;
|
||||
|
||||
namespace Atomx.Admin.Client.Validators
|
||||
{
|
||||
public class ProductAddStockModelValidator : AbstractValidator<ProductAddStockModel>
|
||||
{
|
||||
public ProductAddStockModelValidator()
|
||||
public ProductAddStockModelValidator(IStringLocalizer<ProductAddStockModelValidator> localizer)
|
||||
{
|
||||
//RuleFor(p => p.Username).NotEmpty().WithMessage("用户名不能为空");
|
||||
//RuleFor(p => p.Username).Length(2, 64).When(p => !string.IsNullOrEmpty(p.Username)).WithMessage("用户名长度必须再2-64个字符之间");
|
||||
|
||||
Reference in New Issue
Block a user