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
19 lines
517 B
3 years ago
|
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);
|
||
|
}
|
||
|
}
|