47 lines
1.4 KiB
C#
47 lines
1.4 KiB
C#
using MyCode.Project.Domain.Config;
|
|
using MyCode.Project.Domain.Message.Request.User;
|
|
using MyCode.Project.Domain.Message.Response.Common;
|
|
using MyCode.Project.Domain.Message.Response.User;
|
|
using MyCode.Project.Infrastructure.Common;
|
|
using MyCode.Project.Infrastructure.Exceptions;
|
|
using MyCode.Project.Infrastructure.Extensions;
|
|
using MyCode.Project.Services;
|
|
using System.Collections.Generic;
|
|
using System.Web.Http;
|
|
|
|
namespace MyCode.Project.WebApi.Areas.Wechat.Controllers
|
|
{
|
|
/// <summary>
|
|
///店员端公共接口 相关
|
|
/// </summary>
|
|
public class CommonController : BaseWechatController
|
|
{
|
|
private IWorkProcessAsyncService _workProcessAsyncService;
|
|
|
|
|
|
/// <summary>
|
|
/// 初始化一个<see cref="ClerkController"/>类型的实例
|
|
/// </summary>
|
|
public CommonController(IWorkProcessAsyncService workProcessAsyncService)
|
|
{
|
|
_workProcessAsyncService = workProcessAsyncService;
|
|
|
|
}
|
|
|
|
#region GetTemplateMessageList 获取店员端小程序的服务通知消息模板ID列表
|
|
/// <summary>
|
|
/// 获取店员端小程序的服务通知消息模板ID列表
|
|
/// </summary>
|
|
/// <returns></returns>
|
|
[HttpGet]
|
|
public List<TypeValue> GetTemplateMessageList()
|
|
{
|
|
return _workProcessAsyncService.GetTemplateMessageList(SystemConfig.AppId);
|
|
}
|
|
|
|
#endregion
|
|
|
|
|
|
}
|
|
}
|