mirror of
https://github.com/dotnetcore/Util.git
synced 2026-10-19 21:56:26 +08:00
27 lines
644 B
C#
27 lines
644 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
using Util.AspNetCore.Tests.Samples;
|
|
|
|
namespace Util.AspNetCore.Tests.Controllers;
|
|
|
|
/// <summary>
|
|
/// 测试Api控制器4
|
|
/// </summary>
|
|
[ApiController]
|
|
[Route( "api/[controller]" )]
|
|
public class Test4Controller : ControllerBase {
|
|
/// <summary>
|
|
/// Delete操作
|
|
/// </summary>
|
|
[HttpDelete( "delete/{id}" )]
|
|
public string Delete( string id ) {
|
|
return $"ok:{id}";
|
|
}
|
|
|
|
/// <summary>
|
|
/// Delete操作
|
|
/// </summary>
|
|
[HttpDelete( "{id}" )]
|
|
public CustomerDto Delete2( string id ) {
|
|
return new CustomerDto { Code = id };
|
|
}
|
|
} |