using BBWY.Client.Models; using BBWY.Client.Models.APIModel; 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 QualityTaskService : BaseApiService, IDenpendency { public QualityTaskService(RestApiService restApiService, GlobalContext globalContext) : base(restApiService, globalContext) { } public ApiResponse SearchQualityTaskList(string WayBillNo = null, string SourceExpressName = null, string departmentName = null, string skuId = null, string taskId = null, string spuId = null, string orderSn = null, QualityTaskExceptionState? QualityTaskExceptionState = null, string ShopName = null, int pageIndex = 1, int pageSize = 10, string SkuTitle = null, string SpuTitle = null, string PackUserName = null ) { return SendRequest(globalContext.QKApiHost, "api/QualityTask/SearchQualityTaskList", new { SkuTitle, SpuTitle, DepartmentName = departmentName, SkuId = skuId, TaskId = taskId, QualityTaskExceptionState, PageIndex = pageIndex, PageSize = pageSize, ShopName = ShopName, WayBillNo = WayBillNo, SourceExpressName = SourceExpressName, spuId, orderSn, PackUserName }, null, HttpMethod.Post); } public ApiResponse QualityTaskException(long TaskId, TaskExceptionType TaskExceptionType, string RemarkMsg) { return SendRequest(globalContext.QKApiHost, $"api/QualityTask/QualityTaskException?TaskId={TaskId}", new { TaskId, TaskExceptionType, RemarkMsg, UserName=globalContext.User.Name } , null, HttpMethod.Post); } } }