using MyCode.Project.Domain.Message.Act.Common;
using MyCode.Project.Domain.Message.Common;
using MyCode.Project.Domain.Message.Request.Goods;
using MyCode.Project.Domain.Message.Request.Million;
using MyCode.Project.Domain.Message.Response.Goods;
using MyCode.Project.Domain.Message.Response.ManagersDay;
using MyCode.Project.Domain.Message.Response.MillionPolicy;
using MyCode.Project.Domain.Message.Response.OpeningCeremony;
using MyCode.Project.Domain.Model;
using MyCode.Project.Infrastructure.Common;
using MyCode.Project.Services;
using System;
using System.Collections.Generic;
using System.Web.Http;
namespace MyCode.Project.WebApi.Areas.Wechat.Controllers
{
///
/// 早会旺场 相关接口
///
public class ZHWangChangController : BaseWechatController
{
private IZHWangChangService _zHWangChangService;
///
/// 初始化一个类型的实例
///
public ZHWangChangController(IZHWangChangService zHWangChangService)
{
_zHWangChangService = zHWangChangService;
}
#region GetZHNewHairStyle 获取店铺今日新发型指标
///
/// 获取店铺今日新发型指标
///
/// 店铺ID:加盟商查看时需传
/// 指标类型 0:任务分配 1:任务审核
///
[HttpGet]
public ZHWCTargetResp GetZHNewHairStyle(Guid? shopId,int type)
{
shopId = shopId.HasValue ? shopId : this.CurrentLogin.ShopId;
return _zHWangChangService.GetZHNewHairStyle(shopId.Value, type);
}
#endregion
#region SetZHNewHairStyle 设置店铺新发型日指标
///
/// 设置店铺新发型日指标
///
///
[HttpPost]
public void SetZHNewHairStyle(ZHWCReq request)
{
request.ShopID = request.ShopID.HasValue ? request.ShopID.Value : this.CurrentLogin.ShopId;
_zHWangChangService.SetZHNewHairStyle(request, this.CurrentLogin);
}
#endregion
#region GetZHNewHairAccessory 获取店铺今日新发饰指标或店长审核数据
///
/// 获取店铺今日新发饰指标或店长审核数据
///
/// 店铺ID:加盟商查看时需传
/// 指标类型 0:任务分配 1:任务审核
///
[HttpGet]
public ZHWCTargetResp GetZHNewHairAccessory(Guid? shopId,int type)
{
shopId = shopId.HasValue ? shopId : this.CurrentLogin.ShopId;
return _zHWangChangService.GetZHNewHairAccessory(shopId.Value,type);
}
#endregion
#region SetZHNewHairAccessory 设置店铺新发饰日指标或店长审核
///
/// 设置店铺新发饰日指标或店长审核
///
///
[HttpPost]
public void SetZHNewHairAccessory(ZHWCReq request)
{
request.ShopID = request.ShopID.HasValue ? request.ShopID.Value : this.CurrentLogin.ShopId;
_zHWangChangService.SetZHNewHairAccessory(request, this.CurrentLogin);
}
#endregion
#region GetZHEarring 获取店铺今日新耳饰指标或店长审核数据
///
/// 获取店铺今日新耳饰指标或店长审核数据
///
/// 店铺ID:加盟商查看时需传
/// 指标类型 0:任务分配 1:任务审核
///
[HttpGet]
public ZHWCTargetResp GetZHEarring(Guid? shopId,int type)
{
shopId = shopId.HasValue ? shopId : this.CurrentLogin.ShopId;
return _zHWangChangService.GetZHEarring(shopId.Value,type);
}
#endregion
#region SetZHEarring 设置店铺新耳饰日指标或店长审核
///
/// 设置店铺新耳饰日指标或店长审核
///
///
[HttpPost]
public void SetZHEarring(ZHWCReq request)
{
request.ShopID = request.ShopID.HasValue ? request.ShopID.Value : this.CurrentLogin.ShopId;
_zHWangChangService.SetZHEarring(request, this.CurrentLogin);
}
#endregion
#region GetZHMakeup 获取店铺今日新妆容指标或店长审核数据
///
/// 获取店铺今日新妆容指标或店长审核数据
///
/// 店铺ID:加盟商查看时需传
/// 指标类型 0:任务分配 1:任务审核
///
[HttpGet]
public ZHWCTargetResp GetZHMakeup(Guid? shopId,int type)
{
shopId = shopId.HasValue ? shopId : this.CurrentLogin.ShopId;
return _zHWangChangService.GetZHMakeup(shopId.Value,type);
}
#endregion
#region SetZHMakeup 设置店铺新妆容日指标或店长审核
///
/// 设置店铺新妆容日指标或店长审核
///
///
[HttpPost]
public void SetZHMakeup(ZHWCReq request)
{
request.ShopID = request.ShopID.HasValue ? request.ShopID.Value : this.CurrentLogin.ShopId;
_zHWangChangService.SetZHMakeup(request, this.CurrentLogin);
}
#endregion
#region GetZHSkinCare 获取店铺今日赠送护肤指标或店长审核数据
///
/// 获取店铺今日赠送护肤指标或店长审核数据
///
/// 店铺ID:加盟商查看时需传
/// 指标类型 0:任务分配 1:任务审核
///
[HttpGet]
public ZHWCTargetResp GetZHSkinCare(Guid? shopId,int type)
{
shopId = shopId.HasValue ? shopId : this.CurrentLogin.ShopId;
return _zHWangChangService.GetZHSkinCare(shopId.Value,type);
}
#endregion
#region SetZHSkinCare 设置店铺赠送护肤日指标或店长审核
///
/// 设置店铺赠送护肤日指标或店长审核
///
///
[HttpPost]
public void SetZHSkinCare(ZHWCReq request)
{
request.ShopID = request.ShopID.HasValue ? request.ShopID.Value : this.CurrentLogin.ShopId;
_zHWangChangService.SetZHSkinCare(request, this.CurrentLogin);
}
#endregion
#region GetZHExperienceCard 获取店铺今日体验卡指标或店长审核数据
///
/// 获取店铺今日体验卡指标或店长审核数据
///
/// 店铺ID:加盟商查看时需传
/// 指标类型 0:任务分配 1:任务审核
///
[HttpGet]
public ZHWCTargetResp GetZHExperienceCard(Guid? shopId,int type)
{
shopId = shopId.HasValue ? shopId : this.CurrentLogin.ShopId;
return _zHWangChangService.GetZHExperienceCard(shopId.Value,type);
}
#endregion
#region SetZHExperienceCard 设置店铺体验卡日指标或店长审核
///
/// 设置店铺体验卡日指标或店长审核
///
///
[HttpPost]
public void SetZHExperienceCard(ZHWCReq request)
{
request.ShopID = request.ShopID.HasValue ? request.ShopID.Value : this.CurrentLogin.ShopId;
_zHWangChangService.SetZHExperienceCard(request, this.CurrentLogin);
}
#endregion
#region GetClerkZHWCplan 消息-店员查看自己早旺场指标任务 或 查看本人早旺场数据
///
/// 消息-店员查看自己早旺场指标任务 或 查看本人早旺场数据
///
/// 消息任务公告主键ID
/// 查看类型 0:本人任务 1:本人任务数据
///
[HttpGet]
public ZHWCWorkResp GetClerkZHWCplan(Guid id,int type)
{
return _zHWangChangService.GetClerkZHWCplan(id,type, this.CurrentLogin);
}
#endregion
#region SetZHWCResult 店员提交本人早旺场数据
///
/// 店员提交本人早旺场数据
///
///
[HttpPost]
public void SetZHWCResult(ZHWCWorkResp request)
{
_zHWangChangService.SetZHWCResult(request, this.CurrentLogin);
}
#endregion
#region GetZHWCClerkList 消息-加盟商审核早旺场任务安排
///
/// 消息-加盟商审核早旺场任务安排
///
/// 消息任务公告主键ID
///
[HttpGet]
public ZHWCClerkResp GetZHWCClerkList(Guid id)
{
return _zHWangChangService.GetZHWCClerkList(id);
}
#endregion
}
}