package cn.hmsoft.weixin.request;

import cn.hmsoft.weixin.entity.request.custom.CustomRequestJson;
import cn.hmsoft.weixin.entity.response.WxResponseJson;

/**********************************
 * 
 * @note 客服接口-发消息
 * @author revisit@126.com
 * @Company: www.hmsoft.cn
 * @create 2017-05-09 00:45:08
 * @version 4.0.0
 */
public class MessageCustomSendRequest extends AbstractRequest<WxResponseJson, WxResponseJson, CustomRequestJson> {

	private final String url = "https://api.weixin.qq.com/cgi-bin/message/custom/send?";

	public MessageCustomSendRequest(CustomRequestJson json) {
		this.requestEntity = json;
	}

	@Override
	protected String makeUrl() {
		this.method = "POST";
		return url + "access_token=" + this.wxDefine.getApp_accesstoken();
	}
}
