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