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.
56 lines
1.8 KiB
56 lines
1.8 KiB
using BBWY.Client.Models.APIModel.Request;
|
|
using BBWY.Client.Models.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 WorkProcessService : BaseApiService, IDenpendency
|
|
{
|
|
public WorkProcessService(RestApiService restApiService, GlobalContext globalContext) : base(restApiService, globalContext)
|
|
{
|
|
}
|
|
|
|
public ApiResponse<WorkProcessModel[]> SearchAll()
|
|
{
|
|
return SendRequest<WorkProcessModel[]>(globalContext.QKApiHost, "api/WorkProcess/SearchAll",
|
|
null
|
|
, null, HttpMethod.Get);
|
|
}
|
|
|
|
public ApiResponse<object> Add(WorkProcessModel consumable)
|
|
{
|
|
return SendRequest<object>(globalContext.QKApiHost, "api/WorkProcess/Add",
|
|
consumable
|
|
, null, HttpMethod.Post);
|
|
}
|
|
public ApiResponse<object> Edit(WorkProcessModel consumable)
|
|
{
|
|
return SendRequest<object>(globalContext.QKApiHost, "api/WorkProcess/Edit",
|
|
consumable
|
|
, null, HttpMethod.Post);
|
|
}
|
|
|
|
|
|
public ApiResponse<object> Deleted(long id)
|
|
{
|
|
return SendRequest<object>(globalContext.QKApiHost, "api/WorkProcess/Deleted",
|
|
new
|
|
{
|
|
id = id
|
|
}
|
|
, null, HttpMethod.Get);
|
|
}
|
|
|
|
//public ApiResponse<ConsumableResponse> Search(ConsumableRequest consumable)
|
|
//{
|
|
// return SendRequest<ConsumableResponse>(globalContext.QKApiHost, "api/WorkProcess/Search",
|
|
// consumable
|
|
// , null, HttpMethod.Post);
|
|
//}
|
|
}
|
|
}
|
|
|