ExternalAPI_NET8/ExternalAPI_NET8/Controllers/CanteenController.cs

23 lines
647 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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);
}
}