32 lines
968 B
C#
32 lines
968 B
C#
using Zxd.Core.Domain.Dto.Contract;
|
|
|
|
namespace Zxd.Core.WebApi.Controllers
|
|
{
|
|
[ApiSignatureFilterForbid]
|
|
public class ContractController : BaseController
|
|
{
|
|
private readonly IProdcutDomain _prodcutDomain;
|
|
|
|
public ContractController(IProdcutDomain prodcutDomain)
|
|
{
|
|
_prodcutDomain = prodcutDomain;
|
|
}
|
|
|
|
/// <summary>
|
|
/// 基础产品列表
|
|
/// </summary>
|
|
/// <param name="dto"></param>
|
|
/// <returns></returns>
|
|
[HttpGet("GetContractByFreeOrder")]
|
|
public async Task<string> GetContractAddressByFreeOrder([FromQuery] decimal orderId)
|
|
{
|
|
return await _prodcutDomain.GetContractByFreeOrderId(orderId);
|
|
}
|
|
|
|
[HttpGet("GetContractView")]
|
|
public async Task<ContractResultView> GetContractView([FromQuery] ContractQueryDto queryDto)
|
|
{
|
|
return await _prodcutDomain.GetContractView(queryDto);
|
|
}
|
|
}
|
|
} |