2 changed files with 0 additions and 104 deletions
@ -1,48 +0,0 @@ |
|||||
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 IncreateServiceService : BaseApiService, IDenpendency |
|
||||
{ |
|
||||
public IncreateServiceService(RestApiService restApiService, GlobalContext globalContext) : base(restApiService, globalContext) |
|
||||
{ |
|
||||
} |
|
||||
|
|
||||
public ApiResponse<IncreateServiceModel[]> SearchAll() |
|
||||
{ |
|
||||
return SendRequest<IncreateServiceModel[]>(globalContext.QKApiHost, "api/IncreateService/SearchAll", |
|
||||
null |
|
||||
, null, HttpMethod.Get); |
|
||||
} |
|
||||
|
|
||||
public ApiResponse<object> Add(IncreateServiceModel consumable) |
|
||||
{ |
|
||||
return SendRequest<object>(globalContext.QKApiHost, "api/IncreateService/Add", |
|
||||
consumable |
|
||||
, null, HttpMethod.Post); |
|
||||
} |
|
||||
public ApiResponse<object> Edit(IncreateServiceModel consumable) |
|
||||
{ |
|
||||
return SendRequest<object>(globalContext.QKApiHost, "api/IncreateService/Edit", |
|
||||
consumable |
|
||||
, null, HttpMethod.Post); |
|
||||
} |
|
||||
|
|
||||
|
|
||||
public ApiResponse<object> Deleted(long id) |
|
||||
{ |
|
||||
return SendRequest<object>(globalContext.QKApiHost, "api/IncreateService/Deleted", |
|
||||
new |
|
||||
{ |
|
||||
id = id |
|
||||
} |
|
||||
, null, HttpMethod.Get); |
|
||||
} |
|
||||
} |
|
||||
} |
|
@ -1,56 +0,0 @@ |
|||||
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);
|
|
||||
//}
|
|
||||
} |
|
||||
} |
|
Loading…
Reference in new issue