using Nirvana.Common.ApiBase;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace YBDevice.NApi.Application.MessageInfo
{
    /// <summary>
    /// 消息管理
    /// </summary>
    public interface IMessageService
    {
        /// <summary>
        /// 消息订阅
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
         Task<ResultInfo> SubscribeAsync(SubscribeC2SDto data);

        /// <summary>
        /// 消息取消订阅
        /// </summary>
        /// <param name="data"></param>
        /// <returns></returns>
        Task<ResultInfo> UnSubscribeAsync(UnSubscribeC2SDto data);
        /// <summary>
        /// 获取消息模板列表
        /// </summary>
        /// <param name="appid">小程序appid</param>
        /// <returns></returns>
        Task<ResultInfo> GetTplListAsync(string appid);
        /// <summary>
        /// 获取订阅状态
        /// </summary>
        /// <param name="appid">小程序appid</param>
        /// <returns></returns>
        Task<ResultInfo> GetSubscribeInfoAsync(string appid);
        /// <summary>
        /// 获取客服配置信息
        /// </summary>
        /// <param name="appid">小程序appid</param>
        /// <returns></returns>
        Task<ResultInfo> GetServiceInfoAsync(string appid);
    }
}
