|
|
|
using BBWYB.Server.Business;
|
|
|
|
using BBWYB.Server.Model.Dto;
|
|
|
|
using Microsoft.AspNetCore.Authentication.JwtBearer;
|
|
|
|
using Microsoft.AspNetCore.Authorization;
|
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
using SDKAdapter.OperationPlatform.Models;
|
|
|
|
|
|
|
|
namespace BBWYB.Server.API.Controllers
|
|
|
|
{
|
|
|
|
[Authorize(AuthenticationSchemes = JwtBearerDefaults.AuthenticationScheme)]
|
|
|
|
public class VenderController : BaseApiController
|
|
|
|
{
|
|
|
|
private VenderBusiness venderBusiness;
|
|
|
|
public VenderController(IHttpContextAccessor httpContextAccessor, VenderBusiness venderBusiness) : base(httpContextAccessor)
|
|
|
|
{
|
|
|
|
this.venderBusiness = venderBusiness;
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 保存店铺信息
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="shopSettingRequest"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpPost]
|
|
|
|
public long SaveShopSetting([FromBody] ShopSettingRequest shopSettingRequest)
|
|
|
|
{
|
|
|
|
return venderBusiness.SaveShopSetting(shopSettingRequest);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 查询店铺关联的物流公司列表
|
|
|
|
/// </summary>
|
|
|
|
/// <param name="request"></param>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpPost]
|
|
|
|
public IList<OP_QueryExpressCompanyResponse> GetExpressCompanyList([FromBody] PlatformRequest request)
|
|
|
|
{
|
|
|
|
return venderBusiness.GetExpressCompanyList(request);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// 获取快递100物流公司列表
|
|
|
|
/// </summary>
|
|
|
|
/// <returns></returns>
|
|
|
|
[HttpGet]
|
|
|
|
public IList<KuaiDi100ExpressCompany> GetKuaiDi100ExpressCompanyList()
|
|
|
|
{
|
|
|
|
return venderBusiness.GetKuaiDi100ExpressCompanyList();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|