using Senparc.Weixin.Open.ComponentAPIs;
using YBDevice.Entity;
namespace YBDevice.WXApplication.WXInfo
{
///
/// 微信相关管理
///
public interface IWXService
{
///
/// 更新或者插入授权token
///
///
/// 公众号appid
/// 开放平台id
Task InsertOrUpdateAuthorizerTokenAsync(RefreshAuthorizerTokenResult result, string authorizerId, string componentAppId);
///
/// 获取公众号的刷新token
///
/// 公众号appid
/// 开放平台appid
///
Task GetRefreshToken(string authorizerId, string componentAppId);
///
/// 插入或者更新公众号信息
///
///
///
///
Task InsertOrUpdateAsync(YB_OfficlaAccount model, string bid);
///
/// 更新公众号授权信息
///
///
///
Task NoticeUpdateAsync(YB_OfficlaAccount model);
///
/// 更新提交的审核状态
///
/// 微信原始id
/// 审核状态,-1-代码已上传,0-审核成功,1-审核被拒绝,2-审核中,3-已撤回,4-审核延后
/// 状态备注
/// 不通过时的截图,mediaid形式
/// 时间戳
///
Task UpdateMiniInfoAsync(string appid, int status, string remark, string screenshot, string time);
///
/// 检查是否为认证的服务号
///
///
///
Task CheckIsRZFAsync(string appid);
///
/// 增加或者更新openticket
///
///
Task InsertOrUpdateAsync(YB_OpenWXConfig model);
///
/// 获取openticket
///
///
///
Task GetOpenTicketAsync(string componentAppId);
}
}