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.
44 lines
1.3 KiB
44 lines
1.3 KiB
using BBWY.Client.Models.APIModel.Response.PackTask;
|
|
using BBWY.Common.Http;
|
|
using BBWY.Common.Models;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Net.Http;
|
|
using System.Text;
|
|
|
|
namespace BBWY.Client.APIServices.QiKu
|
|
{
|
|
public class PackTaskExpressService : BaseApiService, IDenpendency
|
|
{
|
|
public PackTaskExpressService(RestApiService restApiService, GlobalContext globalContext) : base(restApiService, globalContext)
|
|
{
|
|
}
|
|
|
|
|
|
|
|
public ApiResponse<List<string>> GetExpressNameList()
|
|
{
|
|
return SendRequest<List<string>>(globalContext.QKApiHost, $"api/PackTaskExpress/GetExpressNameList",
|
|
null
|
|
, null, HttpMethod.Get);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 订阅快递100
|
|
/// </summary>
|
|
/// <param name="waybillNo"></param>
|
|
/// <param name="sourceExpressName"></param>
|
|
/// <returns></returns>
|
|
public ApiResponse<object> SubscribeKuaiDi100(string waybillNo, string sourceExpressName)
|
|
{
|
|
return SendRequest<object>(globalContext.QKApiHost, $"api/PackTaskExpress/SubscribeKuaiDi100",
|
|
new
|
|
{
|
|
waybillNo,
|
|
sourceExpressName
|
|
}
|
|
, null, HttpMethod.Post);
|
|
}
|
|
}
|
|
}
|
|
|