namespace Learun.Application.WeChat { class MediaUpload : OperationRequestBase { private string url = "https://qyapi.weixin.qq.com/cgi-bin/media/upload?access_token=ACCESS_TOKEN&type={0}"; protected override string Url() { return string.Format(url, type); } /// /// /// /// [IsNotNull] public string type { get; set; } /// /// 文件地址 /// /// public string media { get; set; } protected override string HttpSend(IHttpSend httpSend,string url) { return httpSend.Send(url, media); } } }