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.

90 lines
2.5 KiB

  1. using EasyBL.WebApi.Filters;
  2. using EasyBL.WebApi.Message;
  3. using EasyBL.WEBAPP.ShowEasy;
  4. using EasyBL.WEBAPP.SYS;
  5. using Entity.ShowEasyDtos;
  6. using Entity.Sugar;
  7. using Newtonsoft.Json;
  8. using System;
  9. using System.Collections.Generic;
  10. using System.Linq;
  11. using System.Net;
  12. using System.Net.Http;
  13. using System.Web.Http;
  14. namespace WebApp.Controllers
  15. {
  16. public class OnsiteController : ApiController
  17. {
  18. //所有服務Api
  19. [HttpGet]
  20. public HttpResponseMessage AllCategories(string Lang)
  21. {
  22. return new OnsiteService().GetAllCategoryFilterList(Lang);
  23. }
  24. //服務主列表服務Api
  25. [HttpGet]
  26. public HttpResponseMessage Categories(string Lang)
  27. {
  28. return new OnsiteService().GetCategoryFilterList(Lang);
  29. }
  30. //位置
  31. [HttpGet]
  32. public HttpResponseMessage Locations(string Lang)
  33. {
  34. return new OnsiteService().GetLocationFilterList(Lang);
  35. }
  36. //服務列表分頁查詢
  37. [HttpGet]
  38. public HttpResponseMessage ServiceLists(string Lang,int PageIndex,int PageSize,string SortField,string SortOrder)
  39. {
  40. return new OnsiteService().GetOnsiteByPage( Lang, PageIndex, PageSize, SortField, SortOrder);
  41. }
  42. //詳情頁圖片輪播
  43. [HttpGet]
  44. public HttpResponseMessage BannerFiles(string Lang,string ServiceID)
  45. {
  46. return new OnsiteService().GetBannerFiles(Lang, ServiceID);
  47. }
  48. //包裝類型
  49. [HttpGet]
  50. public HttpResponseMessage PackingTypes(string Lang)
  51. {
  52. return new OnsiteService().GetPackingTypes(Lang);
  53. }
  54. //領取地城市
  55. [HttpGet]
  56. public HttpResponseMessage ReceivingCitys(string Lang)
  57. {
  58. return new OnsiteService().GetReceivingCitys(Lang);
  59. }
  60. //服務項目
  61. [HttpGet]
  62. public HttpResponseMessage ServiceItems(string Lang, string ServiceID)
  63. {
  64. return new OnsiteService().GetServiceItems(Lang, ServiceID);
  65. }
  66. //服務項目
  67. [HttpGet]
  68. public HttpResponseMessage Exhibitions(string Lang, string ServiceID)
  69. {
  70. return new OnsiteService().QueryExhibitions(Lang, ServiceID);
  71. }
  72. //服務細項目
  73. [HttpGet]
  74. public HttpResponseMessage Info(string Lang, string ServiceID)
  75. {
  76. return new OnsiteService().GetOneOnsiteServiceInfo(Lang, ServiceID);
  77. }
  78. }
  79. }