using BPA.SAAS.Manage.Application.DataBase.Dtos.GoodsTechnology;
using BPA.SAAS.Manage.Application.DataBase.Interface;
using Microsoft.AspNetCore.Components.Forms;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Linq;
namespace BPA.SAAS.Manage.Application.DataBase
{
[ApiDescriptionSettings("Goods", Tag = "商品工艺")]
public class GoodsTechnologyService: IDynamicApiController, ITransient
{
IGoodsTechnologyService _goodsTechnologyService;
public GoodsTechnologyService(IGoodsTechnologyService goodsTechnologyService)
{
_goodsTechnologyService=goodsTechnologyService;
}
///
/// 更新
///
///
///
[HttpPost("/api/goodstechnology/updategoodstechnologyaction")]
public async Task UpdateGoodsTechnologyAction(List inputDto)
{
return await _goodsTechnologyService.UpdateGoodsTechnologyAction(inputDto);
}
///
/// 添加
///
///
///
[HttpPost("/api/goodstechnology/addgoodstechnologyaction")]
public async Task AddGoodsTechnologyAction(List inputDto)
{
return await _goodsTechnologyService.AddGoodsTechnologyAction(inputDto);
}
///
/// 根据商品获取工艺
///
///
///
[HttpGet("/api/goodstechnology/getGoodstechnologyaction")]
public async Task> GetGoodsTechnologyAction(string goodsId)
{
return await _goodsTechnologyService.GetGoodsTechnologyAction(goodsId);
}
///
/// 删除
///
///
///
[HttpGet("/api/goodstechnology/deletegoodstechnologyaction")]
public async Task DeleteGoodsTechnologyAction(string id)
{
return await _goodsTechnologyService.DeleteGoodsTechnologyAction(id);
}
///
/// 删除
///
///
///
[HttpPost("/api/goodstechnology/deletebydevidegoodstechnologyaction")]
public async Task DeleteGoodsTechnologyAction(GoodsTechnologDelete dto)
{
return await _goodsTechnologyService.DeleteGoodsTechnologyAction(dto);
}
///
/// 查询设备信息(包含设备版本对应的工艺信息
///
///
[HttpGet("/api/goodstechnology/getdevicetechnology")]
public async Task> GetDeviceTechnology()
{
return await _goodsTechnologyService.GetDeviceTechnology();
}
}
}