58 lines
1.9 KiB
C#
58 lines
1.9 KiB
C#
|
using MyCode.Project.Domain.Message.Request.Clerk;
|
|||
|
using MyCode.Project.Domain.Message.Request.Million;
|
|||
|
using MyCode.Project.Domain.Message.Request.Target;
|
|||
|
using MyCode.Project.Domain.Message.Response.CardCover;
|
|||
|
using MyCode.Project.Domain.Message.Response.MillionPolicy;
|
|||
|
using MyCode.Project.Domain.Message.Response.Shop;
|
|||
|
using MyCode.Project.Domain.Message.Response.Target;
|
|||
|
using MyCode.Project.Domain.Message.Response.User;
|
|||
|
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 MillionStrategyController : BaseWechatController
|
|||
|
{
|
|||
|
private IMillionStrategyService _millionStrategyService;
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// 初始化一个<see cref="MillionStrategyController"/>类型的实例
|
|||
|
/// </summary>
|
|||
|
public MillionStrategyController(IMillionStrategyService millionStrategyService)
|
|||
|
{
|
|||
|
_millionStrategyService = millionStrategyService;
|
|||
|
}
|
|||
|
|
|||
|
#region GetMillionStrategy 获取策略输出信息
|
|||
|
/// <summary>
|
|||
|
/// 获取策略输出信息
|
|||
|
/// </summary>
|
|||
|
/// <param name="BaseID">基本情况ID</param>
|
|||
|
/// <returns></returns>
|
|||
|
[HttpGet]
|
|||
|
public MillionStrategyResp GetMillionStrategy(Guid BaseID)
|
|||
|
{
|
|||
|
return _millionStrategyService.GetMillionStrategy(BaseID);
|
|||
|
}
|
|||
|
#endregion
|
|||
|
|
|||
|
#region SetMillionStrategy 保存策略输出信息
|
|||
|
/// <summary>
|
|||
|
/// 保存策略输出信息
|
|||
|
/// </summary>
|
|||
|
/// <returns></returns>
|
|||
|
[HttpPost]
|
|||
|
public void SetMillionStrategy(MillionStrategyReq requst)
|
|||
|
{
|
|||
|
_millionStrategyService.SetMillionStrategy(requst,this.CurrentLogin);
|
|||
|
}
|
|||
|
#endregion
|
|||
|
}
|
|||
|
}
|