|
|
|
@ -27,7 +27,7 @@ namespace GDZZ.Application
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="input"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet("/MiniBanner/page")]
|
|
|
|
|
[HttpGet("/Mini/BannePpage")]
|
|
|
|
|
public async Task<dynamic> Page([FromQuery] MiniBannerInput input)
|
|
|
|
|
{
|
|
|
|
|
var entities = await _rep.AsQueryable()
|
|
|
|
@ -40,7 +40,7 @@ namespace GDZZ.Application
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="input"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpPost("/MiniBanner/add")]
|
|
|
|
|
[HttpPost("/Mini/BannerAdd")]
|
|
|
|
|
public async Task Add(AddMiniBannerInput input)
|
|
|
|
|
{
|
|
|
|
|
var entity = input.Adapt<MiniBanner>();
|
|
|
|
@ -52,7 +52,7 @@ namespace GDZZ.Application
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="input"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpPost("/MiniBanner/delete")]
|
|
|
|
|
[HttpPost("/Mini/BannerDelete")]
|
|
|
|
|
public async Task Delete(DeleteMiniBannerInput input)
|
|
|
|
|
{
|
|
|
|
|
var entity = await _rep.FirstOrDefaultAsync(u => u.Id == input.Id);
|
|
|
|
@ -64,7 +64,7 @@ namespace GDZZ.Application
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="input"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpPost("/MiniBanner/edit")]
|
|
|
|
|
[HttpPost("/Mini/BannerEdit")]
|
|
|
|
|
public async Task Update(UpdateMiniBannerInput input)
|
|
|
|
|
{
|
|
|
|
|
var entity = input.Adapt<MiniBanner>();
|
|
|
|
@ -76,7 +76,7 @@ namespace GDZZ.Application
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="input"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet("/MiniBanner/detail")]
|
|
|
|
|
[HttpGet("/Mini/BannerDetail")]
|
|
|
|
|
public async Task<MiniBanner> Get([FromQuery] QueryeMiniBannerInput input)
|
|
|
|
|
{
|
|
|
|
|
return await _rep.FirstOrDefaultAsync(u => u.Id == input.Id);
|
|
|
|
@ -87,7 +87,7 @@ namespace GDZZ.Application
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="input"></param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[HttpGet("/Mini/Banner/list")]
|
|
|
|
|
[HttpGet("/Mini/GetBannerList")]
|
|
|
|
|
public async Task<dynamic> List([FromQuery] MiniBannerInput input)
|
|
|
|
|
{
|
|
|
|
|
return await _rep.ToListAsync();
|
|
|
|
|