using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Threading.Tasks;

namespace Api.SignToken
{
    public interface IWechatService
    {
        /// <summary>
        /// 发送模板消息
        /// </summary>
        /// <param name="openid"></param>
        /// <param name="url"></param>
        /// <param name="jsondata"></param>
        /// <param name="templateid"></param>
        /// <returns></returns>
        Task<string> SendTemplateMsg(string openid, string url, string jsondata, string templateid);

        /// <summary>
        /// 发送链接消息
        /// </summary>
        /// <param name="openid"></param>
        /// <param name="title"></param>
        /// <param name="content"></param>
        /// <param name="url"></param>
        /// <returns></returns>
        Task<string> SendNewsMsg(string openid, string title, string content, string url);

        /// <summary>
        /// 获取微信用户基本信息
        /// </summary>
        /// <returns></returns>
        Task<string> GetUserInfo(string openid);
    }
}
