package ink.wgink.module.wechat.remote.official.account;

import ink.wgink.annotation.rpc.rest.RemoteService;
import ink.wgink.annotation.rpc.rest.method.RemotePostMethod;
import ink.wgink.annotation.rpc.rest.params.RemoteJsonBodyParams;
import ink.wgink.annotation.rpc.rest.params.RemoteQueryParams;
import ink.wgink.annotation.rpc.rest.params.RemoteServerParams;
import ink.wgink.module.wechat.pojo.vos.official.account.OfficialAccountTemplateMessageSendVO;
import ink.wgink.module.wechat.result.TemplateMessageWechatResult;

/**
 * @ClassName: IOfficialAccountRemoteService
 * @Description: 微信公众号远程调用
 * @Author: wanggeng
 * @Date: 2021/9/30 9:19 上午
 * @Version: 1.0
 */
@RemoteService
public interface IOfficialAccountRemoteService {

    /**
     * 发送消息模板
     *
     * @param server
     * @param accessToken
     * @param officialAccountTemplateMessageSendVO
     * @return
     */
    @RemotePostMethod("/cgi-bin/message/template/send")
    TemplateMessageWechatResult send(@RemoteServerParams String server, @RemoteQueryParams("access_token") String accessToken, @RemoteJsonBodyParams OfficialAccountTemplateMessageSendVO officialAccountTemplateMessageSendVO);

}
