using MyCode.Project.Domain.Message.Request.Shop;
using MyCode.Project.Domain.Message.Response.Shop;
using MyCode.Project.Infrastructure.Common;
using MyCode.Project.Services;
using System.Collections.Generic;
using System.Web.Http;
namespace MyCode.Project.WebApi.Areas.Wechat.Controllers
{
public class ShopController : BaseWechatController
{
private IShopService _shopService;
///
/// 初始化一个类型的实例
///
public ShopController(IShopService shopService)
{
_shopService = shopService;
}
#region GetShopByCustomer 获取当前加盟商所有店铺
///
/// 获取当前加盟商所有店铺
///
///
[HttpGet]
public List GetShopByCustomer()
{
return _shopService.GetShopByCustomer(this.CurrentLogin);
}
#endregion
#region GetShopByKeyWordsPageList(关键字查询店铺分页列表)
///
/// 关键字查询店铺分页列表
///
///
///
[HttpPost]
[AllowAnonymous]
public PageResult GetShopByKeyWordsPageList(PagedSearch request)
{
return _shopService.GetShopByKeyWordsPageList(request);
}
#endregion
}
}