60 lines
2.0 KiB
C#
Raw Normal View History

2025-04-24 18:31:27 +08:00
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 MillionSchemeController : BaseWechatController
{
private IMillionSchemeService _millionSchemeService;
/// <summary>
/// 初始化一个<see cref="MillionSchemeController"/>类型的实例
/// </summary>
public MillionSchemeController(IMillionSchemeService millionSchemeService)
{
_millionSchemeService = millionSchemeService;
}
#region GetMillionScheme
/// <summary>
/// 加盟商查看激励方案
/// </summary>
/// <param name="ShopID">店铺ID加盟商查看时需传ShopID</param>
/// <returns></returns>
[HttpGet]
public MillionSchemeResp GetMillionScheme(Guid? ShopID)
{
ShopID = ShopID.HasValue ? ShopID : this.CurrentLogin.ShopId;
return _millionSchemeService.GetMillionScheme(ShopID.Value);
}
#endregion
#region SetMillionScheme
/// <summary>
/// 加盟商保存激励方案
/// </summary>
/// <returns></returns>
[HttpPost]
public void SetMillionScheme(MillionSchemeReq request)
{
_millionSchemeService.SetMillionScheme(request,this.CurrentLogin);
}
#endregion
}
}