Abp模块
abp
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

19 lines
517 B

using Microsoft.AspNetCore.Mvc;
using System.Threading.Tasks;
using Volo.Abp;
using Volo.Abp.AspNetCore.Mvc;
namespace BookStore.Controllers;
// 验证数据模型验证本地化
// 配合AbpMvcDataAnnotationsLocalizationOptions及AbpLocalizationOptions.DefaultResourceType
[Route("api/data-annotation")]
[RemoteService]
public class DataAnnotationsLocalizationController: AbpControllerBase
{
[HttpPost]
public Task<Person> CreateAsync(Person person)
{
return Task.FromResult(person);
}
}