-- 微信小程序和抖音小程序配置数据插入语句

-- 微信小程序平台配置组
INSERT INTO `fa_config` (`name`, `group`, `title`, `tip`, `type`, `visible`, `value`, `content`, `rule`, `extend`, `setting`) VALUES
('shop.platform', 'shop', '平台配置', '平台配置管理', 'group', '', '', '', '', '', ''),

-- 微信小程序配置组
('shop.platform.WechatMiniProgram', 'shop.platform', '微信小程序', '微信小程序平台配置', 'group', '', '', '', '', '', ''),

-- 小程序基本信息
('shop.platform.WechatMiniProgram.app_id', 'shop.platform.WechatMiniProgram', '小程序AppId', 'AppID是小程序开发标识码，配合AppSecret可调用小程序的接口能力', 'string', '', '', '', 'required', '', ''),
('shop.platform.WechatMiniProgram.secret', 'shop.platform.WechatMiniProgram', '小程序密钥', 'AppSecret是校验小程序开发者身份的密钥，具有极高的安全性', 'string', '', '', '', 'required', '', ''),
('shop.platform.WechatMiniProgram.status', 'shop.platform.WechatMiniProgram', '小程序开启状态', '是否开启微信小程序功能', 'boolean', '', '0', '', '', '', ''),

-- 登录配置
('shop.platform.WechatMiniProgram.auto_login', 'shop.platform.WechatMiniProgram', '微信自动登录', '进入应用后，用户将会自动授权登录，未注册用户将会自动注册', 'boolean', '', '1', '', '', '', ''),
('shop.platform.WechatMiniProgram.bind_mobile', 'shop.platform.WechatMiniProgram', '绑定手机号', '授权登录后，未绑定手机号的用户，将会立即提醒绑定手机号', 'boolean', '', '1', '', '', '', ''),

-- 支付配置组
('shop.platform.WechatMiniProgram.payment', 'shop.platform.WechatMiniProgram', '支付配置', '小程序支付方式配置', 'group', '', '', '', '', '', ''),
('shop.platform.WechatMiniProgram.payment.wechat', 'shop.platform.WechatMiniProgram.payment', '微信支付配置', '微信支付相关配置', 'int', '', '1', '', '', '', ''),
('shop.platform.WechatMiniProgram.payment.alipay', 'shop.platform.WechatMiniProgram.payment', '支付宝支付配置', '支付宝支付相关配置', 'int', '', '0', '', '', '', ''),
('shop.platform.WechatMiniProgram.payment.methods', 'shop.platform.WechatMiniProgram.payment', '支付方式', '可用的支付方式列表', 'array', '', '["wechat","balance"]', '', '', '', ''),

-- 分享配置
('shop.platform.WechatMiniProgram.share', 'shop.platform.WechatMiniProgram', '分享信息', '小程序分享配置信息', 'array', '', '[]', '', '', '', ''),

-- 抖音小程序配置组  
('shop.platform.DouyinMiniProgram', 'shop.platform', '抖音小程序', '抖音小程序平台配置', 'group', '', '', '', '', '', ''),

-- 抖音小程序基本信息
('shop.platform.DouyinMiniProgram.app_id', 'shop.platform.DouyinMiniProgram', '抖音小程序AppId', '抖音小程序应用ID', 'string', '', '', '', 'required', '', ''),
('shop.platform.DouyinMiniProgram.secret', 'shop.platform.DouyinMiniProgram', '抖音小程序密钥', '抖音小程序应用密钥', 'string', '', '', '', 'required', '', ''),
('shop.platform.DouyinMiniProgram.status', 'shop.platform.DouyinMiniProgram', '抖音小程序开启状态', '是否开启抖音小程序功能', 'boolean', '', '0', '', '', '', ''),

-- 登录配置
('shop.platform.DouyinMiniProgram.auto_login', 'shop.platform.DouyinMiniProgram', '自动登录', '进入应用后，用户将会自动授权登录，未注册用户将会自动注册', 'boolean', '', '1', '', '', '', ''),
('shop.platform.DouyinMiniProgram.bind_mobile', 'shop.platform.DouyinMiniProgram', '绑定手机号', '授权登录后，未绑定手机号的用户，将会立即提醒绑定手机号', 'boolean', '', '1', '', '', '', ''),

-- 支付配置组
('shop.platform.DouyinMiniProgram.payment', 'shop.platform.DouyinMiniProgram', '支付配置', '抖音小程序支付方式配置', 'group', '', '', '', '', '', ''),
('shop.platform.DouyinMiniProgram.payment.wechat', 'shop.platform.DouyinMiniProgram.payment', '微信支付配置', '微信支付相关配置', 'int', '', '0', '', '', '', ''),
('shop.platform.DouyinMiniProgram.payment.alipay', 'shop.platform.DouyinMiniProgram.payment', '支付宝支付配置', '支付宝支付相关配置', 'int', '', '1', '', '', '', ''),
('shop.platform.DouyinMiniProgram.payment.methods', 'shop.platform.DouyinMiniProgram.payment', '支付方式', '可用的支付方式列表', 'array', '', '["alipay","balance"]', '', '', '', ''),

-- 分享配置
('shop.platform.DouyinMiniProgram.share', 'shop.platform.DouyinMiniProgram', '分享信息', '抖音小程序分享配置信息', 'array', '', '[]', '', '', '', ''); 