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.
105 lines
2.9 KiB
105 lines
2.9 KiB
using EasyBL.WebApi.Filters;
|
|
using EasyBL.WebApi.Message;
|
|
using EasyBL.WEBAPP.ShowEasy;
|
|
using EasyBL.WEBAPP.SYS;
|
|
using Entity.ShowEasyDtos;
|
|
using Entity.Sugar;
|
|
using Newtonsoft.Json;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Net.Http;
|
|
using System.Web.Http;
|
|
|
|
namespace WebApp.Controllers
|
|
{
|
|
public class OnsiteController : ApiController
|
|
{
|
|
|
|
//所有服務Api
|
|
[HttpGet]
|
|
public HttpResponseMessage AllCategories(string Lang)
|
|
{
|
|
return new OnsiteService().GetAllCategoryFilterList(Lang);
|
|
}
|
|
|
|
//服務主列表服務Api
|
|
[HttpGet]
|
|
public HttpResponseMessage Categories(string Lang)
|
|
{
|
|
return new OnsiteService().GetCategoryFilterList(Lang);
|
|
}
|
|
|
|
//位置
|
|
[HttpGet]
|
|
public HttpResponseMessage Locations(string Lang)
|
|
{
|
|
return new OnsiteService().GetLocationFilterList(Lang);
|
|
}
|
|
//服務列表分頁查詢
|
|
[HttpGet]
|
|
public HttpResponseMessage ServiceLists(string Lang,int PageIndex,int PageSize,string SortField,string SortOrder)
|
|
{
|
|
return new OnsiteService().GetOnsiteByPage( Lang, PageIndex, PageSize, SortField, SortOrder);
|
|
}
|
|
//詳情頁圖片輪播
|
|
[HttpGet]
|
|
public HttpResponseMessage BannerFiles(string Lang,string ServiceID)
|
|
{
|
|
return new OnsiteService().GetBannerFiles(Lang, ServiceID);
|
|
}
|
|
|
|
|
|
//包裝類型
|
|
[HttpGet]
|
|
public HttpResponseMessage PackingTypes(string Lang)
|
|
{
|
|
return new OnsiteService().GetPackingTypes(Lang);
|
|
}
|
|
|
|
//領取地城市
|
|
[HttpGet]
|
|
public HttpResponseMessage ReceivingCitys(string Lang)
|
|
{
|
|
return new OnsiteService().GetReceivingCitys(Lang);
|
|
}
|
|
|
|
//服務項目
|
|
[HttpGet]
|
|
public HttpResponseMessage ServiceItems(string Lang, string ServiceID)
|
|
{
|
|
return new OnsiteService().GetServiceItems(Lang, ServiceID);
|
|
}
|
|
|
|
//展覽年份
|
|
[HttpGet]
|
|
public HttpResponseMessage ExtensionYear(string Lang, string ServiceID)
|
|
{
|
|
return new OnsiteService().GetExtensionYears(Lang, ServiceID);
|
|
}
|
|
|
|
//展覽月份
|
|
[HttpGet]
|
|
public HttpResponseMessage ExtensionMonth(string Lang)
|
|
{
|
|
return new OnsiteService().GetExtensionMonths(Lang);
|
|
}
|
|
|
|
//展覽列表
|
|
[HttpGet]
|
|
public HttpResponseMessage Exhibitions(string Lang,string ServiceID,string Year,string Month)
|
|
{
|
|
return new OnsiteService().QueryExhibitions(Lang, ServiceID);
|
|
}
|
|
|
|
//服務細項目
|
|
[HttpGet]
|
|
public HttpResponseMessage Info(string Lang, string ServiceID)
|
|
{
|
|
|
|
return new OnsiteService().GetOneOnsiteServiceInfo(Lang, ServiceID);
|
|
}
|
|
|
|
}
|
|
}
|