using System.Threading.Tasks;
namespace learun.wechat
{
///
/// 版 本 EasyCode EC管理后台
/// Copyright (c) 2019-present EC管理有限公司
/// 创建人:tobin
/// 日 期:2019.11.06
/// 描 述:媒体上传
///
public 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 Task HttpSend(IHttpSend httpSend, string url)
{
return httpSend.Send(url, media);
}
}
}