| 12345678910111213141516171819202122232425262728 |
- using Common;
- using LitJson;
- using Vo.Feign;
- namespace Feign
- {
- public class IProject
- {
- // public static List<PageForMiniProgramVo> GetPageForMiniProgram(List<int> moduleIdList)
- // {
- // string content = Function.GetWebRequest(Utils.FeignUrl["ym_material"] + "/v1/pub/pageForMiniProgram?moduleIdList=" + Newtonsoft.Json.JsonConvert.SerializeObject(moduleIdList).Replace("[", "").Replace("]", ""));
- // Utils.WriteLog(content, "GetPageForMiniProgram");
- // return Newtonsoft.Json.JsonConvert.DeserializeObject<List<PageForMiniProgramVo>>(content);
- // }
- public static GetProjectServiceQueryVo getProjectService(int id)
- {
- string url = Utils.FeignUrl["omega_project"] + "/v1/omega_project/ProjectService/getProjectServiceQuery?id=" + id;
- string content = Function.GetWebRequest(url);
- JsonData jsonObj = JsonMapper.ToObject(content);
- if(jsonObj["status"].ToString() == "1")
- {
- return Newtonsoft.Json.JsonConvert.DeserializeObject<GetProjectServiceQueryVo>(jsonObj["data"].ToJson());
- }
- return new GetProjectServiceQueryVo();
- }
- }
- }
|