using VT.FW.DB;
using Mall.Common.Enum.MallBase;
using System;
using System.Collections.Generic;
using System.Text;

namespace Mall.Model.Entity.User
{
    /// <summary>
    /// 小程序实体类
    /// </summary>
    [Serializable]
    [DB(ConnectionName = "DefaultConnection")]
    public class RB_MiniProgram
    {
        /// <summary>
        /// 小程序主键Id
        /// </summary>        
        public int MallBaseId
        {
            get;
            set;
        }

        /// <summary>
        /// 商户号
        /// </summary>        
        public int? TenantId
        {
            get;
            set;
        }

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

        /// <summary>
        /// 是否永久有效(1-永久有效）
        /// </summary>        
        public int? IsEffective
        {
            get;
            set;
        }

        /// <summary>
        /// 商城有效期
        /// </summary>        
        public DateTime? MallValidate
        {
            get;
            set;
        }

        /// <summary>
        /// 创建时间
        /// </summary>        
        public DateTime? CreateDate
        {
            get;
            set;
        }

        /// <summary>
        /// 状态(0-正常，1-禁用)
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 版权文字
        /// </summary>
        public string CopyRightWord { get; set; }

        /// <summary>
        /// 版权图片
        /// </summary>
        public string CopyRightImg { get; set; }

        /// <summary>
        /// 版权链接页面
        /// </summary>
        public string CopyRightLink { get; set; }

        /// <summary>
        /// 商城风格
        /// </summary>
        public MallShopStyleEnum MallShopStyle { get; set; }


        /// <summary>
        /// 相亲拼拼plus风格 1-卡片，2-列表
        /// </summary>
        public int MiaiPPPlusStyle { get; set; }


        /// <summary>
        /// 顶部标题文件颜色类型(0-白色，1-黑色)
        /// </summary>
        public int TopNavWordType { get; set; }

        /// <summary>
        /// 顶部标题文字颜色
        /// </summary>
        public string TopNavWordColor { get; set; }

        /// <summary>
        /// 顶部导航栏背景颜色
        /// </summary>
        public string TopNavBgColor { get; set; }

        /// <summary>
        /// 底部导航栏背景颜色
        /// </summary>
        public string BottomNavBgColor { get; set; }


        /// <summary>
        /// 底部导航栏是否显示图标0-否，1-是
        /// </summary>
        public int IsShowIcon { get; set; }

        /// <summary>
        /// 导航底部是否开启阴影效果(0-未开启，1-开启)
        /// </summary>
        public int BottomNavIsShadow { get; set; }

        /// <summary>
        /// 是否开启版权设置(0-开启,1-关闭)
        /// </summary>
        public int IsOpenCopyRight { get; set; }

        /// <summary>
        /// 小程序AppId
        /// </summary>        
        public string MiniAppId
        {
            get;
            set;
        }

        /// <summary>
        /// 小程序AppSecret
        /// </summary>        
        public string MiniAppSecret
        {
            get;
            set;
        }

        /// <summary>
        /// 微信支付商户号
        /// </summary>        
        public string WeChatPayMerchants
        {
            get;
            set;
        }

        /// <summary>
        /// 微信支付Api密钥
        /// </summary>        
        public string WeChatApiSecret
        {
            get;
            set;
        }

        /// <summary>
        /// 微信支付证书
        /// </summary>        
        public string WeChatPayCertificate
        {
            get;
            set;
        }

        /// <summary>
        /// 微信支付私钥
        /// </summary>        
        public string WeChatPayPrivateKey
        {
            get;
            set;
        }


        /// <summary>
        /// 微信支付证书路径  Add By:W 2020.05.26
        /// </summary>        
        public string WeChatPayCertificateUrl
        {
            get;
            set;
        }



        /// <summary>
        /// 下单成功提醒(类目:服装/鞋/箱包)
        /// </summary>        
        public string OrderSuccessTpl
        {
            get;
            set;
        }

        /// <summary>
        /// 订单取消提醒(类目:服装/鞋/箱包)
        /// </summary>        
        public string OrderCancelTpl
        {
            get;
            set;
        }

        /// <summary>
        /// 订单发货提醒(类目:服装/鞋/箱包)
        /// </summary>        
        public string OrderDeliverGoodsTpl
        {
            get;
            set;
        }

        /// <summary>
        /// 退款提醒(类目:服装/鞋/箱包)
        /// </summary>        
        public string RefundTpl
        {
            get;
            set;
        }

        /// <summary>
        /// 活动状态提醒(类目:服装/鞋/箱包)
        /// </summary>        
        public string ActiveStateTpl
        {
            get;
            set;
        }

        /// <summary>
        /// 审核结果提醒(类目:服装/鞋/箱包)
        /// </summary>        
        public string AuditResultTpl
        {
            get;
            set;
        }

        /// <summary>
        /// 提现成功通知(类目: 服装/鞋/箱包 )
        /// </summary>        
        public string ReflectSuccessTpl
        {
            get;
            set;
        }

        /// <summary>
        /// 提现失败通知(类目: 服装/鞋/箱包 )
        /// </summary>        
        public string ReflectFailTpl
        {
            get;
            set;
        }

        /// <summary>
        /// 会员等级变更通知(类目: 服装/鞋/箱包 )
        /// </summary>        
        public string MembersLevelChangeTpl
        {
            get;
            set;
        }

