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.
32 lines
1.2 KiB
32 lines
1.2 KiB
using BBWY.Client.Models;
|
|
using BBWY.Common.Http;
|
|
using BBWY.Common.Models;
|
|
using System.Collections.Generic;
|
|
using System.Net.Http;
|
|
|
|
namespace BBWY.Client.APIServices
|
|
{
|
|
public class MdsApiService : BaseApiService, IDenpendency
|
|
{
|
|
public MdsApiService(RestApiService restApiService, GlobalContext globalContext) : base(restApiService, globalContext)
|
|
{
|
|
|
|
}
|
|
|
|
public ApiResponse<MDSUserResponse> GetUserInfo(string userToken)
|
|
{
|
|
return SendRequest<MDSUserResponse>(globalContext.MDSApiHost,
|
|
"/TaskList/User/GetUserInfo",
|
|
null,
|
|
new Dictionary<string, string>()
|
|
{
|
|
{ "Authorization", $"Bearer {userToken}" }
|
|
}, HttpMethod.Get);
|
|
}
|
|
|
|
public ApiResponse<IList<ShopResponse>> GetShopsByUserId(long userId)
|
|
{
|
|
return SendRequest<IList<ShopResponse>>(globalContext.MDSApiHost, "TaskList/Shop/GetShopsByUserId", $"userId={userId}", null, System.Net.Http.HttpMethod.Get);
|
|
}
|
|
}
|
|
}
|
|
|