1
huangxiaoqiang
2025-10-21 6c663b92b0078aa89657df22ec188dff65599f04
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using WIDESEA_DTO.Basic;
 
namespace WIDESEA_WMSServer.Controllers;
 
[Route("api/[controller]")]
[ApiController]
public class BoxingInfoController : ApiBaseController<IBoxingInfoService, DtBoxingInfo>
{
    public BoxingInfoController(IBoxingInfoService service) : base(service)
    {
    }
 
    // POST api/<BoxingInfoController>
    [HttpPost,HttpGet, Route("AddBoxingInfo"), AllowAnonymous]
    public Task<WebResponseContent> AddBoxingInfoAsync([FromBody] AddBoxingDto boxingInfo)
    {
        return Service.AddBoxingInfoAsync(boxingInfo);
    }
 
    [HttpPost, HttpGet, Route("DeleteBoxingInfoAsync"), AllowAnonymous]
    public Task<WebResponseContent> DeleteBoxingInfoAsync([FromBody] AddBoxingDto boxingInfo)
    {
        return Service.DeleteBoxingInfoAsync(boxingInfo);
    }
}