public void SetWeChatMenuTest() { WeChatMenuModel wxMenuM = new WeChatMenuModel { button = new WeChatMenuButtonModel[1] }; wxMenuM.button[0] = new WeChatMenuButtonModel { name = "测试菜单", type = "view", url = "https://www.gudianbu.com" }; WXMa.SetWeChatMenu(wxMenuM); }
public static WeChatMenu ToEntity(this WeChatMenuModel model, WeChatMenu destination, IObjectMapper ObjectMapper) { return(model.MapTo(destination, ObjectMapper)); }