public AddTemplateResponse addTemplate(String shortTemplateId) {
        LOG.debug("添加模版......");
        BeanUtil.requireNonNull(shortTemplateId, "短模版id必填");
        String url = BASE_API_URL + "cgi-bin/template/api_add_template?access_token=#";
        Map<String, String> params = new HashMap<String, String>();
        params.put("template_id_short", shortTemplateId);
        BaseResponse r = executePost(url, JSONUtil.toJson(params));
        String resultJson = isSuccess(r.getErrcode()) ? r.getErrmsg() : r.toJsonString();
        AddTemplateResponse result = JSONUtil.toBean(resultJson, AddTemplateResponse.class);
        return result;
    }
public AddTemplateResponse addTemplate ( String shortTemplateId ) { LOG . debug ( "添加模版......" ) ; BeanUtil . requireNonNull ( shortTemplateId , "短模版id必填" ) ; String url = BASE_API_URL + "cgi-bin/template/api_add_template?access_token=#" ; Map < String , String > params = new HashMap < String , String > ( ) ; params . put ( "template_id_short" , shortTemplateId ) ; BaseResponse r = executePost ( url , JSONUtil . toJson ( params ) ) ; String resultJson = isSuccess ( r . getErrcode ( ) ) ? r . getErrmsg ( ) : r . toJsonString ( ) ; AddTemplateResponse result = JSONUtil . toBean ( resultJson , AddTemplateResponse . class ) ; return result ; }
添加模版

@param shortTemplateId 模版短id
@return 操作结果