@Controller @RequestMapping(value="/mp/menu") public class MpMenuController extends Object
Constructor and Description |
---|
MpMenuController() |
Modifier and Type | Method and Description |
---|---|
R |
getMenu()
获取本地设置的菜单
|
me.chanjar.weixin.mp.bean.menu.WxMpGetSelfMenuInfoResult |
getSelfMenuInfo() |
me.chanjar.weixin.common.bean.menu.WxMenu |
initMenu()
初始化菜单,
TODO 后面可以考虑把菜单存入数据库来维护
|
String |
menuCreate(String json) |
String |
menuCreate(me.chanjar.weixin.common.bean.menu.WxMenu wxMenu) |
String |
menuCreateSample() |
void |
menuDelete() |
void |
menuDelete(String menuId) |
me.chanjar.weixin.mp.bean.menu.WxMpMenu |
menuGet() |
me.chanjar.weixin.common.bean.menu.WxMenu |
menuTryMatch(String userid) |
@GetMapping(value="/create") @ResponseBody public String menuCreate(@RequestBody me.chanjar.weixin.common.bean.menu.WxMenu wxMenu) throws Exception
Exception
@GetMapping(value="/menuCreateSample") @ResponseBody public String menuCreateSample() throws Exception
Exception
public me.chanjar.weixin.common.bean.menu.WxMenu initMenu()
@GetMapping(value="/create/{json}") @ResponseBody public String menuCreate(@PathVariable String json) throws Exception
Exception
@GetMapping(value="/delete/{menuId}") public void menuDelete(@PathVariable String menuId) throws Exception
Exception
@GetMapping(value="/get") @ResponseBody public me.chanjar.weixin.mp.bean.menu.WxMpMenu menuGet() throws Exception
Exception
@GetMapping(value="/menuTryMatch/{userid}") @ResponseBody public me.chanjar.weixin.common.bean.menu.WxMenu menuTryMatch(@PathVariable String userid) throws Exception
Exception
@GetMapping(value="/getSelfMenuInfo") @ResponseBody public me.chanjar.weixin.mp.bean.menu.WxMpGetSelfMenuInfoResult getSelfMenuInfo() throws Exception
Exception
@RequestMapping(value="/getMenu") @ResponseBody public R getMenu()
Copyright © 2021. All rights reserved.