69 lines
2.2 KiB
C#
69 lines
2.2 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.HuFuWangChang;
|
|
using MyCode.Project.Domain.Message.Response.ManagersDay;
|
|
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 ManagersDayController : BaseWechatController
|
|
{
|
|
private IManagersDayService _managersDayService;
|
|
/// <summary>
|
|
/// 初始化一个<see cref="GoodsController"/>类型的实例
|
|
/// </summary>
|
|
public ManagersDayController(IManagersDayService managersDayService)
|
|
{
|
|
_managersDayService = managersDayService;
|
|
}
|
|
|
|
#region GetList(获取店长的一天的节点列表)
|
|
/// <summary>
|
|
/// 获取店长的一天的节点列表
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
public List<ManagersDayResp> GetList(Guid shopId)
|
|
{
|
|
return _managersDayService.GetList(shopId, this.CurrentLogin);
|
|
}
|
|
#endregion
|
|
|
|
#region Confirm(确认某个节点)
|
|
/// <summary>
|
|
/// 确认某个节点
|
|
/// </summary>
|
|
/// <param name="act"></param>
|
|
[HttpPost]
|
|
public void Confirm(ConfirmNameRequest act)
|
|
{
|
|
_managersDayService.Confirm(act,this.CurrentLogin);
|
|
}
|
|
#endregion
|
|
|
|
#region GetMessgerTxt(一部分的加盟商阅读消息的返回)
|
|
/// <summary>
|
|
/// 一部分的加盟商阅读消息的返回
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
public MessgerTxt GetMessgerTxt(Guid id)
|
|
{
|
|
return _managersDayService.GetMessgerTxt(id);
|
|
}
|
|
#endregion
|
|
}
|
|
}
|