This commit is contained in:
Putoo
2026-04-27 17:53:43 +08:00
parent c55a104573
commit a219fbec32
10 changed files with 168 additions and 4 deletions

View File

@@ -0,0 +1,31 @@
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
namespace Application.Web.Controllers.Pub
{
/// <summary>
/// 公共接口
/// </summary>
[Route("[controller]/[action]")]
[ApiController]
public class PubController : ControllerBase
{
private readonly IAreaService _areaService;
public PubController(IAreaService areaService)
{
_areaService = areaService;
}
/// <summary>
/// 获取首页信息
/// </summary>
/// <returns></returns>
[HttpGet]
public async Task<IPoAction> GetMain()
{
var areaData = await _areaService.GetAreaData();
return PoAction.Ok(new{area=areaData});
}
}
}