using Edu.Common.Enum;

namespace Edu.Common.API
{
    /// <summary>
    /// 用户Token
    /// </summary>
    public interface IUserInfoToken
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public string uid { get; set; }

        /// <summary>
        /// 请求消息来源
        /// </summary>
        public ApiRequestFromEnum requestFrom { get; set; }
    }

    /// <summary>
    /// ERP用户Token
    /// </summary>
    public class ErpTokenUserInfo : IUserInfoToken
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public string uid { get; set; }

        /// <summary>
        /// 请求消息来源
        /// </summary>
        public ApiRequestFromEnum requestFrom { get; set; }

        /// <summary>
        /// 集团id
        /// </summary>
        public int groupId { get; set; }
    }

    /// <summary>
    /// API请求token携带的用户信息
    /// </summary>
    public class EduUserInfoToken : IUserInfoToken
    {
        /// <summary>
        /// 用户ID
        /// </summary>
        public string uid { get; set; }

        /// <summary>
        /// 请求消息来源
        /// </summary>
        public ApiRequestFromEnum requestFrom { get; set; }
    }
}
