IProject.cs 1.2 KB

12345678910111213141516171819202122232425262728
  1. using Common;
  2. using LitJson;
  3. using Vo.Feign;
  4. namespace Feign
  5. {
  6. public class IProject
  7. {
  8. // public static List<PageForMiniProgramVo> GetPageForMiniProgram(List<int> moduleIdList)
  9. // {
  10. // string content = Function.GetWebRequest(Utils.FeignUrl["ym_material"] + "/v1/pub/pageForMiniProgram?moduleIdList=" + Newtonsoft.Json.JsonConvert.SerializeObject(moduleIdList).Replace("[", "").Replace("]", ""));
  11. // Utils.WriteLog(content, "GetPageForMiniProgram");
  12. // return Newtonsoft.Json.JsonConvert.DeserializeObject<List<PageForMiniProgramVo>>(content);
  13. // }
  14. public static GetProjectServiceQueryVo getProjectService(int id)
  15. {
  16. string url = Utils.FeignUrl["omega_project"] + "/v1/omega_project/ProjectService/getProjectServiceQuery?id=" + id;
  17. string content = Function.GetWebRequest(url);
  18. JsonData jsonObj = JsonMapper.ToObject(content);
  19. if(jsonObj["status"].ToString() == "1")
  20. {
  21. return Newtonsoft.Json.JsonConvert.DeserializeObject<GetProjectServiceQueryVo>(jsonObj["data"].ToJson());
  22. }
  23. return new GetProjectServiceQueryVo();
  24. }
  25. }
  26. }