sync: 同步 v1.0.4 开源代码并脱敏
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
-- Shared OneLink template/channel examples. Token endpoint and credentials
|
||||
-- belong to the shared-token template configuration.
|
||||
SET NAMES utf8mb4;
|
||||
|
||||
INSERT INTO `t_sim_channel_template` (
|
||||
`temp_key`, `temp_name`, `temp_model`, `temp_config`, `temp_status`,
|
||||
`tenant_id`, `created_dept`, `created_by`, `updated_by`
|
||||
) VALUES (
|
||||
'sim_onelink_tengyu_v1',
|
||||
'Tengyu shared OneLink token v1',
|
||||
'shared_token',
|
||||
'{"token":{"provider":"tengyu","baseUrl":"http://www.sdtywl.cn/","path":"/prod-api/open/api/oneLinkToken"}}',
|
||||
1, '000000', 103, 1, 1
|
||||
)
|
||||
ON DUPLICATE KEY UPDATE
|
||||
`temp_name` = VALUES(`temp_name`), `temp_model` = VALUES(`temp_model`),
|
||||
`temp_config` = VALUES(`temp_config`), `temp_status` = VALUES(`temp_status`),
|
||||
`updated_by` = VALUES(`updated_by`);
|
||||
|
||||
INSERT INTO `t_sim_channels` (
|
||||
`temp_key`, `chan_key`, `chan_name`, `chan_config`, `chan_status`,
|
||||
`chan_alias`, `region_code`, `app_key`, `app_secret`, `access_token`,
|
||||
`refresh_token`, `tenant_id`, `created_dept`, `created_by`, `updated_by`
|
||||
) VALUES (
|
||||
'sim_onelink_tengyu_v1',
|
||||
'OneLink_TENGYU_EXAMPLE',
|
||||
'OneLink Tengyu shared-token example',
|
||||
'{"credentials":{"pwdKey":"REPLACE_WITH_PWDKEY","channelNo":"REPLACE_WITH_CHANNEL_NO"}}',
|
||||
1, '', '', '', '', '', '', '000000', 103, 1, 1
|
||||
)
|
||||
ON DUPLICATE KEY UPDATE
|
||||
`temp_key` = VALUES(`temp_key`), `chan_key` = VALUES(`chan_key`),
|
||||
`chan_config` = VALUES(`chan_config`), `chan_status` = VALUES(`chan_status`),
|
||||
`updated_by` = VALUES(`updated_by`);
|
||||
|
||||
INSERT INTO `t_sim_channel_template` (
|
||||
`temp_key`, `temp_name`, `temp_model`, `temp_config`, `temp_status`,
|
||||
`tenant_id`, `created_dept`, `created_by`, `updated_by`
|
||||
) VALUES (
|
||||
'sim_onelink_xuzhou_mobile_v1',
|
||||
'Xuzhou Mobile shared OneLink token v1',
|
||||
'shared_token',
|
||||
'{"token":{"provider":"xuzhou_mobile","baseUrl":"http://iot.yuanjianiot.com","path":"/admin/api/get/token","carrierType":1}}',
|
||||
1, '000000', 103, 1, 1
|
||||
)
|
||||
ON DUPLICATE KEY UPDATE
|
||||
`temp_name` = VALUES(`temp_name`), `temp_model` = VALUES(`temp_model`),
|
||||
`temp_config` = VALUES(`temp_config`), `temp_status` = VALUES(`temp_status`),
|
||||
`updated_by` = VALUES(`updated_by`);
|
||||
|
||||
INSERT INTO `t_sim_channels` (
|
||||
`temp_key`, `chan_key`, `chan_name`, `chan_config`, `chan_status`,
|
||||
`chan_alias`, `region_code`, `app_key`, `app_secret`, `access_token`,
|
||||
`refresh_token`, `tenant_id`, `created_dept`, `created_by`, `updated_by`
|
||||
) VALUES (
|
||||
'sim_onelink_xuzhou_mobile_v1',
|
||||
'OneLink_XUZHOU_MOBILE_EXAMPLE',
|
||||
'OneLink Xuzhou Mobile shared-token example',
|
||||
'{"credentials":{"appId":"REPLACE_WITH_APP_ID"}}',
|
||||
1, '', '', '', '', '', '', '000000', 103, 1, 1
|
||||
)
|
||||
ON DUPLICATE KEY UPDATE
|
||||
`temp_key` = VALUES(`temp_key`), `chan_name` = VALUES(`chan_name`),
|
||||
`chan_config` = VALUES(`chan_config`), `chan_status` = VALUES(`chan_status`),
|
||||
`updated_by` = VALUES(`updated_by`);
|
||||
Reference in New Issue
Block a user