步步为盈
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.

50 lines
1.5 KiB

2 years ago
using BBWY.Client.Models.APIModel.Response.PackTask;
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 PackServiceService : BaseApiService,IDenpendency
{
public PackServiceService(RestApiService restApiService, GlobalContext globalContext) : base(restApiService, globalContext)
{
}
public ApiResponse<PackServiceDTO[]> SearchAll()
{
return SendRequest<PackServiceDTO[]>(globalContext.QKApiHost, "api/PackService/SearchAll",
null
, null, HttpMethod.Get);
}
public ApiResponse<object> Add(PackServiceDTO consumable)
{
return SendRequest<object>(globalContext.QKApiHost, "api/PackService/Add",
consumable
, null, HttpMethod.Post);
}
public ApiResponse<object> Edit(PackServiceDTO consumable)
{
return SendRequest<object>(globalContext.QKApiHost, "api/PackService/Edit",
consumable
, null, HttpMethod.Post);
}
public ApiResponse<object> Deleted(long id)
{
return SendRequest<object>(globalContext.QKApiHost, "api/PackService/Deleted",
new
{
id = id
}
, null, HttpMethod.Get);
}
}
}