feat 跳板机中间api

This commit is contained in:
2024-06-26 12:14:39 +08:00
parent 67fa5e5994
commit e71d714209
36 changed files with 1473 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
using Dlhis.Middle.Request;
using Dlhis.Middle.Response;
using Dlhis.Middle.Services;
using Kurisu.AspNetCore.DataAccess.SqlSugar.Aop;
using Kurisu.AspNetCore.UnifyResultAndValidation;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace Dlhis.Middle.Controllers;
/// <summary>
/// 订单
/// </summary>
[Authorize]
[Route("api/[controller]")]
[ApiController]
public class OrdersController : ControllerBase
{
private readonly IOrderService _orderService;
public OrdersController(IOrderService orderService)
{
_orderService = orderService;
}
/// <summary>
/// 消费
/// </summary>
/// <param name="request"></param>
/// <returns></returns>
[Authorize(Policy = "consumer")]
[HttpPost]
[IgnoreTenant]
public async Task<DefaultApiResult<OrderResultResponse>> AddAsync(OrderAddRequest request)
{
return await _orderService.AddAsync(request);
}
}