You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
using BBWY.Server.Business;
|
|
|
|
using BBWY.Server.Model.Dto;
|
|
|
|
using Microsoft.AspNetCore.Http;
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
namespace BBWY.Server.API.Controllers
|
|
|
|
{
|
|
|
|
|
|
|
|
public class VenderController : BaseApiController
|
|
|
|
{
|
|
|
|
private VenderBusiness venderBusiness;
|
|
|
|
|
|
|
|
public VenderController(IHttpContextAccessor httpContextAccessor, VenderBusiness venderBusiness) : base(httpContextAccessor)
|
|
|
|
{
|
|
|
|
this.venderBusiness = venderBusiness;
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取商家信息
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="platformRequest"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpPost]
|
|
|
|
public VenderResponse GetVenderInfo([FromBody] PlatformRequest platformRequest)
|
|
|
|
{
|
|
|
|
return venderBusiness.GetVenderInfo(platformRequest);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取物流公司
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="platformRequest"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpPost]
|
|
|
|
public IList<LogisticsResponse> GetLogisticsList(PlatformRequest platformRequest)
|
|
|
|
{
|
|
|
|
return venderBusiness.GetLogisticsList(platformRequest);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|