using Mall.Common.Enum.User;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Mall.Common
{
    /// <summary>
    /// 小程序用户信息缓存
    /// </summary>
    public class AppletUserInfo
    {
        /// <summary>
        /// 商户号
        /// </summary>        
        public int TenantId
        {
            get;
            set;
        }

        /// <summary>
        /// 小程序Id
        /// </summary>        
        public int MallBaseId
        {
            get;
            set;
        }

        /// <summary>
        /// 用户id
        /// </summary>
        public int UserId { get; set; }

        /// 用户店铺id
        /// </summary>
        public int SmallShopId { get; set; }


        /// <summary>
        /// 用户所属店铺id
        /// </summary>
        public int UserSmallShopId { get; set; }

        /// <summary>
        /// 唯一码
        /// </summary>        
        public string OpenId
        {
            get;
            set;
        }

        /// <summary>
        /// 名称
        /// </summary>        
        public string Name
        {
            get;
            set;
        }

        /// <summary>
        /// 手机号码
        /// </summary>        
        public string Mobile
        {
            get;
            set;
        }

        /// <summary>
        /// 上级id
        /// </summary>
        public int SuperiorId { get; set; }

        /// <summary>
        /// 头像
        /// </summary>
        public string Photo { get; set; }

        /// <summary>
        /// 来源  1微信  2支付宝
        /// </summary>        
        public UserSourceEnum? Source
        {
            get;
            set;
        }

        /// <summary>
        /// 商城名称
        /// </summary>        
        public string MallName
        {
            get;
            set;
        }

        /// <summary>
        /// token
        /// </summary>
        public string Token { get; set; }

        /// <summary>
        /// SecretKey
        /// </summary>
        public string SecretKey { get; set; }
    }
}
