/**
 * 系统常量配置
 * 完全按照PHP框架的常量定义
 */

// 系统常量
export const SYSTEM_CONSTANTS = {
  DEFAULT_SITE_ID: 1,
  ADMIN_USER_TYPE: 'admin',
  MEMBER_USER_TYPE: 'member',
  DEFAULT_STATUS: 1,
  DISABLED_STATUS: 0,
  DELETED_STATUS: 1,
  NOT_DELETED_STATUS: 0,
};

// 默认站点配置
export const DEFAULT_SITE_CONFIG = {
  site_name: 'WWJ Cloud',
  site_title: 'WWJ Cloud - 企业级多租户SaaS平台',
  site_keywords: 'SaaS,多租户,企业级,云平台',
  site_description: 'WWJ Cloud是一个基于NestJS和Vue3的企业级多租户SaaS平台',
  site_logo: '',
  site_favicon: '',
  icp_number: '',
  copyright: '© 2024 WWJ Cloud. All rights reserved.',
  site_status: 1,
  close_reason: '',
};

// 菜单类型常量
export const MENU_TYPE = {
  DIRECTORY: 0,
  MENU: 1,
  BUTTON: 2,
};

// 应用类型常量
export const APP_TYPE = {
  ADMIN: 'admin',
  API: 'api',
  CORE: 'core',
};

// 状态常量
export const STATUS = {
  ENABLED: 1,
  DISABLED: 0,
};

// 性别常量
export const GENDER = {
  UNKNOWN: 0,
  MALE: 1,
  FEMALE: 2,
};

// 会员注册渠道
export const MEMBER_REGISTER_CHANNEL = {
  WECHAT: 'wechat',
  MOBILE: 'mobile',
  EMAIL: 'email',
  QQ: 'qq',
};

// 会员注册类型
export const MEMBER_REGISTER_TYPE = {
  AUTO: 'auto',
  MANUAL: 'manual',
  INVITE: 'invite',
};

// JWT相关常量
export const JWT_CONSTANTS = {
  SECRET: process.env.JWT_SECRET || 'wwjcloud-secret-key',
  EXPIRES_IN: '7d',
  ALGORITHM: 'HS256',
};

// 设备类型常量
export const DEVICE_TYPE = {
  WEB: 'web',
  MOBILE: 'mobile',
  APP: 'app',
  WECHAT: 'wechat',
}; 