class WxMaTemplateServiceImpl implements WxMaTemplateService {

  @Override
  public boolean delTemplate(String templateId) throws WxErrorException {
    Map<String, String> params = new HashMap<>();
    params.put("template_id", templateId);

    String responseText = this.wxMaService.post(TEMPLATE_DEL_URL, WxGsonBuilder.create().toJson(params));
    WxError wxError = WxError.fromJson(responseText);
    if(wxError.getErrorCode() == 0){
      return true;
    }else {
      throw new WxErrorException(wxError);
    }
  }

  public  WxMaTemplateServiceImpl(WxMaService wxMaService);

}