using System;
using System.Collections.Generic;
using System.Text;

namespace AI.Platform.Service.Output
{

    public class Response<T>
    {
        public int code { set; get; }

        public bool isSuccess { set; get; }

        public string message { set; get; }

        public T data { set; get; }

    }

    /// <summary>
    /// 用于多媒体文件上传返回响应内容
    /// </summary>
    public class MediaFileUploadOutput
    {
        /// <summary>
        /// 是否成功
        /// </summary>
        public bool isSuccess { set;get;  }

        /// <summary>
        /// 说明
        /// </summary>
        public string msg {  set; get; }

        /// <summary>
        /// 存到服务器的地址
        /// </summary>
        public string savePath { set; get; }

        /// <summary>
        /// 文件名
        /// </summary>
        public string fileName { set; get; }

        /// <summary>
        /// 加上guid前缀文件名
        /// </summary>
        public string guidName { set; get; }

        /// <summary>
        /// 后缀名
        /// </summary>
        public string extension { set; get; }
    }
}
