109 lines
3.5 KiB
C#
109 lines
3.5 KiB
C#
using MyCode.Project.Domain.Businesses.Sms.Templates;
|
|
using MyCode.Project.Domain.Businesses.WorkProcess;
|
|
using MyCode.Project.Domain.Message.Request.Clerk;
|
|
using MyCode.Project.Domain.Message.Request.Message;
|
|
using MyCode.Project.Domain.Message.Request.Ranking;
|
|
using MyCode.Project.Domain.Message.Response.Message;
|
|
using MyCode.Project.Domain.Message.Response.Ranking;
|
|
using MyCode.Project.Domain.Message.Response.Shop;
|
|
using MyCode.Project.Domain.Message.Response.User;
|
|
using MyCode.Project.Infrastructure.Common;
|
|
using MyCode.Project.Infrastructure.Enumeration;
|
|
using MyCode.Project.Services;
|
|
using Senparc.CO2NET.Extensions;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Web.Http;
|
|
|
|
namespace MyCode.Project.WebApi.Areas.Wechat.Controllers
|
|
{
|
|
/// <summary>
|
|
///管理层--排行榜 相关
|
|
/// </summary>
|
|
public class RankingController : BaseWechatController
|
|
{
|
|
private IRankingService _rankingService;
|
|
|
|
/// <summary>
|
|
/// 初始化一个<see cref="RankingController"/>类型的实例
|
|
/// </summary>
|
|
public RankingController(IRankingService rankingService
|
|
)
|
|
{
|
|
_rankingService = rankingService;
|
|
}
|
|
|
|
#region 业绩排行(2020.6.10修改成查看所有排行)
|
|
/// <summary>
|
|
/// 业绩排行
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public KPIRankingResp GetTop10KPIList(PagedSearch<RankingReq> request)
|
|
{
|
|
return _rankingService.GetTop10KPIList(request,this.CurrentLogin);
|
|
}
|
|
#endregion
|
|
|
|
#region 纳新排行(2020.6.10修改成查看所有排行)
|
|
/// <summary>
|
|
/// 纳新排行
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public RankingResp GetTop10ExList(PagedSearch<RankingReq> request)
|
|
{
|
|
return _rankingService.GetTop10ExList(request, this.CurrentLogin);
|
|
}
|
|
#endregion
|
|
|
|
#region 新增套餐用户排行(2020.6.10修改成查看所有排行)
|
|
/// <summary>
|
|
/// 新增套餐用户排行
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public RankingResp GetTop10SetList(PagedSearch<RankingReq> request)
|
|
{
|
|
return _rankingService.GetTop10SetList(request, this.CurrentLogin);
|
|
}
|
|
#endregion
|
|
|
|
#region 活动纳新排行(2020.6.10新增)
|
|
/// <summary>
|
|
/// 活动纳新排行
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public RankingExResp GetActivityExtList(PagedSearch<RankingExReq> request)
|
|
{
|
|
return _rankingService.GetActivityExtList(request, this.CurrentLogin);
|
|
}
|
|
#endregion
|
|
|
|
#region 活动统计/活动明细 页面汇总信息
|
|
/// <summary>
|
|
/// 活动统计/活动明细 页面汇总信息
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public ActivityReportResp GetActivityReport(RankingActivityReportReq request)
|
|
{
|
|
return _rankingService.GetActivityReport(request, this.CurrentLogin);
|
|
}
|
|
#endregion
|
|
|
|
#region 活动统计/活动明细 店铺信息列表
|
|
/// <summary>
|
|
/// 活动统计/活动明细 店铺信息列表
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpPost]
|
|
public ActivityShopInfo GetActivityShopInfos(RankingActivityReportReq request)
|
|
{
|
|
return _rankingService.GetActivityShopList(request, this.CurrentLogin);
|
|
}
|
|
#endregion
|
|
}
|
|
}
|