开发活动接口

development
温天培 2 years ago
parent 573465acdf
commit bf2cd13af9

@ -7,6 +7,8 @@ using SqlSugar;
using System.Linq; using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using GDZZ.Application.Entity; using GDZZ.Application.Entity;
using Microsoft.AspNetCore.Authorization;
namespace GDZZ.Application namespace GDZZ.Application
{ {
/// <summary> /// <summary>
@ -89,6 +91,7 @@ namespace GDZZ.Application
/// <param name="input"></param> /// <param name="input"></param>
/// <returns></returns> /// <returns></returns>
[HttpGet("/Mini/GetBannerList")] [HttpGet("/Mini/GetBannerList")]
[AllowAnonymous]
public async Task<dynamic> List([FromQuery] MiniBannerInput input) public async Task<dynamic> List([FromQuery] MiniBannerInput input)
{ {
return await _rep.Where(u => u.Type == input.Type).ToListAsync(); return await _rep.Where(u => u.Type == input.Type).ToListAsync();

Loading…
Cancel
Save