using System.Collections.Generic; using System.Threading.Tasks; using Newtonsoft.Json.Linq; using SWS.Commons; using SWS.Model; namespace SWS.Service { public class ProjectSettingsService : HttpService { public ProjectSettingsService() : base() { } public async Task> GetList() { var res = await this.GetAsync>($"SettingsApi/GetList?projId={GlobalObject.curProject.ProjectId}"); if (res.code == 200) { return res.data; } else { } return null; } public async Task GetEntity(string settingName) { var res = await this.GetAsync($"SettingsApi/GetEntity?settingName={settingName}&projId={GlobalObject.curProject.ProjectId}"); if (res.code == 200) { return res.data; } else { } return null; } } }