Пример #1
0
 /**
  * 查询菜单
  *
  * @return 菜单集合
  * @throws WeixinException
  * @see <a href="http://mp.weixin.qq.com/wiki/16/ff9b7b85220e1396ffa16794a9d95adc.html">查询菜单</a>
  * @see com.foxinmy.weixin4j.model.Button
  * @see com.foxinmy.weixin4j.mp.api.MenuApi
  */
 public List<Button> getMenu() throws WeixinException {
   return menuApi.getMenu();
 }
Пример #2
0
 /**
  * 删除菜单
  *
  * @throws WeixinException
  * @see <a href="http://mp.weixin.qq.com/wiki/16/8ed41ba931e4845844ad6d1eeb8060c8.html">删除菜单</a>
  * @see com.foxinmy.weixin4j.model.Button
  * @see com.foxinmy.weixin4j.mp.api.MenuApi
  */
 public JsonResult deleteMenu() throws WeixinException {
   return menuApi.deleteMenu();
 }
Пример #3
0
 /**
  * 自定义菜单
  *
  * @param btnList 菜单列表
  * @throws WeixinException
  * @see <a
  *     href="http://mp.weixin.qq.com/wiki/13/43de8269be54a0a6f64413e4dfa94f39.html">创建自定义菜单</a>
  * @see com.foxinmy.weixin4j.model.Button
  * @see com.foxinmy.weixin4j.type.ButtonType
  * @see com.foxinmy.weixin4j.mp.api.MenuApi
  */
 public JsonResult createMenu(List<Button> btnList) throws WeixinException {
   return menuApi.createMenu(btnList);
 }