241 lines
9.4 KiB
C#
241 lines
9.4 KiB
C#
|
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
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// 早会旺场 相关接口
|
|||
|
/// </summary>
|
|||
|
public class ZHWangChangController : BaseWechatController
|
|||
|
{
|
|||
|
private IZHWangChangService _zHWangChangService;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 初始化一个<see cref="MillionShopExtensionController"/>类型的实例
|
|||
|
/// </summary>
|
|||
|
public ZHWangChangController(IZHWangChangService zHWangChangService)
|
|||
|
{
|
|||
|
_zHWangChangService = zHWangChangService;
|
|||
|
}
|
|||
|
|
|||
|
#region GetZHNewHairStyle 获取店铺今日新发型指标
|
|||
|
/// <summary>
|
|||
|
/// 获取店铺今日新发型指标
|
|||
|
/// </summary>
|
|||
|
/// <param name="shopId">店铺ID:加盟商查看时需传</param>
|
|||
|
/// <param name="type">指标类型 0:任务分配 1:任务审核</param>
|
|||
|
/// <returns></returns>
|
|||
|
[HttpGet]
|
|||
|
public ZHWCTargetResp GetZHNewHairStyle(Guid? shopId,int type)
|
|||
|
{
|
|||
|
shopId = shopId.HasValue ? shopId : this.CurrentLogin.ShopId;
|
|||
|
return _zHWangChangService.GetZHNewHairStyle(shopId.Value, type);
|
|||
|
}
|
|||
|
#endregion
|
|||
|
|
|||
|
#region SetZHNewHairStyle 设置店铺新发型日指标
|
|||
|
/// <summary>
|
|||
|
/// 设置店铺新发型日指标
|
|||
|
/// </summary>
|
|||
|
/// <returns></returns>
|
|||
|
[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 获取店铺今日新发饰指标或店长审核数据
|
|||
|
/// <summary>
|
|||
|
/// 获取店铺今日新发饰指标或店长审核数据
|
|||
|
/// </summary>
|
|||
|
/// <param name="ShopID">店铺ID:加盟商查看时需传</param>
|
|||
|
/// <param name="type">指标类型 0:任务分配 1:任务审核</param>
|
|||
|
/// <returns></returns>
|
|||
|
[HttpGet]
|
|||
|
public ZHWCTargetResp GetZHNewHairAccessory(Guid? shopId,int type)
|
|||
|
{
|
|||
|
shopId = shopId.HasValue ? shopId : this.CurrentLogin.ShopId;
|
|||
|
return _zHWangChangService.GetZHNewHairAccessory(shopId.Value,type);
|
|||
|
}
|
|||
|
#endregion
|
|||
|
|
|||
|
#region SetZHNewHairAccessory 设置店铺新发饰日指标或店长审核
|
|||
|
/// <summary>
|
|||
|
/// 设置店铺新发饰日指标或店长审核
|
|||
|
/// </summary>
|
|||
|
/// <returns></returns>
|
|||
|
[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 获取店铺今日新耳饰指标或店长审核数据
|
|||
|
/// <summary>
|
|||
|
/// 获取店铺今日新耳饰指标或店长审核数据
|
|||
|
/// </summary>
|
|||
|
/// <param name="shopId">店铺ID:加盟商查看时需传</param>
|
|||
|
/// <param name="type">指标类型 0:任务分配 1:任务审核</param>
|
|||
|
/// <returns></returns>
|
|||
|
[HttpGet]
|
|||
|
public ZHWCTargetResp GetZHEarring(Guid? shopId,int type)
|
|||
|
{
|
|||
|
shopId = shopId.HasValue ? shopId : this.CurrentLogin.ShopId;
|
|||
|
return _zHWangChangService.GetZHEarring(shopId.Value,type);
|
|||
|
}
|
|||
|
#endregion
|
|||
|
|
|||
|
#region SetZHEarring 设置店铺新耳饰日指标或店长审核
|
|||
|
/// <summary>
|
|||
|
/// 设置店铺新耳饰日指标或店长审核
|
|||
|
/// </summary>
|
|||
|
/// <returns></returns>
|
|||
|
[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 获取店铺今日新妆容指标或店长审核数据
|
|||
|
/// <summary>
|
|||
|
/// 获取店铺今日新妆容指标或店长审核数据
|
|||
|
/// </summary>
|
|||
|
/// <param name="ShopID">店铺ID:加盟商查看时需传</param>
|
|||
|
/// <param name="type">指标类型 0:任务分配 1:任务审核</param>
|
|||
|
/// <returns></returns>
|
|||
|
[HttpGet]
|
|||
|
public ZHWCTargetResp GetZHMakeup(Guid? shopId,int type)
|
|||
|
{
|
|||
|
shopId = shopId.HasValue ? shopId : this.CurrentLogin.ShopId;
|
|||
|
return _zHWangChangService.GetZHMakeup(shopId.Value,type);
|
|||
|
}
|
|||
|
#endregion
|
|||
|
|
|||
|
#region SetZHMakeup 设置店铺新妆容日指标或店长审核
|
|||
|
/// <summary>
|
|||
|
/// 设置店铺新妆容日指标或店长审核
|
|||
|
/// </summary>
|
|||
|
/// <returns></returns>
|
|||
|
[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 获取店铺今日赠送护肤指标或店长审核数据
|
|||
|
/// <summary>
|
|||
|
/// 获取店铺今日赠送护肤指标或店长审核数据
|
|||
|
/// </summary>
|
|||
|
/// <param name="ShopID">店铺ID:加盟商查看时需传</param>
|
|||
|
/// <param name="type">指标类型 0:任务分配 1:任务审核</param>
|
|||
|
/// <returns></returns>
|
|||
|
[HttpGet]
|
|||
|
public ZHWCTargetResp GetZHSkinCare(Guid? shopId,int type)
|
|||
|
{
|
|||
|
shopId = shopId.HasValue ? shopId : this.CurrentLogin.ShopId;
|
|||
|
return _zHWangChangService.GetZHSkinCare(shopId.Value,type);
|
|||
|
}
|
|||
|
#endregion
|
|||
|
|
|||
|
#region SetZHSkinCare 设置店铺赠送护肤日指标或店长审核
|
|||
|
/// <summary>
|
|||
|
/// 设置店铺赠送护肤日指标或店长审核
|
|||
|
/// </summary>
|
|||
|
/// <returns></returns>
|
|||
|
[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 获取店铺今日体验卡指标或店长审核数据
|
|||
|
/// <summary>
|
|||
|
/// 获取店铺今日体验卡指标或店长审核数据
|
|||
|
/// </summary>
|
|||
|
/// <param name="ShopID">店铺ID:加盟商查看时需传</param>
|
|||
|
/// <param name="type">指标类型 0:任务分配 1:任务审核</param>
|
|||
|
/// <returns></returns>
|
|||
|
[HttpGet]
|
|||
|
public ZHWCTargetResp GetZHExperienceCard(Guid? shopId,int type)
|
|||
|
{
|
|||
|
shopId = shopId.HasValue ? shopId : this.CurrentLogin.ShopId;
|
|||
|
return _zHWangChangService.GetZHExperienceCard(shopId.Value,type);
|
|||
|
}
|
|||
|
#endregion
|
|||
|
|
|||
|
#region SetZHExperienceCard 设置店铺体验卡日指标或店长审核
|
|||
|
/// <summary>
|
|||
|
/// 设置店铺体验卡日指标或店长审核
|
|||
|
/// </summary>
|
|||
|
/// <returns></returns>
|
|||
|
[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 消息-店员查看自己早旺场指标任务 或 查看本人早旺场数据
|
|||
|
/// <summary>
|
|||
|
/// 消息-店员查看自己早旺场指标任务 或 查看本人早旺场数据
|
|||
|
/// </summary>
|
|||
|
/// <param name="id">消息任务公告主键ID</param>
|
|||
|
/// <param name="type">查看类型 0:本人任务 1:本人任务数据</param>
|
|||
|
/// <returns></returns>
|
|||
|
[HttpGet]
|
|||
|
public ZHWCWorkResp GetClerkZHWCplan(Guid id,int type)
|
|||
|
{
|
|||
|
return _zHWangChangService.GetClerkZHWCplan(id,type, this.CurrentLogin);
|
|||
|
}
|
|||
|
#endregion
|
|||
|
|
|||
|
#region SetZHWCResult 店员提交本人早旺场数据
|
|||
|
/// <summary>
|
|||
|
/// 店员提交本人早旺场数据
|
|||
|
/// </summary>
|
|||
|
/// <returns></returns>
|
|||
|
[HttpPost]
|
|||
|
public void SetZHWCResult(ZHWCWorkResp request)
|
|||
|
{
|
|||
|
_zHWangChangService.SetZHWCResult(request, this.CurrentLogin);
|
|||
|
}
|
|||
|
#endregion
|
|||
|
|
|||
|
#region GetZHWCClerkList 消息-加盟商审核早旺场任务安排
|
|||
|
/// <summary>
|
|||
|
/// 消息-加盟商审核早旺场任务安排
|
|||
|
/// </summary>
|
|||
|
/// <param name="id">消息任务公告主键ID</param>
|
|||
|
/// <returns></returns>
|
|||
|
[HttpGet]
|
|||
|
public ZHWCClerkResp GetZHWCClerkList(Guid id)
|
|||
|
{
|
|||
|
return _zHWangChangService.GetZHWCClerkList(id);
|
|||
|
}
|
|||
|
#endregion
|
|||
|
}
|
|||
|
}
|