using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace Learun.Application.WeChat { public class MenuCreate : OperationRequestBase { private string url = "https://qyapi.weixin.qq.com/cgi-bin/menu/create?access_token=ACCESS_TOKEN&agentid={0}"; protected override string Url() { return string.Format(url, agentid); } /// /// 企业应用的id,整型。可在应用的设置页面查看 /// /// [IsNotNull] public string agentid { private get; set; } /// /// 一级菜单数组,个数应为1~3个 /// /// public List button { get; set; } } }