        #region 会员中心配置
        /// <summary>
        /// 会员中心默认背景
        /// </summary>        
        public string DefaultBgImg
        {
            get;
            set;
        }

        /// <summary>
        /// 会员中心普通用户背景
        /// </summary>        
        public string MemberBgImg
        {
            get;
            set;
        }

        /// <summary>
        /// 会员中心Vip背景
        /// </summary>        
        public string VipBgImg
        {
            get;
            set;
        }

        /// <summary>
        /// 会员中心头像样式类型(1-头像靠左，2-头像居中，3-头像内嵌)
        /// </summary>        
        public int? HeadStyle
        {
            get;
            set;
        }

        /// <summary>
        /// 会员中心头像样式字符串
        /// </summary>        
        public string HeadStyleStr
        {
            get;
            set;
        }

        /// <summary>
        /// 是否显示收藏夹(0-显示，1-不显示)
        /// </summary>        
        public int? IsShowFavorite
        {
            get;
            set;
        }

        /// <summary>
        /// 是否显示订单栏(0-显示，1-不显示)
        /// </summary>        
        public int? IsShowOrderNav
        {
            get;
            set;
        }

        /// <summary>
        /// 是否显示司导订单栏(0-显示，1-不显示)
        /// </summary>        
        public int? IsShowSDNav
        {
            get;
            set;
        }

        /// <summary>
        /// 是否显示账户栏(0-显示，1-不显示)
        /// </summary>        
        public int? IsShowAccountNav
        {
            get;
            set;
        }

        /// <summary>
        /// 是否显示菜单栏(0-显示，1-不显示)
        /// </summary>        
        public int? IsShowMenuNav
        {
            get;
            set;
        }

        /// <summary>
        /// 菜单栏标题
        /// </summary>        
        public string MenuNavTitle
        {
            get;
            set;
        }

        /// <summary>
        /// 菜单栏样式(0-列表,1-九宫格)
        /// </summary>        
        public int? MenuNavStyle
        {
            get;
            set;
        }

        #endregion

        #region  获取可跳转小程序
        /// <summary>
        /// 获取可跳转小程序
        /// </summary>
        public string JumpAppId { get; set; }
        #endregion

        /// <summary>
        ///小程序直播组件 0-否，1-是
        /// </summary>
        public int LivePlayerPlugin { get; set; }


        /// <summary>
        /// 发布时填写的版本号
        /// </summary>
        public string Version { get; set; }

        /// <summary>
        /// 小程序首页配置
        /// </summary>
        public string MallHomeData { get; set; }

        /// <summary>
        /// 是否开启授权(1-开启)
        /// </summary>
        public int IsOpenAuth { get; set; }

        /// <summary>
        /// 授权图片
        /// </summary>
        public string AuthUrl { get; set; }

        /// <summary>
        /// 授权数据
        /// </summary>
        public string AuthData { get; set; }

        /// <summary>
        /// 是否回收
        /// </summary>
        public int Is_Recycle { get; set; }

        /// <summary>
        /// 是否开启校园版(1-开启)
        /// </summary>
        public int IsOpenSchool { get; set; }

        /// <summary>
        /// 是否开启服务版本(1-开启)
        /// </summary>
        public int IsOpenReserve { get; set; }


        /// <summary>
        /// 菜单栏json格式  多组模式
        /// </summary>
        public string MenuNavJson { get; set; }


        /// <summary>
        /// 老师发动态后给关注的人发消息
        /// </summary>
        public string EducationDynamicTpl { get; set; }

        /// <summary>
        /// 评论关键字违规次数
        /// </summary>
        public int ViolationNum { get; set; }



        /// <summary>
        /// 孵化项目审核通知
        /// </summary>
        public string HatchExamineTpl { get; set; }

        /// <summary>
        /// 孵化项目首店/榜单放榜通知
        /// </summary>
        public string ListPrizeTpl { get; set; }

        /// <summary>
        /// 点数0-未开启，1-开启
        /// </summary>
        public int PointStatus { get; set; }


        public string CourseOrderTpl { get; set; }

        /// <summary>
        /// 相亲0-未开启，1-开启
        /// </summary>
        public int IsOpenMiAi { get; set; }

        /// <summary>
        /// 普通用户会员Vip购买图片
        /// </summary>
        public string MemberBuyVipImg { get; set; }

        /// <summary>
        /// 1-大图，2-小图
        /// </summary>
        public int ActivityStyle { get; set; }

        /// 是否是韩国馆(1-是)
        /// </summary>
        public int IsKorea { get; set; }

        /// <summary>
        /// 用户查看微信次数
        /// </summary>
        public int LookWeChatTimes { get; set; }
    }


    public class MenuNavMoreModel
    {
        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; }
        /// <summary>
        /// 菜单栏标题
        /// </summary>        
        public string MenuNavTitle
        {
            get;
            set;
        }
        /// <summary>
        /// 标题样式  1标准
        /// </summary>
        public int TitleStyle { get; set; }
        /// <summary>
        /// 菜单栏样式(0-列表,1-九宫格)
        /// </summary>        
        public int? MenuNavStyle
        {
            get;
            set;
        }
        /// <summary>
        /// 菜单列表
        /// </summary>
        public List<RB_MiniProgram_UserCenterMenu> MeunList { get; set; }
    }
}
