using BPA.SAAS.Manage.Application.Device.Dtos.Device;
using BPA.SAAS.Manage.Application.Device.Dtos.ProductTopics;
using BPA.SAAS.Manage.Application.Device.Interface;
using BPA.SAAS.Manage.Core.Base;
using BPA.SAAS.Manage.Core.Product;
using Microsoft.AspNetCore.Components.Forms;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BPA.SAAS.Manage.Application.Device
{
[ApiDescriptionSettings("Device", Tag = "产品Topics")]
public class ProductTopicsServices: IDynamicApiController, ITransient
{
IProductTopicsService _productTopicsService;
public ProductTopicsServices(IProductTopicsService productTopicsService)
{
_productTopicsService=productTopicsService;
}
///
/// 分页查询
///
///
///
[HttpPost("/api/producttopics/page")]
public async Task GetProductTopicsPage(ProductTopicsQueryInputDto inputDto)
{
return await _productTopicsService.GetProductTopicsPage(inputDto);
}
///
/// 查询topics列表
///
///
///
[HttpPost("/api/producttopics/list")]
public async Task> GetProductTopicList(ProductTopicsQueryDto inputDto)
{
return await _productTopicsService.GetProductTopicList(inputDto);
}
///
/// 添加
///
///
///
[HttpPost("/api/producttopics/add")]
public async Task AddProductTopics(ProductTopicsBaseDto inputDto)
{
return await _productTopicsService.AddProductTopics(inputDto);
}
///
/// 更新
///
///
///
[HttpPost("/api/producttopics/update")]
public async Task UpdateProductTopics(ProductTopicsBaseDto inputDto)
{
return await _productTopicsService.UpdateProductTopics(inputDto);
}
///
/// 删除
///
///
///
[HttpPost("/api/producttopics/delete")]
public async Task DelProductTopics(List inputList)
{
return await _productTopicsService.DelProductTopics(inputList);
}
}
}