23 lines
647 B
C#
23 lines
647 B
C#
using Microsoft.AspNetCore.Authorization;
|
||
using Microsoft.AspNetCore.Mvc;
|
||
using Web.Core.Common.Attributes;
|
||
using Web.Core.IServices.Canteen;
|
||
using Web.Core.Model.Entity;
|
||
|
||
namespace ExternalAPI_NET8.Controllers;
|
||
|
||
[Route("[controller]/[action]")]
|
||
[ApiController]
|
||
[ApiGroup(groupName:"default")]
|
||
[Tags("饭堂报餐人数查询接口(微信H5页面访问)")]
|
||
|
||
public class CanteenController(ICanteenServices canteenServices) : ApiControllerBase
|
||
{
|
||
[HttpGet]
|
||
[AllowAnonymous]
|
||
public async Task<IActionResult> GetMealsAmount(string date)
|
||
{
|
||
var a=await canteenServices.GetMealsAmountAsync(date);
|
||
return RenderOk(a);
|
||
}
|
||
} |