fix 更新控制器名称
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
using Dlhis.Basic.Dishes.Request;
|
using Dlhis.Basic.Dishes.Request;
|
||||||
using Dlhis.Basic.Dishes.Response;
|
using Dlhis.Basic.Dishes.Response;
|
||||||
using Dlhis.Canteen.Dishes.Services;
|
using Dlhis.Basic.Dishes.Services;
|
||||||
using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
using Dlhis.Basic.Dishes.Request;
|
using Dlhis.Basic.Dishes.Dto;
|
||||||
|
using Dlhis.Basic.Dishes.Request;
|
||||||
using Dlhis.Basic.Dishes.Response;
|
using Dlhis.Basic.Dishes.Response;
|
||||||
using Dlhis.Canteen.Dishes.Services;
|
using Dlhis.Basic.Dishes.Services;
|
||||||
|
using Dlhis.Entity.Canteen.Enums;
|
||||||
using Kurisu.AspNetCore.DataAccess.SqlSugar.Aop;
|
using Kurisu.AspNetCore.DataAccess.SqlSugar.Aop;
|
||||||
using Kurisu.Core.DataAccess.Dto;
|
using Kurisu.Core.DataAccess.Dto;
|
||||||
using Microsoft.AspNetCore.Authorization;
|
using Microsoft.AspNetCore.Authorization;
|
||||||
@@ -14,12 +16,12 @@ namespace Dlhis.Basic.Dishes.Controller;
|
|||||||
[Authorize]
|
[Authorize]
|
||||||
[Route("api/[controller]")]
|
[Route("api/[controller]")]
|
||||||
[ApiController]
|
[ApiController]
|
||||||
public class DishesMenuController : ControllerBase
|
public class DishesMenusController : ControllerBase
|
||||||
{
|
{
|
||||||
private readonly IDishesMenuService _dishesMenuService;
|
private readonly IDishesMenuService _dishesMenuService;
|
||||||
private readonly IDishesService _dishesService;
|
private readonly IDishesService _dishesService;
|
||||||
|
|
||||||
public DishesMenuController(IDishesMenuService dishesMenuService, IDishesService dishesService)
|
public DishesMenusController(IDishesMenuService dishesMenuService, IDishesService dishesService)
|
||||||
{
|
{
|
||||||
_dishesMenuService = dishesMenuService;
|
_dishesMenuService = dishesMenuService;
|
||||||
_dishesService = dishesService;
|
_dishesService = dishesService;
|
||||||
@@ -48,6 +50,20 @@ public class DishesMenuController : ControllerBase
|
|||||||
await _dishesMenuService.SaveDishesMenuAsync(request);
|
await _dishesMenuService.SaveDishesMenuAsync(request);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 菜单明细
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="date"></param>
|
||||||
|
/// <param name="businessPlaceCode"></param>
|
||||||
|
/// <param name="shiftType"></param>
|
||||||
|
/// <param name="dishesCode"></param>
|
||||||
|
/// <returns></returns>
|
||||||
|
[HttpGet("detail")]
|
||||||
|
public async Task<DishesMenuDetailDto> GetBookingDishesDetailAsync(DateTime date, Guid businessPlaceCode, ShiftEnumType shiftType, string dishesCode)
|
||||||
|
{
|
||||||
|
return await _dishesMenuService.GetBookingDishesDetailAsync(date, businessPlaceCode, shiftType, dishesCode);
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 菜品分页
|
/// 菜品分页
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Reference in New Issue
Block a user