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.
58 lines
1.9 KiB
58 lines
1.9 KiB
using BBWY.Client.Models;
|
|
using BBWY.Client.Models.APIModel;
|
|
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
|
|
{
|
|
public class PackDetailService : BaseApiService, IDenpendency
|
|
{
|
|
public PackDetailService(RestApiService restApiService, GlobalContext globalContext) : base(restApiService, globalContext)
|
|
{
|
|
}
|
|
|
|
public ApiResponse<PackServiceResponse> GetPackTaskDetail(long TaskId)
|
|
{
|
|
return SendRequest<PackServiceResponse>(globalContext.QKApiHost, $"api/PackDetail/GetPackTaskDetail?taskId={TaskId}",
|
|
null
|
|
, null, HttpMethod.Get);
|
|
}
|
|
|
|
public ApiResponse<object> SetPackTaskDetail(PackTaskDetailRequest consumable)
|
|
{
|
|
return SendRequest<object>(globalContext.QKApiHost, "api/PackDetail/SetPackTaskDetail",
|
|
consumable
|
|
, null, HttpMethod.Post);
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
/// 设置打包费用
|
|
/// </summary>
|
|
/// <param name="consumable"></param>
|
|
/// <returns></returns>
|
|
public ApiResponse<SetPackDetailV2Response> SetPackDetailV2(SetPackDetailRequest consumable)
|
|
{
|
|
return SendRequest<SetPackDetailV2Response>(globalContext.QKApiHost, "api/PackDetail/SetPackDetailV2",
|
|
consumable
|
|
, null, HttpMethod.Post);
|
|
}
|
|
/// <summary>
|
|
/// 获取打包费用明细
|
|
/// </summary>
|
|
/// <param name="taskId"></param>
|
|
/// <returns></returns>
|
|
public ApiResponse<GetPackDetailResponse> GetPackDetail(long taskId)
|
|
{
|
|
return SendRequest<GetPackDetailResponse>(globalContext.QKApiHost, $"api/PackDetail/GetPackDetail?taskId={taskId}",
|
|
null
|
|
, null, HttpMethod.Get);
|
|
}
|
|
|
|
}
|
|
}
|
|
|