2018-08-24 10:41:33 +00:00
|
|
|
|
using RestSharp;
|
2016-01-04 05:22:01 +00:00
|
|
|
|
using Tanshu.Accounts.Entities;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
namespace Tanshu.Accounts.Repository
|
|
|
|
|
{
|
2018-08-24 10:41:33 +00:00
|
|
|
|
public static class SettingBI
|
2016-01-04 05:22:01 +00:00
|
|
|
|
{
|
2018-08-24 10:41:33 +00:00
|
|
|
|
public static Setting Get(string name)
|
|
|
|
|
{
|
|
|
|
|
var request = new RestRequest();
|
|
|
|
|
request.Resource = "Setting/{name}.json";
|
|
|
|
|
request.AddParameter("name", name, ParameterType.UrlSegment);
|
|
|
|
|
var setting = JsonStore.Execute<Setting>(request);
|
|
|
|
|
return setting;
|
|
|
|
|
}
|
2016-01-04 05:22:01 +00:00
|
|
|
|
}
|
|
|
|
|
}
|