From 0c215179bb06eb77306dd42e9f56b6c04c6f34fe Mon Sep 17 00:00:00 2001 From: smallchill Date: Sat, 22 Feb 2020 00:51:21 +0800 Subject: [PATCH] =?UTF-8?q?:tada:=20=E5=A2=9E=E5=8A=A0=E7=9F=AD=E4=BF=A1?= =?UTF-8?q?=E5=B0=81=E8=A3=85=E3=80=81=E4=BC=98=E5=8C=96oss=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- blade-ops/blade-resource/pom.xml | 12 +- .../AliOssBuilder.java} | 4 +- .../MinioOssBuilder.java} | 4 +- .../builder/{ => oss}/OssBuilder.java | 12 +- .../QiniuOssBuilder.java} | 4 +- .../TencentOssBuilder.java} | 4 +- .../resource/builder/sms/AliSmsBuilder.java | 50 ++ .../resource/builder/sms/QiniuSmsBuilder.java | 47 ++ .../resource/builder/sms/SmsBuilder.java | 138 +++++ .../builder/sms/TencentSmsBuilder.java | 46 ++ .../builder/sms/YunpianSmsBuilder.java | 44 ++ .../config/BladeOssConfiguration.java | 2 +- .../config/BladeSmsConfiguration.java | 47 ++ .../resource/controller/OssController.java | 4 +- .../resource/controller/SmsController.java | 151 +++++ .../resource/endpoint/OssEndpoint.java | 2 +- .../resource/endpoint/SmsEndpoint.java | 164 ++++++ .../springblade/resource/entity/OssVO.java | 23 - .../org/springblade/resource/entity/Sms.java | 83 +++ .../resource/mapper/OssMapper.java | 2 +- .../resource/mapper/SmsMapper.java | 42 ++ .../springblade/resource/mapper/SmsMapper.xml | 30 + .../resource/service/IOssService.java | 2 +- .../resource/service/ISmsService.java | 57 ++ .../resource/service/impl/OssServiceImpl.java | 2 +- .../resource/service/impl/SmsServiceImpl.java | 68 +++ .../org/springblade/resource/vo/OssVO.java | 29 + .../org/springblade/resource/vo/SmsVO.java | 46 ++ .../resource/wrapper/OssWrapper.java | 2 +- .../resource/wrapper/SmsWrapper.java | 49 ++ doc/sql/mysql/bladex-saber-mysql.sql | 35 +- doc/sql/mysql/bladex-sword-mysql.sql | 35 +- doc/sql/oracle/bladex-saber-oracle.sql | 518 +++++++++++------- doc/sql/oracle/bladex-sword-oracle.sql | 350 ++++++++---- .../postgresql/bladex-saber-postgresql.sql | 75 ++- .../postgresql/bladex-sword-postgresql.sql | 109 +++- doc/sql/update/mysql-update-2.3.1~2.4.0.sql | 73 ++- doc/sql/update/oracle-update-2.3.1~2.4.0.sql | 89 +++ .../update/postgresql-update-2.3.1~2.4.0.sql | 90 +++ 40 files changed, 2136 insertions(+), 410 deletions(-) rename blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/{AliBuilder.java => oss/AliOssBuilder.java} (97%) rename blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/{MinioBuilder.java => oss/MinioOssBuilder.java} (95%) rename blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/{ => oss}/OssBuilder.java (94%) rename blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/{QiniuBuilder.java => oss/QiniuOssBuilder.java} (96%) rename blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/{TencentBuilder.java => oss/TencentOssBuilder.java} (97%) create mode 100644 blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/sms/AliSmsBuilder.java create mode 100644 blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/sms/QiniuSmsBuilder.java create mode 100644 blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/sms/SmsBuilder.java create mode 100644 blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/sms/TencentSmsBuilder.java create mode 100644 blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/sms/YunpianSmsBuilder.java create mode 100644 blade-ops/blade-resource/src/main/java/org/springblade/resource/config/BladeSmsConfiguration.java create mode 100644 blade-ops/blade-resource/src/main/java/org/springblade/resource/controller/SmsController.java create mode 100644 blade-ops/blade-resource/src/main/java/org/springblade/resource/endpoint/SmsEndpoint.java delete mode 100644 blade-ops/blade-resource/src/main/java/org/springblade/resource/entity/OssVO.java create mode 100644 blade-ops/blade-resource/src/main/java/org/springblade/resource/entity/Sms.java create mode 100644 blade-ops/blade-resource/src/main/java/org/springblade/resource/mapper/SmsMapper.java create mode 100644 blade-ops/blade-resource/src/main/java/org/springblade/resource/mapper/SmsMapper.xml create mode 100644 blade-ops/blade-resource/src/main/java/org/springblade/resource/service/ISmsService.java create mode 100644 blade-ops/blade-resource/src/main/java/org/springblade/resource/service/impl/SmsServiceImpl.java create mode 100644 blade-ops/blade-resource/src/main/java/org/springblade/resource/vo/OssVO.java create mode 100644 blade-ops/blade-resource/src/main/java/org/springblade/resource/vo/SmsVO.java create mode 100644 blade-ops/blade-resource/src/main/java/org/springblade/resource/wrapper/SmsWrapper.java diff --git a/README.md b/README.md index f394968f..0f59c985 100644 --- a/README.md +++ b/README.md @@ -40,4 +40,4 @@ ## 举报有奖 * 向官方提供有用线索并成功捣毁盗版个人或窝点,将会看成果给予 500~10000 不等的现金奖励 -* 官方唯一指定QQ:85088620 \ No newline at end of file +* 官方唯一指定QQ:1272154962 \ No newline at end of file diff --git a/blade-ops/blade-resource/pom.xml b/blade-ops/blade-resource/pom.xml index 88acbac4..0b939408 100644 --- a/blade-ops/blade-resource/pom.xml +++ b/blade-ops/blade-resource/pom.xml @@ -29,19 +29,11 @@ org.springblade - blade-starter-oss-aliyun + blade-starter-oss-all org.springblade - blade-starter-oss-minio - - - org.springblade - blade-starter-oss-qiniu - - - org.springblade - blade-starter-oss-tencent + blade-starter-sms-all org.springblade diff --git a/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/AliBuilder.java b/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/oss/AliOssBuilder.java similarity index 97% rename from blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/AliBuilder.java rename to blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/oss/AliOssBuilder.java index 889429f7..3a1152d8 100644 --- a/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/AliBuilder.java +++ b/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/oss/AliOssBuilder.java @@ -14,7 +14,7 @@ * this software without specific prior written permission. * Author: Chill 庄骞 (smallchill@163.com) */ -package org.springblade.resource.builder; +package org.springblade.resource.builder.oss; import com.aliyun.oss.ClientConfiguration; import com.aliyun.oss.OSSClient; @@ -32,7 +32,7 @@ import org.springblade.resource.entity.Oss; * * @author Chill */ -public class AliBuilder { +public class AliOssBuilder { @SneakyThrows public static OssTemplate template(Oss oss, OssRule ossRule) { diff --git a/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/MinioBuilder.java b/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/oss/MinioOssBuilder.java similarity index 95% rename from blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/MinioBuilder.java rename to blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/oss/MinioOssBuilder.java index e7011bee..cd38434b 100644 --- a/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/MinioBuilder.java +++ b/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/oss/MinioOssBuilder.java @@ -14,7 +14,7 @@ * this software without specific prior written permission. * Author: Chill 庄骞 (smallchill@163.com) */ -package org.springblade.resource.builder; +package org.springblade.resource.builder.oss; import io.minio.MinioClient; import lombok.SneakyThrows; @@ -29,7 +29,7 @@ import org.springblade.resource.entity.Oss; * * @author Chill */ -public class MinioBuilder { +public class MinioOssBuilder { @SneakyThrows public static OssTemplate template(Oss oss, OssRule ossRule) { diff --git a/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/OssBuilder.java b/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/oss/OssBuilder.java similarity index 94% rename from blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/OssBuilder.java rename to blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/oss/OssBuilder.java index 415968b1..ea48a3ae 100644 --- a/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/OssBuilder.java +++ b/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/oss/OssBuilder.java @@ -14,7 +14,7 @@ * this software without specific prior written permission. * Author: Chill 庄骞 (smallchill@163.com) */ -package org.springblade.resource.builder; +package org.springblade.resource.builder.oss; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.toolkit.Wrappers; @@ -89,13 +89,13 @@ public class OssBuilder { ossRule = new BladeOssRule(Boolean.FALSE); } if (oss.getCategory() == OssEnum.MINIO.getCategory()) { - template = MinioBuilder.template(oss, ossRule); + template = MinioOssBuilder.template(oss, ossRule); } else if (oss.getCategory() == OssEnum.QINIU.getCategory()) { - template = QiniuBuilder.template(oss, ossRule); + template = QiniuOssBuilder.template(oss, ossRule); } else if (oss.getCategory() == OssEnum.ALI.getCategory()) { - template = AliBuilder.template(oss, ossRule); + template = AliOssBuilder.template(oss, ossRule); } else if (oss.getCategory() == OssEnum.TENCENT.getCategory()) { - template = TencentBuilder.template(oss, ossRule); + template = TencentOssBuilder.template(oss, ossRule); } templatePool.put(tenantId, template); ossPool.put(tenantId, oss); @@ -109,7 +109,7 @@ public class OssBuilder { * 获取对象存储实体 * * @param tenantId 租户ID - * @return Role + * @return Oss */ public Oss getOss(String tenantId) { String key = tenantId; diff --git a/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/QiniuBuilder.java b/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/oss/QiniuOssBuilder.java similarity index 96% rename from blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/QiniuBuilder.java rename to blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/oss/QiniuOssBuilder.java index 20d48167..21075850 100644 --- a/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/QiniuBuilder.java +++ b/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/oss/QiniuOssBuilder.java @@ -14,7 +14,7 @@ * this software without specific prior written permission. * Author: Chill 庄骞 (smallchill@163.com) */ -package org.springblade.resource.builder; +package org.springblade.resource.builder.oss; import com.qiniu.common.Zone; import com.qiniu.storage.BucketManager; @@ -33,7 +33,7 @@ import org.springblade.resource.entity.Oss; * * @author Chill */ -public class QiniuBuilder { +public class QiniuOssBuilder { @SneakyThrows public static OssTemplate template(Oss oss, OssRule ossRule) { diff --git a/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/TencentBuilder.java b/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/oss/TencentOssBuilder.java similarity index 97% rename from blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/TencentBuilder.java rename to blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/oss/TencentOssBuilder.java index 1dcd4a08..4a24f8a0 100644 --- a/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/TencentBuilder.java +++ b/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/oss/TencentOssBuilder.java @@ -14,7 +14,7 @@ * this software without specific prior written permission. * Author: Chill 庄骞 (smallchill@163.com) */ -package org.springblade.resource.builder; +package org.springblade.resource.builder.oss; import com.qcloud.cos.COSClient; import com.qcloud.cos.ClientConfig; @@ -33,7 +33,7 @@ import org.springblade.resource.entity.Oss; * * @author Chill */ -public class TencentBuilder { +public class TencentOssBuilder { @SneakyThrows public static OssTemplate template(Oss oss, OssRule ossRule) { diff --git a/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/sms/AliSmsBuilder.java b/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/sms/AliSmsBuilder.java new file mode 100644 index 00000000..f20f6189 --- /dev/null +++ b/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/sms/AliSmsBuilder.java @@ -0,0 +1,50 @@ +/* + * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the dreamlu.net developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: Chill 庄骞 (smallchill@163.com) + */ +package org.springblade.resource.builder.sms; + +import com.aliyuncs.DefaultAcsClient; +import com.aliyuncs.IAcsClient; +import com.aliyuncs.profile.DefaultProfile; +import com.aliyuncs.profile.IClientProfile; +import lombok.SneakyThrows; +import org.springblade.core.redis.cache.BladeRedisCache; +import org.springblade.core.sms.SmsTemplate; +import org.springblade.core.sms.aliyun.AliSmsTemplate; +import org.springblade.core.sms.props.SmsProperties; +import org.springblade.resource.entity.Sms; + +/** + * 阿里云短信构建类 + * + * @author Chill + */ +public class AliSmsBuilder { + + @SneakyThrows + public static SmsTemplate template(Sms sms, BladeRedisCache redisCache) { + SmsProperties smsProperties = new SmsProperties(); + smsProperties.setTemplateId(sms.getTemplateId()); + smsProperties.setAccessKey(sms.getAccessKey()); + smsProperties.setSecretKey(sms.getSecretKey()); + smsProperties.setRegionId(sms.getRegionId()); + smsProperties.setSignName(sms.getSignName()); + IClientProfile profile = DefaultProfile.getProfile(smsProperties.getRegionId(), smsProperties.getAccessKey(), smsProperties.getSecretKey()); + IAcsClient acsClient = new DefaultAcsClient(profile); + return new AliSmsTemplate(smsProperties, acsClient, redisCache); + } + +} diff --git a/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/sms/QiniuSmsBuilder.java b/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/sms/QiniuSmsBuilder.java new file mode 100644 index 00000000..d236d299 --- /dev/null +++ b/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/sms/QiniuSmsBuilder.java @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the dreamlu.net developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: Chill 庄骞 (smallchill@163.com) + */ +package org.springblade.resource.builder.sms; + +import com.qiniu.sms.SmsManager; +import com.qiniu.util.Auth; +import lombok.SneakyThrows; +import org.springblade.core.redis.cache.BladeRedisCache; +import org.springblade.core.sms.SmsTemplate; +import org.springblade.core.sms.props.SmsProperties; +import org.springblade.core.sms.qiniu.QiniuSmsTemplate; +import org.springblade.resource.entity.Sms; + +/** + * 七牛云短信构建类 + * + * @author Chill + */ +public class QiniuSmsBuilder { + + @SneakyThrows + public static SmsTemplate template(Sms sms, BladeRedisCache redisCache) { + SmsProperties smsProperties = new SmsProperties(); + smsProperties.setTemplateId(sms.getTemplateId()); + smsProperties.setAccessKey(sms.getAccessKey()); + smsProperties.setSecretKey(sms.getSecretKey()); + smsProperties.setSignName(sms.getSignName()); + Auth auth = Auth.create(smsProperties.getAccessKey(), smsProperties.getSecretKey()); + SmsManager smsManager = new SmsManager(auth); + return new QiniuSmsTemplate(smsProperties, smsManager, redisCache); + } + +} diff --git a/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/sms/SmsBuilder.java b/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/sms/SmsBuilder.java new file mode 100644 index 00000000..74a782a7 --- /dev/null +++ b/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/sms/SmsBuilder.java @@ -0,0 +1,138 @@ +/* + * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the dreamlu.net developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: Chill 庄骞 (smallchill@163.com) + */ +package org.springblade.resource.builder.sms; + +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.toolkit.Wrappers; +import org.springblade.core.cache.utils.CacheUtil; +import org.springblade.core.redis.cache.BladeRedisCache; +import org.springblade.core.secure.utils.SecureUtil; +import org.springblade.core.sms.SmsTemplate; +import org.springblade.core.sms.enums.SmsEnum; +import org.springblade.core.sms.enums.SmsStatusEnum; +import org.springblade.core.sms.props.SmsProperties; +import org.springblade.core.tool.utils.Func; +import org.springblade.core.tool.utils.StringPool; +import org.springblade.core.tool.utils.StringUtil; +import org.springblade.core.tool.utils.WebUtil; +import org.springblade.resource.entity.Sms; +import org.springblade.resource.mapper.SmsMapper; + +import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; + +import static org.springblade.core.cache.constant.CacheConstant.RESOURCE_CACHE; + +/** + * Sms短信服务统一构建类 + * + * @author Chill + */ +public class SmsBuilder { + + public static final String SMS_CODE = "sms:code:"; + public static final String SMS_PARAM_KEY = "code"; + + private final SmsProperties smsProperties; + private final SmsMapper smsMapper; + private final BladeRedisCache redisCache; + + + public SmsBuilder(SmsProperties smsProperties, SmsMapper smsMapper, BladeRedisCache redisCache) { + this.smsProperties = smsProperties; + this.smsMapper = smsMapper; + this.redisCache = redisCache; + } + + /** + * SmsTemplate配置缓存池 + */ + private Map templatePool = new ConcurrentHashMap<>(); + + /** + * Sms配置缓存池 + */ + private Map smsPool = new ConcurrentHashMap<>(); + + + /** + * 获取template + * + * @return SmsTemplate + */ + public SmsTemplate template() { + String tenantId = SecureUtil.getTenantId(); + Sms sms = getSms(tenantId); + Sms smsCached = smsPool.get(tenantId); + SmsTemplate template = templatePool.get(tenantId); + // 若为空或者不一致,则重新加载 + if (Func.hasEmpty(template, smsCached) || !sms.getTemplateId().equals(smsCached.getTemplateId()) || !sms.getAccessKey().equals(smsCached.getAccessKey())) { + synchronized (SmsBuilder.class) { + template = templatePool.get(tenantId); + if (Func.hasEmpty(template, smsCached) || !sms.getAccessKey().equals(smsCached.getAccessKey())) { + if (sms.getCategory() == SmsEnum.YUNPIAN.getCategory()) { + template = YunpianSmsBuilder.template(sms, redisCache); + } else if (sms.getCategory() == SmsEnum.QINIU.getCategory()) { + template = QiniuSmsBuilder.template(sms, redisCache); + } else if (sms.getCategory() == SmsEnum.ALI.getCategory()) { + template = AliSmsBuilder.template(sms, redisCache); + } else if (sms.getCategory() == SmsEnum.TENCENT.getCategory()) { + template = YunpianSmsBuilder.template(sms, redisCache); + } + templatePool.put(tenantId, template); + smsPool.put(tenantId, sms); + } + } + } + return template; + } + + + /** + * 获取短信实体 + * + * @param tenantId 租户ID + * @return Sms + */ + public Sms getSms(String tenantId) { + String key = tenantId; + LambdaQueryWrapper lqw = Wrappers.query().lambda().eq(Sms::getTenantId, tenantId); + // 获取传参的资源编号并查询,若有则返回,若没有则调启用的配置 + String smsCode = WebUtil.getParameter(SMS_PARAM_KEY); + if (StringUtil.isNotBlank(smsCode)) { + key = key.concat(StringPool.DASH).concat(smsCode); + lqw.eq(Sms::getSmsCode, smsCode); + } else { + lqw.eq(Sms::getStatus, SmsStatusEnum.ENABLE.getNum()); + } + return CacheUtil.get(RESOURCE_CACHE, SMS_CODE, key, () -> { + Sms s = smsMapper.selectOne(lqw); + // 若为空则调用默认配置 + if ((Func.isEmpty(s))) { + Sms defaultSms = new Sms(); + defaultSms.setCategory(SmsEnum.QINIU.getCategory()); + defaultSms.setAccessKey(smsProperties.getAccessKey()); + defaultSms.setSecretKey(smsProperties.getSecretKey()); + defaultSms.setSignName(smsProperties.getSignName()); + return defaultSms; + } else { + return s; + } + }); + } + +} diff --git a/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/sms/TencentSmsBuilder.java b/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/sms/TencentSmsBuilder.java new file mode 100644 index 00000000..49ed121c --- /dev/null +++ b/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/sms/TencentSmsBuilder.java @@ -0,0 +1,46 @@ +/* + * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the dreamlu.net developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: Chill 庄骞 (smallchill@163.com) + */ +package org.springblade.resource.builder.sms; + +import com.github.qcloudsms.SmsMultiSender; +import lombok.SneakyThrows; +import org.springblade.core.redis.cache.BladeRedisCache; +import org.springblade.core.sms.SmsTemplate; +import org.springblade.core.sms.props.SmsProperties; +import org.springblade.core.sms.tencent.TencentSmsTemplate; +import org.springblade.core.tool.utils.Func; +import org.springblade.resource.entity.Sms; + +/** + * 腾讯云短信构建类 + * + * @author Chill + */ +public class TencentSmsBuilder { + + @SneakyThrows + public static SmsTemplate template(Sms sms, BladeRedisCache redisCache) { + SmsProperties smsProperties = new SmsProperties(); + smsProperties.setTemplateId(sms.getTemplateId()); + smsProperties.setAccessKey(sms.getAccessKey()); + smsProperties.setSecretKey(sms.getSecretKey()); + smsProperties.setSignName(sms.getSignName()); + SmsMultiSender smsSender = new SmsMultiSender(Func.toInt(smsProperties.getAccessKey()), sms.getSecretKey()); + return new TencentSmsTemplate(smsProperties, smsSender, redisCache); + } + +} diff --git a/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/sms/YunpianSmsBuilder.java b/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/sms/YunpianSmsBuilder.java new file mode 100644 index 00000000..f3d0d411 --- /dev/null +++ b/blade-ops/blade-resource/src/main/java/org/springblade/resource/builder/sms/YunpianSmsBuilder.java @@ -0,0 +1,44 @@ +/* + * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the dreamlu.net developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: Chill 庄骞 (smallchill@163.com) + */ +package org.springblade.resource.builder.sms; + +import com.yunpian.sdk.YunpianClient; +import lombok.SneakyThrows; +import org.springblade.core.redis.cache.BladeRedisCache; +import org.springblade.core.sms.SmsTemplate; +import org.springblade.core.sms.props.SmsProperties; +import org.springblade.core.sms.yunpian.YunpianSmsTemplate; +import org.springblade.resource.entity.Sms; + +/** + * 云片短信构建类 + * + * @author Chill + */ +public class YunpianSmsBuilder { + + @SneakyThrows + public static SmsTemplate template(Sms sms, BladeRedisCache redisCache) { + SmsProperties smsProperties = new SmsProperties(); + smsProperties.setTemplateId(sms.getTemplateId()); + smsProperties.setAccessKey(sms.getAccessKey()); + smsProperties.setSignName(sms.getSignName()); + YunpianClient client = new YunpianClient(smsProperties.getAccessKey()).init(); + return new YunpianSmsTemplate(smsProperties, client, redisCache); + } + +} diff --git a/blade-ops/blade-resource/src/main/java/org/springblade/resource/config/BladeOssConfiguration.java b/blade-ops/blade-resource/src/main/java/org/springblade/resource/config/BladeOssConfiguration.java index d3f54935..4068eeae 100644 --- a/blade-ops/blade-resource/src/main/java/org/springblade/resource/config/BladeOssConfiguration.java +++ b/blade-ops/blade-resource/src/main/java/org/springblade/resource/config/BladeOssConfiguration.java @@ -18,7 +18,7 @@ package org.springblade.resource.config; import lombok.AllArgsConstructor; import org.springblade.core.oss.props.OssProperties; -import org.springblade.resource.builder.OssBuilder; +import org.springblade.resource.builder.oss.OssBuilder; import org.springblade.resource.mapper.OssMapper; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; diff --git a/blade-ops/blade-resource/src/main/java/org/springblade/resource/config/BladeSmsConfiguration.java b/blade-ops/blade-resource/src/main/java/org/springblade/resource/config/BladeSmsConfiguration.java new file mode 100644 index 00000000..a03ab728 --- /dev/null +++ b/blade-ops/blade-resource/src/main/java/org/springblade/resource/config/BladeSmsConfiguration.java @@ -0,0 +1,47 @@ +/* + * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the dreamlu.net developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: Chill 庄骞 (smallchill@163.com) + */ +package org.springblade.resource.config; + +import lombok.AllArgsConstructor; +import org.springblade.core.redis.cache.BladeRedisCache; +import org.springblade.core.sms.props.SmsProperties; +import org.springblade.resource.builder.sms.SmsBuilder; +import org.springblade.resource.mapper.SmsMapper; +import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.Configuration; + +/** + * Sms配置类 + * + * @author Chill + */ +@Configuration +@AllArgsConstructor +public class BladeSmsConfiguration { + + private SmsProperties smsProperties; + + private SmsMapper smsMapper; + + private BladeRedisCache redisCache; + + @Bean + public SmsBuilder smsBuilder() { + return new SmsBuilder(smsProperties, smsMapper, redisCache); + } + +} diff --git a/blade-ops/blade-resource/src/main/java/org/springblade/resource/controller/OssController.java b/blade-ops/blade-resource/src/main/java/org/springblade/resource/controller/OssController.java index c444dbd7..31fd67f1 100644 --- a/blade-ops/blade-resource/src/main/java/org/springblade/resource/controller/OssController.java +++ b/blade-ops/blade-resource/src/main/java/org/springblade/resource/controller/OssController.java @@ -30,7 +30,7 @@ import org.springblade.core.tool.api.R; import org.springblade.core.tool.constant.RoleConstant; import org.springblade.core.tool.utils.Func; import org.springblade.resource.entity.Oss; -import org.springblade.resource.entity.OssVO; +import org.springblade.resource.vo.OssVO; import org.springblade.resource.service.IOssService; import org.springblade.resource.wrapper.OssWrapper; import org.springframework.cache.annotation.CacheEvict; @@ -47,11 +47,11 @@ import static org.springblade.core.cache.constant.CacheConstant.RESOURCE_CACHE; * @author BladeX * @since 2019-05-26 */ +@ApiIgnore @RestController @AllArgsConstructor @RequestMapping("/oss") @PreAuth(RoleConstant.HAS_ROLE_ADMIN) -@ApiIgnore @Api(value = "对象存储接口", tags = "对象存储接口") public class OssController extends BladeController { diff --git a/blade-ops/blade-resource/src/main/java/org/springblade/resource/controller/SmsController.java b/blade-ops/blade-resource/src/main/java/org/springblade/resource/controller/SmsController.java new file mode 100644 index 00000000..a261b36e --- /dev/null +++ b/blade-ops/blade-resource/src/main/java/org/springblade/resource/controller/SmsController.java @@ -0,0 +1,151 @@ +/* + * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the dreamlu.net developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: Chill 庄骞 (smallchill@163.com) + */ +package org.springblade.resource.controller; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import lombok.AllArgsConstructor; +import org.springblade.core.boot.ctrl.BladeController; +import org.springblade.core.mp.support.Condition; +import org.springblade.core.mp.support.Query; +import org.springblade.core.secure.annotation.PreAuth; +import org.springblade.core.tool.api.R; +import org.springblade.core.tool.constant.RoleConstant; +import org.springblade.core.tool.utils.Func; +import org.springblade.resource.entity.Sms; +import org.springblade.resource.service.ISmsService; +import org.springblade.resource.vo.SmsVO; +import org.springblade.resource.wrapper.SmsWrapper; +import org.springframework.cache.annotation.CacheEvict; +import org.springframework.web.bind.annotation.*; +import springfox.documentation.annotations.ApiIgnore; + +import javax.validation.Valid; + +import static org.springblade.core.cache.constant.CacheConstant.RESOURCE_CACHE; + +/** + * 短信配置表 控制器 + * + * @author BladeX + * @since 2020-02-20 + */ +@ApiIgnore +@RestController +@AllArgsConstructor +@RequestMapping("/sms") +@PreAuth(RoleConstant.HAS_ROLE_ADMIN) +@Api(value = "短信配置表", tags = "短信配置表接口") +public class SmsController extends BladeController { + + private ISmsService smsService; + + /** + * 详情 + */ + @GetMapping("/detail") + @ApiOperationSupport(order = 1) + @ApiOperation(value = "详情", notes = "传入sms") + public R detail(Sms sms) { + Sms detail = smsService.getOne(Condition.getQueryWrapper(sms)); + return R.data(SmsWrapper.build().entityVO(detail)); + } + + /** + * 分页 短信配置表 + */ + @GetMapping("/list") + @ApiOperationSupport(order = 2) + @ApiOperation(value = "分页", notes = "传入sms") + public R> list(Sms sms, Query query) { + IPage pages = smsService.page(Condition.getPage(query), Condition.getQueryWrapper(sms)); + return R.data(SmsWrapper.build().pageVO(pages)); + } + + + /** + * 自定义分页 短信配置表 + */ + @GetMapping("/page") + @ApiOperationSupport(order = 3) + @ApiOperation(value = "分页", notes = "传入sms") + public R> page(SmsVO sms, Query query) { + IPage pages = smsService.selectSmsPage(Condition.getPage(query), sms); + return R.data(pages); + } + + /** + * 新增 短信配置表 + */ + @PostMapping("/save") + @ApiOperationSupport(order = 4) + @ApiOperation(value = "新增", notes = "传入sms") + @CacheEvict(cacheNames = {RESOURCE_CACHE}, allEntries = true) + public R save(@Valid @RequestBody Sms sms) { + return R.status(smsService.save(sms)); + } + + /** + * 修改 短信配置表 + */ + @PostMapping("/update") + @ApiOperationSupport(order = 5) + @ApiOperation(value = "修改", notes = "传入sms") + @CacheEvict(cacheNames = {RESOURCE_CACHE}, allEntries = true) + public R update(@Valid @RequestBody Sms sms) { + return R.status(smsService.updateById(sms)); + } + + /** + * 新增或修改 短信配置表 + */ + @PostMapping("/submit") + @ApiOperationSupport(order = 6) + @ApiOperation(value = "新增或修改", notes = "传入sms") + @CacheEvict(cacheNames = {RESOURCE_CACHE}, allEntries = true) + public R submit(@Valid @RequestBody Sms sms) { + return R.status(smsService.submit(sms)); + } + + + /** + * 删除 短信配置表 + */ + @PostMapping("/remove") + @ApiOperationSupport(order = 7) + @ApiOperation(value = "逻辑删除", notes = "传入ids") + @CacheEvict(cacheNames = {RESOURCE_CACHE}, allEntries = true) + public R remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) { + return R.status(smsService.deleteLogic(Func.toLongList(ids))); + } + + /** + * 启用 + */ + @PostMapping("/enable") + @ApiOperationSupport(order = 8) + @ApiOperation(value = "配置启用", notes = "传入id") + @CacheEvict(cacheNames = {RESOURCE_CACHE}, allEntries = true) + public R enable(@ApiParam(value = "主键", required = true) @RequestParam Long id) { + return R.status(smsService.enable(id)); + } + + +} diff --git a/blade-ops/blade-resource/src/main/java/org/springblade/resource/endpoint/OssEndpoint.java b/blade-ops/blade-resource/src/main/java/org/springblade/resource/endpoint/OssEndpoint.java index a520d46e..322365c8 100644 --- a/blade-ops/blade-resource/src/main/java/org/springblade/resource/endpoint/OssEndpoint.java +++ b/blade-ops/blade-resource/src/main/java/org/springblade/resource/endpoint/OssEndpoint.java @@ -25,7 +25,7 @@ import org.springblade.core.secure.annotation.PreAuth; import org.springblade.core.tool.api.R; import org.springblade.core.tool.constant.RoleConstant; import org.springblade.core.tool.utils.Func; -import org.springblade.resource.builder.OssBuilder; +import org.springblade.resource.builder.oss.OssBuilder; import org.springframework.web.bind.annotation.*; import org.springframework.web.multipart.MultipartFile; diff --git a/blade-ops/blade-resource/src/main/java/org/springblade/resource/endpoint/SmsEndpoint.java b/blade-ops/blade-resource/src/main/java/org/springblade/resource/endpoint/SmsEndpoint.java new file mode 100644 index 00000000..d07552f1 --- /dev/null +++ b/blade-ops/blade-resource/src/main/java/org/springblade/resource/endpoint/SmsEndpoint.java @@ -0,0 +1,164 @@ +/* + * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the dreamlu.net developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: Chill 庄骞 (smallchill@163.com) + */ +package org.springblade.resource.endpoint; + +import io.swagger.annotations.Api; +import lombok.AllArgsConstructor; +import lombok.SneakyThrows; +import org.springblade.core.sms.model.SmsCode; +import org.springblade.core.sms.model.SmsData; +import org.springblade.core.tool.api.R; +import org.springblade.core.tool.jackson.JsonUtil; +import org.springblade.core.tool.utils.Func; +import org.springblade.core.tool.utils.RandomType; +import org.springblade.core.tool.utils.StringUtil; +import org.springblade.resource.builder.sms.SmsBuilder; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +import java.util.HashMap; +import java.util.Map; + +/** + * 短信服务端点 + * + * @author Chill + */ +@RestController +@AllArgsConstructor +@RequestMapping("/sms/endpoint") +@Api(value = "短信服务端点", tags = "短信服务端点") +public class SmsEndpoint { + + private static final String PARAM_KEY = "code"; + private static final String SEND_SUCCESS = "短信发送成功"; + private static final String SEND_FAIL = "短信发送失败"; + private static final String VALIDATE_SUCCESS = "验证码校验成功"; + private static final String VALIDATE_FAIL = "验证码校验失败"; + + private SmsBuilder smsBuilder; + + //================================= 短信服务校验 ================================= + + /** + * 短信验证码发送 + * + * @param phone 手机号 + */ + @SneakyThrows + @PostMapping("/send-validate") + public R sendValidate(@RequestParam String phone) { + Map params = new HashMap<>(1); + params.put(PARAM_KEY, StringUtil.random(6, RandomType.INT)); + SmsCode smsCode = smsBuilder.template().sendValidate(new SmsData(params).setKey(PARAM_KEY), phone); + return smsCode.isSuccess() ? R.data(smsCode, SEND_SUCCESS) : R.fail(SEND_FAIL); + } + + /** + * 校验短信 + * + * @param smsCode 短信校验信息 + */ + @SneakyThrows + @PostMapping("/validate-message") + public R validateMessage(SmsCode smsCode) { + boolean validate = smsBuilder.template().validateMessage(smsCode); + return validate ? R.success(VALIDATE_SUCCESS) : R.fail(VALIDATE_FAIL); + } + + //========== 通用短信自定义发送(支持自定义params参数传递, 推荐用于测试, 不推荐用于生产环境) ========== + + /** + * 发送信息 + * + * @param params 自定义短信参数 + * @param phones 手机号集合 + */ + @SneakyThrows + @PostMapping("/send-message") + public R sendMessage(@RequestParam String params, @RequestParam String phones) { + SmsData smsData = new SmsData(JsonUtil.readMap(params, String.class, String.class)); + return send(smsData, phones); + } + + //========== 指定短信服务发送(可根据各种场景自定拓展定制, 损失灵活性增加安全性, 推荐用于生产环境) ========== + + /** + * 短信通知 + * + * @param phones 手机号集合 + */ + @SneakyThrows + @PostMapping("/send-notice") + public R sendNotice(@RequestParam String phones) { + Map params = new HashMap<>(3); + params.put("title", "通知标题"); + params.put("content", "通知内容"); + params.put("date", "通知时间"); + SmsData smsData = new SmsData(params); + return send(smsData, phones); + } + + /** + * 订单通知 + * + * @param phones 手机号集合 + */ + @SneakyThrows + @PostMapping("/send-order") + public R sendOrder(@RequestParam String phones) { + Map params = new HashMap<>(3); + params.put("orderNo", "订单编号"); + params.put("packageNo", "快递单号"); + params.put("user", "收件人"); + SmsData smsData = new SmsData(params); + return send(smsData, phones); + } + + /** + * 会议通知 + * + * @param phones 手机号集合 + */ + @SneakyThrows + @PostMapping("/send-meeting") + public R sendMeeting(@RequestParam String phones) { + Map params = new HashMap<>(2); + params.put("roomId", "会议室"); + params.put("topic", "会议主题"); + params.put("date", "会议时间"); + SmsData smsData = new SmsData(params); + return send(smsData, phones); + } + + //================================= 通用短信发送接口 ================================= + + /** + * 通用短信发送接口 + * + * @param smsData 短信内容 + * @param phones 手机号列表 + * @return 是否发送成功 + */ + private R send(SmsData smsData, String phones) { + SmsCode smsCode = smsBuilder.template().sendMulti(smsData, Func.toStrList(phones)); + return smsCode.isSuccess() ? R.data(smsCode, SEND_SUCCESS) : R.fail(SEND_FAIL); + } + +} diff --git a/blade-ops/blade-resource/src/main/java/org/springblade/resource/entity/OssVO.java b/blade-ops/blade-resource/src/main/java/org/springblade/resource/entity/OssVO.java deleted file mode 100644 index 161d2865..00000000 --- a/blade-ops/blade-resource/src/main/java/org/springblade/resource/entity/OssVO.java +++ /dev/null @@ -1,23 +0,0 @@ -package org.springblade.resource.entity; - -import lombok.Data; - -/** - * OssVO - * - * @author Chill - */ -@Data -public class OssVO extends Oss { - - /** - * 分类名 - */ - private String categoryName; - - /** - * 是否启用 - */ - private String statusName; - -} diff --git a/blade-ops/blade-resource/src/main/java/org/springblade/resource/entity/Sms.java b/blade-ops/blade-resource/src/main/java/org/springblade/resource/entity/Sms.java new file mode 100644 index 00000000..c7a18516 --- /dev/null +++ b/blade-ops/blade-resource/src/main/java/org/springblade/resource/entity/Sms.java @@ -0,0 +1,83 @@ +/* + * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the dreamlu.net developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: Chill 庄骞 (smallchill@163.com) + */ +package org.springblade.resource.entity; + +import com.baomidou.mybatisplus.annotation.TableName; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; +import org.springblade.core.tenant.mp.TenantEntity; + +/** + * 短信配置表实体类 + * + * @author BladeX + * @since 2020-02-20 + */ +@Data +@TableName("blade_sms") +@EqualsAndHashCode(callSuper = true) +@ApiModel(value = "Sms对象", description = "短信配置表") +public class Sms extends TenantEntity { + + private static final long serialVersionUID = 1L; + + /** + * 资源编号 + */ + @ApiModelProperty(value = "资源编号") + private String smsCode; + + /** + * 模板ID + */ + @ApiModelProperty(value = "模板ID") + private String templateId; + /** + * 分类 + */ + @ApiModelProperty(value = "分类") + private Integer category; + /** + * accessKey + */ + @ApiModelProperty(value = "accessKey") + private String accessKey; + /** + * secretKey + */ + @ApiModelProperty(value = "secretKey") + private String secretKey; + /** + * regionId + */ + @ApiModelProperty(value = "regionId") + private String regionId; + /** + * 短信签名 + */ + @ApiModelProperty(value = "短信签名") + private String signName; + /** + * 备注 + */ + @ApiModelProperty(value = "备注") + private String remark; + + +} diff --git a/blade-ops/blade-resource/src/main/java/org/springblade/resource/mapper/OssMapper.java b/blade-ops/blade-resource/src/main/java/org/springblade/resource/mapper/OssMapper.java index 3fd70e44..af7619f4 100644 --- a/blade-ops/blade-resource/src/main/java/org/springblade/resource/mapper/OssMapper.java +++ b/blade-ops/blade-resource/src/main/java/org/springblade/resource/mapper/OssMapper.java @@ -19,7 +19,7 @@ package org.springblade.resource.mapper; import com.baomidou.mybatisplus.core.mapper.BaseMapper; import com.baomidou.mybatisplus.core.metadata.IPage; import org.springblade.resource.entity.Oss; -import org.springblade.resource.entity.OssVO; +import org.springblade.resource.vo.OssVO; import java.util.List; diff --git a/blade-ops/blade-resource/src/main/java/org/springblade/resource/mapper/SmsMapper.java b/blade-ops/blade-resource/src/main/java/org/springblade/resource/mapper/SmsMapper.java new file mode 100644 index 00000000..4d0588af --- /dev/null +++ b/blade-ops/blade-resource/src/main/java/org/springblade/resource/mapper/SmsMapper.java @@ -0,0 +1,42 @@ +/* + * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the dreamlu.net developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: Chill 庄骞 (smallchill@163.com) + */ +package org.springblade.resource.mapper; + +import org.springblade.resource.entity.Sms; +import org.springblade.resource.vo.SmsVO; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import java.util.List; + +/** + * 短信配置表 Mapper 接口 + * + * @author BladeX + * @since 2020-02-20 + */ +public interface SmsMapper extends BaseMapper { + + /** + * 自定义分页 + * + * @param page + * @param sms + * @return + */ + List selectSmsPage(IPage page, SmsVO sms); + +} diff --git a/blade-ops/blade-resource/src/main/java/org/springblade/resource/mapper/SmsMapper.xml b/blade-ops/blade-resource/src/main/java/org/springblade/resource/mapper/SmsMapper.xml new file mode 100644 index 00000000..389083ff --- /dev/null +++ b/blade-ops/blade-resource/src/main/java/org/springblade/resource/mapper/SmsMapper.xml @@ -0,0 +1,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/blade-ops/blade-resource/src/main/java/org/springblade/resource/service/IOssService.java b/blade-ops/blade-resource/src/main/java/org/springblade/resource/service/IOssService.java index acf11899..7e9661dc 100644 --- a/blade-ops/blade-resource/src/main/java/org/springblade/resource/service/IOssService.java +++ b/blade-ops/blade-resource/src/main/java/org/springblade/resource/service/IOssService.java @@ -19,7 +19,7 @@ package org.springblade.resource.service; import com.baomidou.mybatisplus.core.metadata.IPage; import org.springblade.core.mp.base.BaseService; import org.springblade.resource.entity.Oss; -import org.springblade.resource.entity.OssVO; +import org.springblade.resource.vo.OssVO; /** * 服务类 diff --git a/blade-ops/blade-resource/src/main/java/org/springblade/resource/service/ISmsService.java b/blade-ops/blade-resource/src/main/java/org/springblade/resource/service/ISmsService.java new file mode 100644 index 00000000..38aea52a --- /dev/null +++ b/blade-ops/blade-resource/src/main/java/org/springblade/resource/service/ISmsService.java @@ -0,0 +1,57 @@ +/* + * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the dreamlu.net developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: Chill 庄骞 (smallchill@163.com) + */ +package org.springblade.resource.service; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import org.springblade.core.mp.base.BaseService; +import org.springblade.resource.entity.Sms; +import org.springblade.resource.vo.SmsVO; + +/** + * 短信配置表 服务类 + * + * @author BladeX + * @since 2020-02-20 + */ +public interface ISmsService extends BaseService { + + /** + * 自定义分页 + * + * @param page + * @param sms + * @return + */ + IPage selectSmsPage(IPage page, SmsVO sms); + + /** + * 提交oss信息 + * + * @param oss + * @return + */ + boolean submit(Sms oss); + + /** + * 启动配置 + * + * @param id + * @return + */ + boolean enable(Long id); + +} diff --git a/blade-ops/blade-resource/src/main/java/org/springblade/resource/service/impl/OssServiceImpl.java b/blade-ops/blade-resource/src/main/java/org/springblade/resource/service/impl/OssServiceImpl.java index b0543717..cba83f24 100644 --- a/blade-ops/blade-resource/src/main/java/org/springblade/resource/service/impl/OssServiceImpl.java +++ b/blade-ops/blade-resource/src/main/java/org/springblade/resource/service/impl/OssServiceImpl.java @@ -24,7 +24,7 @@ import org.springblade.core.mp.base.BaseServiceImpl; import org.springblade.core.secure.utils.AuthUtil; import org.springblade.core.tool.utils.Func; import org.springblade.resource.entity.Oss; -import org.springblade.resource.entity.OssVO; +import org.springblade.resource.vo.OssVO; import org.springblade.resource.mapper.OssMapper; import org.springblade.resource.service.IOssService; import org.springframework.stereotype.Service; diff --git a/blade-ops/blade-resource/src/main/java/org/springblade/resource/service/impl/SmsServiceImpl.java b/blade-ops/blade-resource/src/main/java/org/springblade/resource/service/impl/SmsServiceImpl.java new file mode 100644 index 00000000..ecfcaf45 --- /dev/null +++ b/blade-ops/blade-resource/src/main/java/org/springblade/resource/service/impl/SmsServiceImpl.java @@ -0,0 +1,68 @@ +/* + * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the dreamlu.net developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: Chill 庄骞 (smallchill@163.com) + */ +package org.springblade.resource.service.impl; + +import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.core.toolkit.Wrappers; +import org.springblade.core.log.exception.ServiceException; +import org.springblade.core.mp.base.BaseServiceImpl; +import org.springblade.core.secure.utils.AuthUtil; +import org.springblade.core.tool.utils.Func; +import org.springblade.resource.entity.Sms; +import org.springblade.resource.mapper.SmsMapper; +import org.springblade.resource.service.ISmsService; +import org.springblade.resource.vo.SmsVO; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +/** + * 短信配置表 服务实现类 + * + * @author BladeX + * @since 2020-02-20 + */ +@Service +public class SmsServiceImpl extends BaseServiceImpl implements ISmsService { + + @Override + public IPage selectSmsPage(IPage page, SmsVO sms) { + return page.setRecords(baseMapper.selectSmsPage(page, sms)); + } + + @Override + public boolean submit(Sms sms) { + LambdaQueryWrapper lqw = Wrappers.query().lambda() + .eq(Sms::getSmsCode, sms.getSmsCode()).eq(Sms::getTenantId, AuthUtil.getTenantId()); + Integer cnt = baseMapper.selectCount(Func.isEmpty(sms.getId()) ? lqw : lqw.notIn(Sms::getId, sms.getId())); + if (cnt > 0) { + throw new ServiceException("当前资源编号已存在!"); + } + return this.saveOrUpdate(sms); + } + + @Override + @Transactional(rollbackFor = Exception.class) + public boolean enable(Long id) { + // 先禁用 + boolean temp1 = this.update(Wrappers.update().lambda().set(Sms::getStatus, 1)); + // 在启用 + boolean temp2 = this.update(Wrappers.update().lambda().set(Sms::getStatus, 2).eq(Sms::getId, id)); + return temp1 && temp2; + } + +} diff --git a/blade-ops/blade-resource/src/main/java/org/springblade/resource/vo/OssVO.java b/blade-ops/blade-resource/src/main/java/org/springblade/resource/vo/OssVO.java new file mode 100644 index 00000000..7eb913d1 --- /dev/null +++ b/blade-ops/blade-resource/src/main/java/org/springblade/resource/vo/OssVO.java @@ -0,0 +1,29 @@ +package org.springblade.resource.vo; + +import io.swagger.annotations.ApiModel; +import lombok.Data; +import lombok.EqualsAndHashCode; +import org.springblade.resource.entity.Oss; + +/** + * OssVO + * + * @author Chill + */ +@Data +@EqualsAndHashCode(callSuper = true) +@ApiModel(value = "OssVO对象", description = "对象存储表") +public class OssVO extends Oss { + private static final long serialVersionUID = 1L; + + /** + * 分类名 + */ + private String categoryName; + + /** + * 是否启用 + */ + private String statusName; + +} diff --git a/blade-ops/blade-resource/src/main/java/org/springblade/resource/vo/SmsVO.java b/blade-ops/blade-resource/src/main/java/org/springblade/resource/vo/SmsVO.java new file mode 100644 index 00000000..d141b943 --- /dev/null +++ b/blade-ops/blade-resource/src/main/java/org/springblade/resource/vo/SmsVO.java @@ -0,0 +1,46 @@ +/* + * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the dreamlu.net developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: Chill 庄骞 (smallchill@163.com) + */ +package org.springblade.resource.vo; + +import org.springblade.resource.entity.Sms; +import lombok.Data; +import lombok.EqualsAndHashCode; +import io.swagger.annotations.ApiModel; + +/** + * 短信配置表视图实体类 + * + * @author BladeX + * @since 2020-02-20 + */ +@Data +@EqualsAndHashCode(callSuper = true) +@ApiModel(value = "SmsVO对象", description = "短信配置表") +public class SmsVO extends Sms { + private static final long serialVersionUID = 1L; + + /** + * 分类名 + */ + private String categoryName; + + /** + * 是否启用 + */ + private String statusName; + +} diff --git a/blade-ops/blade-resource/src/main/java/org/springblade/resource/wrapper/OssWrapper.java b/blade-ops/blade-resource/src/main/java/org/springblade/resource/wrapper/OssWrapper.java index fdd6c744..838bb04f 100644 --- a/blade-ops/blade-resource/src/main/java/org/springblade/resource/wrapper/OssWrapper.java +++ b/blade-ops/blade-resource/src/main/java/org/springblade/resource/wrapper/OssWrapper.java @@ -19,7 +19,7 @@ package org.springblade.resource.wrapper; import org.springblade.core.mp.support.BaseEntityWrapper; import org.springblade.core.tool.utils.BeanUtil; import org.springblade.resource.entity.Oss; -import org.springblade.resource.entity.OssVO; +import org.springblade.resource.vo.OssVO; import org.springblade.system.cache.DictCache; import java.util.Objects; diff --git a/blade-ops/blade-resource/src/main/java/org/springblade/resource/wrapper/SmsWrapper.java b/blade-ops/blade-resource/src/main/java/org/springblade/resource/wrapper/SmsWrapper.java new file mode 100644 index 00000000..b6b55c55 --- /dev/null +++ b/blade-ops/blade-resource/src/main/java/org/springblade/resource/wrapper/SmsWrapper.java @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2018-2028, Chill Zhuang All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * + * Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * Neither the name of the dreamlu.net developer nor the names of its + * contributors may be used to endorse or promote products derived from + * this software without specific prior written permission. + * Author: Chill 庄骞 (smallchill@163.com) + */ +package org.springblade.resource.wrapper; + +import org.springblade.core.mp.support.BaseEntityWrapper; +import org.springblade.core.tool.utils.BeanUtil; +import org.springblade.resource.entity.Sms; +import org.springblade.resource.vo.SmsVO; +import org.springblade.system.cache.DictCache; + +import java.util.Objects; + +/** + * 短信配置表包装类,返回视图层所需的字段 + * + * @author BladeX + * @since 2020-02-20 + */ +public class SmsWrapper extends BaseEntityWrapper { + + public static SmsWrapper build() { + return new SmsWrapper(); + } + + @Override + public SmsVO entityVO(Sms sms) { + SmsVO smsVO = Objects.requireNonNull(BeanUtil.copy(sms, SmsVO.class)); + String categoryName = DictCache.getValue("sms", sms.getCategory()); + String statusName = DictCache.getValue("yes_no", sms.getStatus()); + smsVO.setCategoryName(categoryName); + smsVO.setStatusName(statusName); + return smsVO; + } + +} diff --git a/doc/sql/mysql/bladex-saber-mysql.sql b/doc/sql/mysql/bladex-saber-mysql.sql index 107fd357..66e0158e 100644 --- a/doc/sql/mysql/bladex-saber-mysql.sql +++ b/doc/sql/mysql/bladex-saber-mysql.sql @@ -11,7 +11,7 @@ Target Server Version : 50723 File Encoding : 65001 - Date: 02/01/2020 13:51:56 + Date: 22/02/2020 00:44:35 */ SET NAMES utf8mb4; @@ -154,7 +154,7 @@ CREATE TABLE `blade_dict` ( -- Records of blade_dict -- ---------------------------- BEGIN; -INSERT INTO `blade_dict` VALUES (1123598814738675201, 0, 'sex', '-1', '性别', 1, NULL, 0, 0), (1123598814738675202, 1123598814738675201, 'sex', '1', '男', 1, NULL, 0, 0), (1123598814738675203, 1123598814738675201, 'sex', '2', '女', 2, NULL, 0, 0), (1123598814738675204, 0, 'notice', '-1', '通知类型', 2, NULL, 0, 0), (1123598814738675205, 1123598814738675204, 'notice', '1', '发布通知', 1, NULL, 0, 0), (1123598814738675206, 1123598814738675204, 'notice', '2', '批转通知', 2, NULL, 0, 0), (1123598814738675207, 1123598814738675204, 'notice', '3', '转发通知', 3, NULL, 0, 0), (1123598814738675208, 1123598814738675204, 'notice', '4', '指示通知', 4, NULL, 0, 0), (1123598814738675209, 1123598814738675204, 'notice', '5', '任免通知', 5, NULL, 0, 0), (1123598814738675210, 1123598814738675204, 'notice', '6', '事务通知', 6, NULL, 0, 0), (1123598814738675211, 0, 'menu_category', '-1', '菜单类型', 3, NULL, 0, 0), (1123598814738675212, 1123598814738675211, 'menu_category', '1', '菜单', 1, NULL, 0, 0), (1123598814738675213, 1123598814738675211, 'menu_category', '2', '按钮', 2, NULL, 0, 0), (1123598814738675214, 0, 'button_func', '-1', '按钮功能', 4, NULL, 0, 0), (1123598814738675215, 1123598814738675214, 'button_func', '1', '工具栏', 1, NULL, 0, 0), (1123598814738675216, 1123598814738675214, 'button_func', '2', '操作栏', 2, NULL, 0, 0), (1123598814738675217, 1123598814738675214, 'button_func', '3', '工具操作栏', 3, NULL, 0, 0), (1123598814738675218, 0, 'yes_no', '-1', '是否', 5, NULL, 0, 0), (1123598814738675219, 1123598814738675218, 'yes_no', '1', '否', 1, NULL, 0, 0), (1123598814738675220, 1123598814738675218, 'yes_no', '2', '是', 2, NULL, 0, 0), (1123598814738675221, 0, 'flow', '-1', '流程类型', 5, NULL, 0, 0), (1123598814738675222, 1123598814738675221, 'flow', '1', '请假流程', 1, 'leave', 0, 0), (1123598814738675223, 1123598814738675221, 'flow', '2', '报销流程', 2, 'expense', 0, 0), (1123598814738675227, 0, 'org_category', '-1', '机构类型', 7, NULL, 0, 0), (1123598814738675228, 1123598814738675227, 'org_category', '1', '公司', 1, NULL, 0, 0), (1123598814738675229, 1123598814738675227, 'org_category', '2', '部门', 2, NULL, 0, 0), (1123598814738675230, 1123598814738675227, 'org_category', '3', '小组', 3, NULL, 0, 0), (1123598814738675231, 0, 'data_scope_type', '-1', '数据权限', 8, NULL, 0, 0), (1123598814738675232, 1123598814738675231, 'data_scope_type', '1', '全部可见', 1, NULL, 0, 0), (1123598814738675233, 1123598814738675231, 'data_scope_type', '2', '本人可见', 2, NULL, 0, 0), (1123598814738675234, 1123598814738675231, 'data_scope_type', '3', '所在机构可见', 3, NULL, 0, 0), (1123598814738675235, 1123598814738675231, 'data_scope_type', '4', '所在机构及子级可见', 4, NULL, 0, 0), (1123598814738675236, 1123598814738675231, 'data_scope_type', '5', '自定义', 5, NULL, 0, 0), (1123598814738675237, 0, 'api_scope_type', '-1', '接口权限', 10, NULL, 0, 0), (1123598814738675238, 1123598814738675237, 'api_scope_type', '1', '系统接口', 1, NULL, 0, 0), (1123598814738675239, 1123598814738675237, 'api_scope_type', '2', '业务接口', 2, NULL, 0, 0), (1123598814738675240, 0, 'scope_category', '-1', '权限类型', 10, NULL, 0, 0), (1123598814738675241, 1123598814738675240, 'scope_category', '1', '数据权限', 1, NULL, 0, 0), (1123598814738675242, 1123598814738675240, 'scope_category', '2', '接口权限', 2, NULL, 0, 0), (1123598814738676224, 0, 'oss', '-1', '对象存储类型', 6, NULL, 0, 0), (1123598814738676225, 1123598814738676224, 'oss', '1', 'minio', 1, NULL, 0, 0), (1123598814738676226, 1123598814738676224, 'oss', '2', 'qiniu', 2, NULL, 0, 0), (1123598814738676227, 1123598814738676224, 'oss', '3', 'ali', 3, NULL, 0, 0), (1123598814738676228, 1123598814738676224, 'oss', '4', 'tencent', 4, NULL, 0, 0); +INSERT INTO `blade_dict` VALUES (1123598814738675201, 0, 'sex', '-1', '性别', 1, NULL, 0, 0), (1123598814738675202, 1123598814738675201, 'sex', '1', '男', 1, NULL, 0, 0), (1123598814738675203, 1123598814738675201, 'sex', '2', '女', 2, NULL, 0, 0), (1123598814738675204, 0, 'notice', '-1', '通知类型', 2, NULL, 0, 0), (1123598814738675205, 1123598814738675204, 'notice', '1', '发布通知', 1, NULL, 0, 0), (1123598814738675206, 1123598814738675204, 'notice', '2', '批转通知', 2, NULL, 0, 0), (1123598814738675207, 1123598814738675204, 'notice', '3', '转发通知', 3, NULL, 0, 0), (1123598814738675208, 1123598814738675204, 'notice', '4', '指示通知', 4, NULL, 0, 0), (1123598814738675209, 1123598814738675204, 'notice', '5', '任免通知', 5, NULL, 0, 0), (1123598814738675210, 1123598814738675204, 'notice', '6', '事务通知', 6, NULL, 0, 0), (1123598814738675211, 0, 'menu_category', '-1', '菜单类型', 3, NULL, 0, 0), (1123598814738675212, 1123598814738675211, 'menu_category', '1', '菜单', 1, NULL, 0, 0), (1123598814738675213, 1123598814738675211, 'menu_category', '2', '按钮', 2, NULL, 0, 0), (1123598814738675214, 0, 'button_func', '-1', '按钮功能', 4, NULL, 0, 0), (1123598814738675215, 1123598814738675214, 'button_func', '1', '工具栏', 1, NULL, 0, 0), (1123598814738675216, 1123598814738675214, 'button_func', '2', '操作栏', 2, NULL, 0, 0), (1123598814738675217, 1123598814738675214, 'button_func', '3', '工具操作栏', 3, NULL, 0, 0), (1123598814738675218, 0, 'yes_no', '-1', '是否', 5, NULL, 0, 0), (1123598814738675219, 1123598814738675218, 'yes_no', '1', '否', 1, NULL, 0, 0), (1123598814738675220, 1123598814738675218, 'yes_no', '2', '是', 2, NULL, 0, 0), (1123598814738675221, 0, 'flow', '-1', '流程类型', 5, NULL, 0, 0), (1123598814738675222, 1123598814738675221, 'flow', '1', '请假流程', 1, 'leave', 0, 0), (1123598814738675223, 1123598814738675221, 'flow', '2', '报销流程', 2, 'expense', 0, 0), (1123598814738675227, 0, 'org_category', '-1', '机构类型', 7, NULL, 0, 0), (1123598814738675228, 1123598814738675227, 'org_category', '1', '公司', 1, NULL, 0, 0), (1123598814738675229, 1123598814738675227, 'org_category', '2', '部门', 2, NULL, 0, 0), (1123598814738675230, 1123598814738675227, 'org_category', '3', '小组', 3, NULL, 0, 0), (1123598814738675231, 0, 'data_scope_type', '-1', '数据权限', 8, NULL, 0, 0), (1123598814738675232, 1123598814738675231, 'data_scope_type', '1', '全部可见', 1, NULL, 0, 0), (1123598814738675233, 1123598814738675231, 'data_scope_type', '2', '本人可见', 2, NULL, 0, 0), (1123598814738675234, 1123598814738675231, 'data_scope_type', '3', '所在机构可见', 3, NULL, 0, 0), (1123598814738675235, 1123598814738675231, 'data_scope_type', '4', '所在机构及子级可见', 4, NULL, 0, 0), (1123598814738675236, 1123598814738675231, 'data_scope_type', '5', '自定义', 5, NULL, 0, 0), (1123598814738675237, 0, 'api_scope_type', '-1', '接口权限', 10, NULL, 0, 0), (1123598814738675238, 1123598814738675237, 'api_scope_type', '1', '系统接口', 1, NULL, 0, 0), (1123598814738675239, 1123598814738675237, 'api_scope_type', '2', '业务接口', 2, NULL, 0, 0), (1123598814738675240, 0, 'scope_category', '-1', '权限类型', 10, NULL, 0, 0), (1123598814738675241, 1123598814738675240, 'scope_category', '1', '数据权限', 1, NULL, 0, 0), (1123598814738675242, 1123598814738675240, 'scope_category', '2', '接口权限', 2, NULL, 0, 0), (1123598814738676224, 0, 'oss', '-1', '对象存储类型', 6, NULL, 0, 0), (1123598814738676225, 1123598814738676224, 'oss', '1', 'minio', 1, NULL, 0, 0), (1123598814738676226, 1123598814738676224, 'oss', '2', '七牛云', 2, NULL, 0, 0), (1123598814738676227, 1123598814738676224, 'oss', '3', '阿里云', 3, NULL, 0, 0), (1123598814738676228, 1123598814738676224, 'oss', '4', '腾讯云', 4, NULL, 0, 0), (1123598814738677220, 0, 'sms', '-1', '短信服务类型', 11, NULL, 0, 0), (1123598814738677221, 1123598814738677220, 'sms', '1', '云片', 1, NULL, 0, 0), (1123598814738677222, 1123598814738677220, 'sms', '2', '七牛云', 2, NULL, 0, 0), (1123598814738677223, 1123598814738677220, 'sms', '3', '阿里云', 3, NULL, 0, 0), (1123598814738677224, 1123598814738677220, 'sms', '4', '腾讯云', 4, NULL, 0, 0); COMMIT; -- ---------------------------- @@ -280,7 +280,7 @@ CREATE TABLE `blade_menu` ( -- Records of blade_menu -- ---------------------------- BEGIN; -INSERT INTO `blade_menu` VALUES (1123598815738675201, 0, 'desk', '工作台', 'menu', '/desk', 'iconfont iconicon_airplay', 1, 1, 0, 1, NULL, 0), (1123598815738675202, 1123598815738675201, 'notice', '通知公告', 'menu', '/desk/notice', 'iconfont iconicon_sms', 1, 1, 0, 1, NULL, 0), (1123598815738675203, 0, 'system', '系统管理', 'menu', '/system', 'iconfont iconicon_setting', 99, 1, 0, 1, NULL, 0), (1123598815738675204, 1123598815738675203, 'user', '用户管理', 'menu', '/system/user', 'iconfont iconicon_principal', 1, 1, 0, 1, NULL, 0), (1123598815738675205, 1123598815738675203, 'dept', '机构管理', 'menu', '/system/dept', 'iconfont iconicon_group', 2, 1, 0, 1, NULL, 0), (1123598815738675206, 1123598815738675203, 'dict', '系统字典', 'menu', '/system/dict', 'iconfont iconicon_addresslist', 3, 1, 0, 1, NULL, 0), (1123598815738675207, 1123598815738675203, 'menu', '菜单管理', 'menu', '/system/menu', 'iconfont iconicon_subordinate', 4, 1, 0, 1, NULL, 0), (1123598815738675208, 1123598815738675203, 'topmenu', '顶部菜单', 'menu', '/system/topmenu', 'iconfont icon-canshu', 5, 1, 0, 1, NULL, 0), (1123598815738675209, 1123598815738675203, 'param', '参数管理', 'menu', '/system/param', 'iconfont iconicon_community_line', 6, 1, 0, 1, NULL, 0), (1123598815738675210, 0, 'monitor', '系统监控', 'menu', '/monitor', 'iconfont icon-yanzhengma', 3, 1, 0, 1, NULL, 0), (1123598815738675211, 1123598815738675210, 'doc', '接口文档', 'menu', 'http://localhost/doc.html', 'iconfont iconicon_study', 1, 1, 0, 2, NULL, 0), (1123598815738675212, 1123598815738675210, 'admin', '服务治理', 'menu', 'http://localhost:7002', 'iconfont icon-canshu', 2, 1, 0, 2, NULL, 0), (1123598815738675213, 1123598815738675210, 'log', '日志管理', 'menu', '/monitor/log', 'iconfont iconicon_doc', 8, 1, 0, 1, NULL, 0), (1123598815738675214, 1123598815738675213, 'log_usual', '通用日志', 'menu', '/monitor/log/usual', NULL, 1, 1, 0, 1, NULL, 0), (1123598815738675215, 1123598815738675213, 'log_api', '接口日志', 'menu', '/monitor/log/api', NULL, 2, 1, 0, 1, NULL, 0), (1123598815738675216, 1123598815738675213, 'log_error', '错误日志', 'menu', '/monitor/log/error', NULL, 3, 1, 0, 1, NULL, 0), (1123598815738675217, 0, 'tool', '研发工具', 'menu', '/tool', 'iconfont icon-wxbgongju', 4, 1, 0, 1, NULL, 0), (1123598815738675218, 1123598815738675217, 'code', '代码生成', 'menu', '/tool/code', 'iconfont iconicon_savememo', 1, 1, 0, 1, NULL, 0), (1123598815738675219, 1123598815738675202, 'notice_add', '新增', 'add', '/desk/notice/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675220, 1123598815738675202, 'notice_edit', '修改', 'edit', '/desk/notice/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675221, 1123598815738675202, 'notice_delete', '删除', 'delete', '/api/blade-desk/notice/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675222, 1123598815738675202, 'notice_view', '查看', 'view', '/desk/notice/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675223, 1123598815738675204, 'user_add', '新增', 'add', '/system/user/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675224, 1123598815738675204, 'user_edit', '修改', 'edit', '/system/user/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675225, 1123598815738675204, 'user_delete', '删除', 'delete', '/api/blade-user/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675226, 1123598815738675204, 'user_role', '角色配置', 'role', NULL, 'user-add', 4, 2, 1, 1, NULL, 0), (1123598815738675227, 1123598815738675204, 'user_reset', '密码重置', 'reset-password', '/api/blade-user/reset-password', 'retweet', 5, 2, 1, 1, NULL, 0), (1123598815738675228, 1123598815738675204, 'user_view', '查看', 'view', '/system/user/view', 'file-text', 6, 2, 2, 1, NULL, 0), (1123598815738675229, 1123598815738675205, 'dept_add', '新增', 'add', '/system/dept/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675230, 1123598815738675205, 'dept_edit', '修改', 'edit', '/system/dept/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675231, 1123598815738675205, 'dept_delete', '删除', 'delete', '/api/blade-system/dept/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675232, 1123598815738675205, 'dept_view', '查看', 'view', '/system/dept/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675233, 1123598815738675206, 'dict_add', '新增', 'add', '/system/dict/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675234, 1123598815738675206, 'dict_edit', '修改', 'edit', '/system/dict/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675235, 1123598815738675206, 'dict_delete', '删除', 'delete', '/api/blade-system/dict/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675236, 1123598815738675206, 'dict_view', '查看', 'view', '/system/dict/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675237, 1123598815738675207, 'menu_add', '新增', 'add', '/system/menu/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675238, 1123598815738675207, 'menu_edit', '修改', 'edit', '/system/menu/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675239, 1123598815738675207, 'menu_delete', '删除', 'delete', '/api/blade-system/menu/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675240, 1123598815738675207, 'menu_view', '查看', 'view', '/system/menu/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675241, 1123598815738675308, 'role_add', '新增', 'add', '/authority/role/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675242, 1123598815738675308, 'role_edit', '修改', 'edit', '/authority/role/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675243, 1123598815738675308, 'role_delete', '删除', 'delete', '/api/blade-system/role/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675244, 1123598815738675308, 'role_view', '查看', 'view', '/authority/role/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675245, 1123598815738675209, 'param_add', '新增', 'add', '/system/param/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675246, 1123598815738675209, 'param_edit', '修改', 'edit', '/system/param/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675247, 1123598815738675209, 'param_delete', '删除', 'delete', '/api/blade-system/param/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675248, 1123598815738675209, 'param_view', '查看', 'view', '/system/param/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675249, 1123598815738675214, 'log_usual_view', '查看', 'view', '/monitor/log/usual/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675250, 1123598815738675215, 'log_api_view', '查看', 'view', '/monitor/log/api/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675251, 1123598815738675216, 'log_error_view', '查看', 'view', '/monitor/log/error/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675252, 1123598815738675218, 'code_add', '新增', 'add', '/tool/code/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675253, 1123598815738675218, 'code_edit', '修改', 'edit', '/tool/code/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675254, 1123598815738675218, 'code_delete', '删除', 'delete', '/api/blade-system/code/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675255, 1123598815738675218, 'code_view', '查看', 'view', '/tool/code/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675256, 1123598815738675203, 'tenant', '租户管理', 'menu', '/system/tenant', 'iconfont icon-quanxian', 7, 1, 0, 1, NULL, 0), (1123598815738675257, 1123598815738675256, 'tenant_add', '新增', 'add', '/system/tenant/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675258, 1123598815738675256, 'tenant_edit', '修改', 'edit', '/system/tenant/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675259, 1123598815738675256, 'tenant_delete', '删除', 'delete', '/api/blade-system/tenant/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675260, 1123598815738675256, 'tenant_view', '查看', 'view', '/system/tenant/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675261, 1123598815738675203, 'client', '应用管理', 'menu', '/system/client', 'iconfont iconicon_mobilephone', 8, 1, 0, 1, NULL, 0), (1123598815738675262, 1123598815738675261, 'client_add', '新增', 'add', '/system/client/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675263, 1123598815738675261, 'client_edit', '修改', 'edit', '/system/client/edit', 'form', 2, 2, 2, 2, NULL, 0), (1123598815738675264, 1123598815738675261, 'client_delete', '删除', 'delete', '/api/blade-system/client/remove', 'delete', 3, 2, 3, 3, NULL, 0), (1123598815738675265, 1123598815738675261, 'client_view', '查看', 'view', '/system/client/view', 'file-text', 4, 2, 2, 2, NULL, 0), (1123598815738675266, 0, 'flow', '流程管理', 'menu', '/flow', 'iconfont iconicon_send', 5, 1, 0, 1, '', 0), (1123598815738675267, 1123598815738675266, 'flow_model', '模型管理', 'menu', '/flow/model', 'iconfont iconicon_discovery', 1, 1, 0, 1, '', 0), (1123598815738675268, 1123598815738675267, 'flow_model_create', '创建', 'create', '', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675269, 1123598815738675267, 'flow_model_update', '编辑', 'update', '', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675270, 1123598815738675267, 'flow_model_deploy', '部署', 'deploy', '', 'cloud-upload', 3, 2, 2, 1, NULL, 0), (1123598815738675271, 1123598815738675267, 'flow_model_download', '下载', 'download', '', 'download', 4, 2, 2, 1, NULL, 0), (1123598815738675272, 1123598815738675267, 'flow_model_delete', '删除', 'delete', '/api/blade-flow/model/remove', 'delete', 5, 2, 3, 1, NULL, 0), (1123598815738675273, 1123598815738675266, 'flow_deploy', '流程部署', 'menu', '/flow/deploy', 'iconfont iconicon_cspace', 2, 1, 0, 1, '', 0), (1123598815738675274, 1123598815738675266, 'flow_manager', '流程管理', 'menu', '/flow/manager', 'iconfont iconicon_cloud_history', 3, 1, 0, 1, '', 0), (1123598815738675275, 1123598815738675274, 'flow_manager_state', '变更状态', 'state', '', 'plus', 1, 2, 2, 1, NULL, 0), (1123598815738675276, 1123598815738675274, 'flow_manager_image', '流程图', 'image', '', 'image', 2, 2, 2, 1, NULL, 0), (1123598815738675277, 1123598815738675274, 'flow_manager_remove', '删除', 'remove', '', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675278, 1123598815738675266, 'flow_follow', '流程跟踪', 'menu', '/flow/follow', 'iconfont iconicon_GPS', 4, 1, 0, 1, '', 0), (1123598815738675279, 1123598815738675278, 'flow_follow_delete', '删除', 'remove', '', 'remove', 1, 2, 2, 1, NULL, 0), (1123598815738675280, 0, 'work', '我的事务', 'menu', '/work', 'iconfont iconicon_notice', 2, 1, 0, 1, '', 0), (1123598815738675281, 1123598815738675280, 'work_start', '发起事务', 'menu', '/work/start', 'iconfont iconicon_compile', 1, 1, 0, 1, '', 0), (1123598815738675282, 1123598815738675281, 'work_start_flow', '发起', 'flow', '', 'flow', 1, 2, 2, 1, NULL, 0), (1123598815738675283, 1123598815738675281, 'work_start_image', '流程图', 'image', '', 'image', 2, 2, 2, 1, NULL, 0), (1123598815738675284, 1123598815738675280, 'work_claim', '待签事务', 'menu', '/work/claim', 'iconfont iconicon_ding', 2, 1, 0, 1, '', 0), (1123598815738675285, 1123598815738675284, 'work_claim_sign', '签收', 'sign', '', 'sign', 1, 2, 2, 1, NULL, 0), (1123598815738675286, 1123598815738675284, 'work_claim_detail', '详情', 'detail', '', 'detail', 2, 2, 2, 1, NULL, 0), (1123598815738675287, 1123598815738675284, 'work_claim_follow', '跟踪', 'follow', '', 'follow', 3, 2, 2, 1, NULL, 0), (1123598815738675288, 1123598815738675280, 'work_todo', '待办事务', 'menu', '/work/todo', 'iconfont iconicon_savememo', 2, 1, 0, 1, '', 0), (1123598815738675289, 1123598815738675288, 'work_todo_handle', '办理', 'handle', '', 'handle', 1, 2, 2, 1, NULL, 0), (1123598815738675290, 1123598815738675288, 'work_todo_detail', '详情', 'detail', '', 'detail', 2, 2, 2, 1, NULL, 0), (1123598815738675291, 1123598815738675288, 'work_todo_follow', '跟踪', 'follow', '', 'follow', 3, 2, 2, 1, NULL, 0), (1123598815738675292, 1123598815738675280, 'work_send', '已发事务', 'menu', '/work/send', 'iconfont iconicon_doc', 3, 1, 0, 1, '', 0), (1123598815738675293, 1123598815738675292, 'work_send_detail', '详情', 'detail', '', 'detail', 1, 2, 2, 1, NULL, 0), (1123598815738675294, 1123598815738675292, 'work_send_follow', '跟踪', 'follow', '', 'follow', 2, 2, 2, 1, NULL, 0), (1123598815738675295, 1123598815738675280, 'work_done', '办结事务', 'menu', '/work/done', 'iconfont iconicon_dispose', 4, 1, 0, 1, '', 0), (1123598815738675296, 1123598815738675295, 'work_done_detail', '详情', 'detail', '', 'detail', 1, 2, 2, 1, NULL, 0), (1123598815738675297, 1123598815738675295, 'work_done_follow', '跟踪', 'follow', '', 'follow', 2, 2, 2, 1, NULL, 0), (1123598815738675298, 0, 'resource', '资源管理', 'menu', '/resource', 'iconfont iconicon_coinpurse_line', 6, 1, 0, 1, '', 0), (1123598815738675299, 1123598815738675298, 'oss', '对象存储', 'menu', '/resource/oss', 'iconfont iconicon_subordinate', 1, 1, 0, 1, '', 0), (1123598815738675301, 1123598815738675299, 'oss_add', '新增', 'add', '/resource/oss/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675302, 1123598815738675299, 'oss_edit', '修改', 'edit', '/resource/oss/edit', 'form', 2, 2, 2, 2, NULL, 0), (1123598815738675303, 1123598815738675299, 'oss_delete', '删除', 'delete', '/api/blade-resource/oss/remove', 'delete', 3, 2, 3, 3, NULL, 0), (1123598815738675304, 1123598815738675299, 'oss_view', '查看', 'view', '/resource/oss/view', 'file-text', 4, 2, 2, 2, NULL, 0), (1123598815738675305, 1123598815738675299, 'oss_enable', '启用', 'enable', '/api/blade-resource/oss/enable', 'key', 5, 2, 2, 2, NULL, 0), (1123598815738675307, 0, 'authority', '权限管理', 'menu', '/authority', 'iconfont icon-bofangqi-suoping', 98, 1, 0, 1, '', 0), (1123598815738675308, 1123598815738675307, 'role', '角色管理', 'menu', '/authority/role', 'iconfont iconicon_boss', 1, 1, 0, 1, NULL, 0), (1123598815738675309, 1123598815738675307, 'data_scope', '数据权限', 'menu', '/authority/datascope', 'iconfont icon-shujuzhanshi2', 2, 1, 0, 1, '', 0), (1123598815738675310, 1123598815738675309, 'data_scope_setting', '权限配置', 'setting', NULL, 'setting', 1, 2, 2, 1, NULL, 0), (1123598815738675311, 1123598815738675307, 'api_scope', '接口权限', 'menu', '/authority/apiscope', 'iconfont icon-iconset0216', 3, 1, 0, 1, '', 0), (1123598815738675312, 1123598815738675311, 'api_scope_setting', '权限配置', 'setting', NULL, 'setting', 1, 2, 2, 1, NULL, 0), (1123598815738675313, 1123598815738675208, 'topmenu_add', '新增', 'add', '/system/topmenu/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675314, 1123598815738675208, 'topmenu_edit', '修改', 'edit', '/system/topmenu/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675315, 1123598815738675208, 'topmenu_delete', '删除', 'delete', '/api/blade-system/topmenu/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675316, 1123598815738675208, 'topmenu_view', '查看', 'view', '/system/topmenu/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675317, 1123598815738675208, 'topmenu_setting', '菜单配置', 'setting', NULL, 'setting', 5, 2, 1, 1, NULL, 0), (1161272593873321991, 1123598815738675217, 'datasource', '数据源管理', 'menu', '/tool/datasource', 'iconfont icon-caidanguanli', 2, 1, 0, 1, NULL, 0), (1161272593873321992, 1161272593873321991, 'datasource_add', '新增', 'add', '/tool/datasource/add', 'plus', 1, 2, 1, 1, NULL, 0), (1161272593873321993, 1161272593873321991, 'datasource_edit', '修改', 'edit', '/tool/datasource/edit', 'form', 2, 2, 2, 2, NULL, 0), (1161272593873321994, 1161272593873321991, 'datasource_delete', '删除', 'delete', '/api/blade-develop/datasource/remove', 'delete', 3, 2, 3, 3, NULL, 0), (1161272593873321995, 1161272593873321991, 'datasource_view', '查看', 'view', '/tool/datasource/view', 'file-text', 4, 2, 2, 2, NULL, 0), (1164733121140551682, 1123598815738675217, 'form', '表单设计', 'form', 'https://form.avuejs.com/', 'iconfont iconicon_compile', 3, 1, 0, 2, '', 0), (1164733349637844993, 1123598815738675217, 'crud', '表格设计', 'crud', 'https://crud.avuejs.com/', 'iconfont iconicon_work', 4, 1, 0, 2, '', 0), (1164733369658963251, 1123598815738675210, 'elk', 'ELK监控', 'menu', 'http://localhost:5601/', 'iconfont iconicon_cspace', 3, 1, 0, 2, '', 0), (1164733369658963252, 1123598815738675210, 'zipkin', 'Zipkin监控', 'menu', 'http://localhost:9411/', 'iconfont iconicon_task', 4, 1, 0, 2, '', 0), (1164733369658963253, 1123598815738675210, 'turbine', 'Turbine监控', 'menu', 'http://localhost:7003/hystrix', 'iconfont iconicon_subordinate', 5, 1, 0, 2, '', 0), (1164733369658963254, 1123598815738675210, 'sentinel', 'Sentinel管理', 'menu', 'http://localhost:8858', 'iconfont iconicon_safety', 6, 1, 0, 2, '', 0), (1164733369658963255, 1123598815738675210, 'es', 'Elasticsearch管理', 'menu', 'http://localhost:9100/', 'iconfont iconfont iconicon_search', 7, 1, 0, 2, '', 0), (1164733379658963251, 1123598815738675203, 'dictbiz', '业务字典', 'menu', '/system/dictbiz', 'iconfont iconicon_study', 3, 1, 0, 1, '', 0), (1164733379658963252, 1164733379658963251, 'dictbiz_add', '新增', 'add', '/system/dictbiz/add', 'plus', 1, 2, 1, 1, '', 0), (1164733379658963253, 1164733379658963251, 'dictbiz_edit', '修改', 'edit', '/system/dictbiz/edit', 'form', 2, 2, 2, 1, '', 0), (1164733379658963254, 1164733379658963251, 'dictbiz_delete', '删除', 'delete', '/api/blade-system/dict-biz/remove', 'delete', 3, 2, 3, 1, '', 0), (1164733379658963255, 1164733379658963251, 'dictbiz_view', '查看', 'view', '/system/dictbiz/view', 'file-text', 4, 2, 2, 1, '', 0), (1164733389658963251, 1123598815738675298, 'xxljob', '任务调度', 'menu', 'http://localhost:7009/xxl-job-admin', 'iconfont iconicon_cspace', 2, 1, 0, 2, '', 0); +INSERT INTO `blade_menu` VALUES (1123598815738675201, 0, 'desk', '工作台', 'menu', '/desk', 'iconfont iconicon_airplay', 1, 1, 0, 1, NULL, 0), (1123598815738675202, 1123598815738675201, 'notice', '通知公告', 'menu', '/desk/notice', 'iconfont iconicon_sms', 1, 1, 0, 1, NULL, 0), (1123598815738675203, 0, 'system', '系统管理', 'menu', '/system', 'iconfont iconicon_setting', 99, 1, 0, 1, NULL, 0), (1123598815738675204, 1123598815738675203, 'user', '用户管理', 'menu', '/system/user', 'iconfont iconicon_principal', 1, 1, 0, 1, NULL, 0), (1123598815738675205, 1123598815738675203, 'dept', '机构管理', 'menu', '/system/dept', 'iconfont iconicon_group', 2, 1, 0, 1, NULL, 0), (1123598815738675206, 1123598815738675203, 'dict', '系统字典', 'menu', '/system/dict', 'iconfont iconicon_addresslist', 3, 1, 0, 1, NULL, 0), (1123598815738675207, 1123598815738675203, 'menu', '菜单管理', 'menu', '/system/menu', 'iconfont iconicon_subordinate', 4, 1, 0, 1, NULL, 0), (1123598815738675208, 1123598815738675203, 'topmenu', '顶部菜单', 'menu', '/system/topmenu', 'iconfont icon-canshu', 5, 1, 0, 1, NULL, 0), (1123598815738675209, 1123598815738675203, 'param', '参数管理', 'menu', '/system/param', 'iconfont iconicon_community_line', 6, 1, 0, 1, NULL, 0), (1123598815738675210, 0, 'monitor', '系统监控', 'menu', '/monitor', 'iconfont icon-yanzhengma', 3, 1, 0, 1, NULL, 0), (1123598815738675211, 1123598815738675210, 'doc', '接口文档', 'menu', 'http://localhost/doc.html', 'iconfont iconicon_study', 1, 1, 0, 2, NULL, 0), (1123598815738675212, 1123598815738675210, 'admin', '服务治理', 'menu', 'http://localhost:7002', 'iconfont icon-canshu', 2, 1, 0, 2, NULL, 0), (1123598815738675213, 1123598815738675210, 'log', '日志管理', 'menu', '/monitor/log', 'iconfont iconicon_doc', 8, 1, 0, 1, NULL, 0), (1123598815738675214, 1123598815738675213, 'log_usual', '通用日志', 'menu', '/monitor/log/usual', NULL, 1, 1, 0, 1, NULL, 0), (1123598815738675215, 1123598815738675213, 'log_api', '接口日志', 'menu', '/monitor/log/api', NULL, 2, 1, 0, 1, NULL, 0), (1123598815738675216, 1123598815738675213, 'log_error', '错误日志', 'menu', '/monitor/log/error', NULL, 3, 1, 0, 1, NULL, 0), (1123598815738675217, 0, 'tool', '研发工具', 'menu', '/tool', 'iconfont icon-wxbgongju', 4, 1, 0, 1, NULL, 0), (1123598815738675218, 1123598815738675217, 'code', '代码生成', 'menu', '/tool/code', 'iconfont iconicon_savememo', 1, 1, 0, 1, NULL, 0), (1123598815738675219, 1123598815738675202, 'notice_add', '新增', 'add', '/desk/notice/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675220, 1123598815738675202, 'notice_edit', '修改', 'edit', '/desk/notice/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675221, 1123598815738675202, 'notice_delete', '删除', 'delete', '/api/blade-desk/notice/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675222, 1123598815738675202, 'notice_view', '查看', 'view', '/desk/notice/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675223, 1123598815738675204, 'user_add', '新增', 'add', '/system/user/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675224, 1123598815738675204, 'user_edit', '修改', 'edit', '/system/user/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675225, 1123598815738675204, 'user_delete', '删除', 'delete', '/api/blade-user/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675226, 1123598815738675204, 'user_role', '角色配置', 'role', NULL, 'user-add', 4, 2, 1, 1, NULL, 0), (1123598815738675227, 1123598815738675204, 'user_reset', '密码重置', 'reset-password', '/api/blade-user/reset-password', 'retweet', 5, 2, 1, 1, NULL, 0), (1123598815738675228, 1123598815738675204, 'user_view', '查看', 'view', '/system/user/view', 'file-text', 6, 2, 2, 1, NULL, 0), (1123598815738675229, 1123598815738675205, 'dept_add', '新增', 'add', '/system/dept/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675230, 1123598815738675205, 'dept_edit', '修改', 'edit', '/system/dept/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675231, 1123598815738675205, 'dept_delete', '删除', 'delete', '/api/blade-system/dept/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675232, 1123598815738675205, 'dept_view', '查看', 'view', '/system/dept/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675233, 1123598815738675206, 'dict_add', '新增', 'add', '/system/dict/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675234, 1123598815738675206, 'dict_edit', '修改', 'edit', '/system/dict/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675235, 1123598815738675206, 'dict_delete', '删除', 'delete', '/api/blade-system/dict/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675236, 1123598815738675206, 'dict_view', '查看', 'view', '/system/dict/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675237, 1123598815738675207, 'menu_add', '新增', 'add', '/system/menu/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675238, 1123598815738675207, 'menu_edit', '修改', 'edit', '/system/menu/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675239, 1123598815738675207, 'menu_delete', '删除', 'delete', '/api/blade-system/menu/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675240, 1123598815738675207, 'menu_view', '查看', 'view', '/system/menu/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675241, 1123598815738675308, 'role_add', '新增', 'add', '/authority/role/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675242, 1123598815738675308, 'role_edit', '修改', 'edit', '/authority/role/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675243, 1123598815738675308, 'role_delete', '删除', 'delete', '/api/blade-system/role/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675244, 1123598815738675308, 'role_view', '查看', 'view', '/authority/role/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675245, 1123598815738675209, 'param_add', '新增', 'add', '/system/param/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675246, 1123598815738675209, 'param_edit', '修改', 'edit', '/system/param/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675247, 1123598815738675209, 'param_delete', '删除', 'delete', '/api/blade-system/param/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675248, 1123598815738675209, 'param_view', '查看', 'view', '/system/param/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675249, 1123598815738675214, 'log_usual_view', '查看', 'view', '/monitor/log/usual/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675250, 1123598815738675215, 'log_api_view', '查看', 'view', '/monitor/log/api/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675251, 1123598815738675216, 'log_error_view', '查看', 'view', '/monitor/log/error/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675252, 1123598815738675218, 'code_add', '新增', 'add', '/tool/code/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675253, 1123598815738675218, 'code_edit', '修改', 'edit', '/tool/code/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675254, 1123598815738675218, 'code_delete', '删除', 'delete', '/api/blade-system/code/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675255, 1123598815738675218, 'code_view', '查看', 'view', '/tool/code/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675256, 1123598815738675203, 'tenant', '租户管理', 'menu', '/system/tenant', 'iconfont icon-quanxian', 7, 1, 0, 1, NULL, 0), (1123598815738675257, 1123598815738675256, 'tenant_add', '新增', 'add', '/system/tenant/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675258, 1123598815738675256, 'tenant_edit', '修改', 'edit', '/system/tenant/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675259, 1123598815738675256, 'tenant_delete', '删除', 'delete', '/api/blade-system/tenant/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675260, 1123598815738675256, 'tenant_view', '查看', 'view', '/system/tenant/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675261, 1123598815738675203, 'client', '应用管理', 'menu', '/system/client', 'iconfont iconicon_mobilephone', 8, 1, 0, 1, NULL, 0), (1123598815738675262, 1123598815738675261, 'client_add', '新增', 'add', '/system/client/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675263, 1123598815738675261, 'client_edit', '修改', 'edit', '/system/client/edit', 'form', 2, 2, 2, 2, NULL, 0), (1123598815738675264, 1123598815738675261, 'client_delete', '删除', 'delete', '/api/blade-system/client/remove', 'delete', 3, 2, 3, 3, NULL, 0), (1123598815738675265, 1123598815738675261, 'client_view', '查看', 'view', '/system/client/view', 'file-text', 4, 2, 2, 2, NULL, 0), (1123598815738675266, 0, 'flow', '流程管理', 'menu', '/flow', 'iconfont iconicon_send', 5, 1, 0, 1, '', 0), (1123598815738675267, 1123598815738675266, 'flow_model', '模型管理', 'menu', '/flow/model', 'iconfont iconicon_discovery', 1, 1, 0, 1, '', 0), (1123598815738675268, 1123598815738675267, 'flow_model_create', '创建', 'create', '', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675269, 1123598815738675267, 'flow_model_update', '编辑', 'update', '', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675270, 1123598815738675267, 'flow_model_deploy', '部署', 'deploy', '', 'cloud-upload', 3, 2, 2, 1, NULL, 0), (1123598815738675271, 1123598815738675267, 'flow_model_download', '下载', 'download', '', 'download', 4, 2, 2, 1, NULL, 0), (1123598815738675272, 1123598815738675267, 'flow_model_delete', '删除', 'delete', '/api/blade-flow/model/remove', 'delete', 5, 2, 3, 1, NULL, 0), (1123598815738675273, 1123598815738675266, 'flow_deploy', '流程部署', 'menu', '/flow/deploy', 'iconfont iconicon_cspace', 2, 1, 0, 1, '', 0), (1123598815738675274, 1123598815738675266, 'flow_manager', '流程管理', 'menu', '/flow/manager', 'iconfont iconicon_cloud_history', 3, 1, 0, 1, '', 0), (1123598815738675275, 1123598815738675274, 'flow_manager_state', '变更状态', 'state', '', 'plus', 1, 2, 2, 1, NULL, 0), (1123598815738675276, 1123598815738675274, 'flow_manager_image', '流程图', 'image', '', 'image', 2, 2, 2, 1, NULL, 0), (1123598815738675277, 1123598815738675274, 'flow_manager_remove', '删除', 'remove', '', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675278, 1123598815738675266, 'flow_follow', '流程跟踪', 'menu', '/flow/follow', 'iconfont iconicon_GPS', 4, 1, 0, 1, '', 0), (1123598815738675279, 1123598815738675278, 'flow_follow_delete', '删除', 'remove', '', 'remove', 1, 2, 2, 1, NULL, 0), (1123598815738675280, 0, 'work', '我的事务', 'menu', '/work', 'iconfont iconicon_notice', 2, 1, 0, 1, '', 0), (1123598815738675281, 1123598815738675280, 'work_start', '发起事务', 'menu', '/work/start', 'iconfont iconicon_compile', 1, 1, 0, 1, '', 0), (1123598815738675282, 1123598815738675281, 'work_start_flow', '发起', 'flow', '', 'flow', 1, 2, 2, 1, NULL, 0), (1123598815738675283, 1123598815738675281, 'work_start_image', '流程图', 'image', '', 'image', 2, 2, 2, 1, NULL, 0), (1123598815738675284, 1123598815738675280, 'work_claim', '待签事务', 'menu', '/work/claim', 'iconfont iconicon_ding', 2, 1, 0, 1, '', 0), (1123598815738675285, 1123598815738675284, 'work_claim_sign', '签收', 'sign', '', 'sign', 1, 2, 2, 1, NULL, 0), (1123598815738675286, 1123598815738675284, 'work_claim_detail', '详情', 'detail', '', 'detail', 2, 2, 2, 1, NULL, 0), (1123598815738675287, 1123598815738675284, 'work_claim_follow', '跟踪', 'follow', '', 'follow', 3, 2, 2, 1, NULL, 0), (1123598815738675288, 1123598815738675280, 'work_todo', '待办事务', 'menu', '/work/todo', 'iconfont iconicon_savememo', 2, 1, 0, 1, '', 0), (1123598815738675289, 1123598815738675288, 'work_todo_handle', '办理', 'handle', '', 'handle', 1, 2, 2, 1, NULL, 0), (1123598815738675290, 1123598815738675288, 'work_todo_detail', '详情', 'detail', '', 'detail', 2, 2, 2, 1, NULL, 0), (1123598815738675291, 1123598815738675288, 'work_todo_follow', '跟踪', 'follow', '', 'follow', 3, 2, 2, 1, NULL, 0), (1123598815738675292, 1123598815738675280, 'work_send', '已发事务', 'menu', '/work/send', 'iconfont iconicon_doc', 3, 1, 0, 1, '', 0), (1123598815738675293, 1123598815738675292, 'work_send_detail', '详情', 'detail', '', 'detail', 1, 2, 2, 1, NULL, 0), (1123598815738675294, 1123598815738675292, 'work_send_follow', '跟踪', 'follow', '', 'follow', 2, 2, 2, 1, NULL, 0), (1123598815738675295, 1123598815738675280, 'work_done', '办结事务', 'menu', '/work/done', 'iconfont iconicon_dispose', 4, 1, 0, 1, '', 0), (1123598815738675296, 1123598815738675295, 'work_done_detail', '详情', 'detail', '', 'detail', 1, 2, 2, 1, NULL, 0), (1123598815738675297, 1123598815738675295, 'work_done_follow', '跟踪', 'follow', '', 'follow', 2, 2, 2, 1, NULL, 0), (1123598815738675298, 0, 'resource', '资源管理', 'menu', '/resource', 'iconfont iconicon_coinpurse_line', 6, 1, 0, 1, '', 0), (1123598815738675299, 1123598815738675298, 'oss', '对象存储', 'menu', '/resource/oss', 'iconfont iconicon_subordinate', 1, 1, 0, 1, '', 0), (1123598815738675301, 1123598815738675299, 'oss_add', '新增', 'add', '/resource/oss/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675302, 1123598815738675299, 'oss_edit', '修改', 'edit', '/resource/oss/edit', 'form', 2, 2, 2, 2, NULL, 0), (1123598815738675303, 1123598815738675299, 'oss_delete', '删除', 'delete', '/api/blade-resource/oss/remove', 'delete', 3, 2, 3, 3, NULL, 0), (1123598815738675304, 1123598815738675299, 'oss_view', '查看', 'view', '/resource/oss/view', 'file-text', 4, 2, 2, 2, NULL, 0), (1123598815738675305, 1123598815738675299, 'oss_enable', '启用', 'enable', '/api/blade-resource/oss/enable', 'key', 5, 2, 2, 2, NULL, 0), (1123598815738675307, 0, 'authority', '权限管理', 'menu', '/authority', 'iconfont icon-bofangqi-suoping', 98, 1, 0, 1, '', 0), (1123598815738675308, 1123598815738675307, 'role', '角色管理', 'menu', '/authority/role', 'iconfont iconicon_boss', 1, 1, 0, 1, NULL, 0), (1123598815738675309, 1123598815738675307, 'data_scope', '数据权限', 'menu', '/authority/datascope', 'iconfont icon-shujuzhanshi2', 2, 1, 0, 1, '', 0), (1123598815738675310, 1123598815738675309, 'data_scope_setting', '权限配置', 'setting', NULL, 'setting', 1, 2, 2, 1, NULL, 0), (1123598815738675311, 1123598815738675307, 'api_scope', '接口权限', 'menu', '/authority/apiscope', 'iconfont icon-iconset0216', 3, 1, 0, 1, '', 0), (1123598815738675312, 1123598815738675311, 'api_scope_setting', '权限配置', 'setting', NULL, 'setting', 1, 2, 2, 1, NULL, 0), (1123598815738675313, 1123598815738675208, 'topmenu_add', '新增', 'add', '/system/topmenu/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675314, 1123598815738675208, 'topmenu_edit', '修改', 'edit', '/system/topmenu/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675315, 1123598815738675208, 'topmenu_delete', '删除', 'delete', '/api/blade-system/topmenu/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675316, 1123598815738675208, 'topmenu_view', '查看', 'view', '/system/topmenu/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675317, 1123598815738675208, 'topmenu_setting', '菜单配置', 'setting', NULL, 'setting', 5, 2, 1, 1, NULL, 0), (1161272593873321991, 1123598815738675217, 'datasource', '数据源管理', 'menu', '/tool/datasource', 'iconfont icon-caidanguanli', 2, 1, 0, 1, NULL, 0), (1161272593873321992, 1161272593873321991, 'datasource_add', '新增', 'add', '/tool/datasource/add', 'plus', 1, 2, 1, 1, NULL, 0), (1161272593873321993, 1161272593873321991, 'datasource_edit', '修改', 'edit', '/tool/datasource/edit', 'form', 2, 2, 2, 2, NULL, 0), (1161272593873321994, 1161272593873321991, 'datasource_delete', '删除', 'delete', '/api/blade-develop/datasource/remove', 'delete', 3, 2, 3, 3, NULL, 0), (1161272593873321995, 1161272593873321991, 'datasource_view', '查看', 'view', '/tool/datasource/view', 'file-text', 4, 2, 2, 2, NULL, 0), (1164733121140551682, 1123598815738675217, 'form', '表单设计', 'form', 'https://form.avuejs.com/', 'iconfont iconicon_compile', 3, 1, 0, 2, '', 0), (1164733349637844993, 1123598815738675217, 'crud', '表格设计', 'crud', 'https://crud.avuejs.com/', 'iconfont iconicon_work', 4, 1, 0, 2, '', 0), (1164733369658963251, 1123598815738675210, 'elk', 'ELK监控', 'menu', 'http://localhost:5601/', 'iconfont iconicon_cspace', 3, 1, 0, 2, '', 0), (1164733369658963252, 1123598815738675210, 'zipkin', 'Zipkin监控', 'menu', 'http://localhost:9411/', 'iconfont iconicon_task', 4, 1, 0, 2, '', 0), (1164733369658963253, 1123598815738675210, 'turbine', 'Turbine监控', 'menu', 'http://localhost:7003/hystrix', 'iconfont iconicon_subordinate', 5, 1, 0, 2, '', 0), (1164733369658963254, 1123598815738675210, 'sentinel', 'Sentinel管理', 'menu', 'http://localhost:8858', 'iconfont iconicon_safety', 6, 1, 0, 2, '', 0), (1164733369658963255, 1123598815738675210, 'es', 'Elasticsearch管理', 'menu', 'http://localhost:9100/', 'iconfont iconfont iconicon_search', 7, 1, 0, 2, '', 0), (1164733379658963251, 1123598815738675203, 'dictbiz', '业务字典', 'menu', '/system/dictbiz', 'iconfont iconicon_study', 3, 1, 0, 1, '', 0), (1164733379658963252, 1164733379658963251, 'dictbiz_add', '新增', 'add', '/system/dictbiz/add', 'plus', 1, 2, 1, 1, '', 0), (1164733379658963253, 1164733379658963251, 'dictbiz_edit', '修改', 'edit', '/system/dictbiz/edit', 'form', 2, 2, 2, 1, '', 0), (1164733379658963254, 1164733379658963251, 'dictbiz_delete', '删除', 'delete', '/api/blade-system/dict-biz/remove', 'delete', 3, 2, 3, 1, '', 0), (1164733379658963255, 1164733379658963251, 'dictbiz_view', '查看', 'view', '/system/dictbiz/view', 'file-text', 4, 2, 2, 1, '', 0), (1164733389658962251, 1123598815738675298, 'sms', '短信配置', 'menu', '/resource/sms', 'iconfont iconicon_message', 2, 1, 0, 1, NULL, 0), (1164733389658962252, 1164733389658962251, 'sms_add', '新增', 'add', '/resource/sms/add', 'plus', 1, 2, 1, 1, NULL, 0), (1164733389658962253, 1164733389658962251, 'sms_edit', '修改', 'edit', '/resource/sms/edit', 'form', 2, 2, 2, 1, NULL, 0), (1164733389658962254, 1164733389658962251, 'sms_delete', '删除', 'delete', '/api/blade-resource/sms/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1164733389658962255, 1164733389658962251, 'sms_view', '查看', 'view', '/resource/sms/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1164733389658962256, 1164733389658962251, 'sms_enable', '启用', 'enable', '/api/blade-resource/sms/enable', 'key', 5, 2, 2, 2, NULL, 0), (1164733389658963251, 1123598815738675298, 'xxljob', '任务调度', 'menu', 'http://localhost:7009/xxl-job-admin', 'iconfont iconicon_cspace', 3, 1, 0, 2, '', 0); COMMIT; -- ---------------------------- @@ -341,7 +341,7 @@ CREATE TABLE `blade_oss` ( -- Records of blade_oss -- ---------------------------- BEGIN; -INSERT INTO `blade_oss` VALUES (1132486733992468482, '000000',1, 'minio', 'http://127.0.0.1:9000', 'D99KGE6ZTQXSATTJWU24', 'QyVqGnhIQQE734UYSUFlGOZViE6+ZlDEfUG3NjhJ', 'bladex', '', '', '', 1123598821738675201, 1123598813738675201, '2019-05-26 11:20:52', 1123598821738675201, '2019-05-27 08:34:55', 2, 0), (1132487155981393922, '000000',2, 'qiniu', 'http://ps458elcs.bkt.clouddn.com', 'N_Loh1ngBqcJovwiAJqR91Ifj2vgOWHOf8AwBA_h', 'AuzuA1KHAbkIndCU0dB3Zfii2O3crHNODDmpxHRS', 'bladex', '', '', '', 1123598821738675201, 1123598813738675201, '2019-05-26 11:22:33', 1123598821738675201, '2019-05-26 23:27:56', 1, 0); +INSERT INTO `blade_oss` VALUES (1132486733992468482, '000000', 1, 'minio', 'http://127.0.0.1:9000', 'D99KGE6ZTQXSATTJWU24', 'QyVqGnhIQQE734UYSUFlGOZViE6+ZlDEfUG3NjhJ', 'bladex', '', '', '', 1123598821738675201, 1123598813738675201, '2019-05-26 11:20:52', 1123598821738675201, '2019-05-27 08:34:55', 2, 0), (1132487155981393922, '000000', 2, 'qiniu', 'http://ps458elcs.bkt.clouddn.com', 'N_Loh1ngBqcJovwiAJqR91Ifj2vgOWHOf8AwBA_h', 'AuzuA1KHAbkIndCU0dB3Zfii2O3crHNODDmpxHRS', 'bladex', '', '', '', 1123598821738675201, 1123598813738675201, '2019-05-26 11:22:33', 1123598821738675201, '2019-05-26 23:27:56', 1, 0); COMMIT; -- ---------------------------- @@ -431,7 +431,7 @@ CREATE TABLE `blade_role_menu` ( -- Records of blade_role_menu -- ---------------------------- BEGIN; -INSERT INTO `blade_role_menu` VALUES (1123598817738675363, 1123598815738675201, 1123598816738675202), (1123598817738675364, 1123598815738675202, 1123598816738675202), (1123598817738675365, 1123598815738675219, 1123598816738675202), (1123598817738675366, 1123598815738675220, 1123598816738675202), (1123598817738675367, 1123598815738675221, 1123598816738675202), (1123598817738675368, 1123598815738675222, 1123598816738675202), (1123598817738675369, 1123598815738675280, 1123598816738675202), (1123598817738675370, 1123598815738675281, 1123598816738675202), (1123598817738675371, 1123598815738675282, 1123598816738675202), (1123598817738675372, 1123598815738675283, 1123598816738675202), (1123598817738675373, 1123598815738675284, 1123598816738675202), (1123598817738675374, 1123598815738675285, 1123598816738675202), (1123598817738675375, 1123598815738675286, 1123598816738675202), (1123598817738675376, 1123598815738675287, 1123598816738675202), (1123598817738675377, 1123598815738675288, 1123598816738675202), (1123598817738675378, 1123598815738675289, 1123598816738675202), (1123598817738675379, 1123598815738675290, 1123598816738675202), (1123598817738675380, 1123598815738675291, 1123598816738675202), (1123598817738675381, 1123598815738675292, 1123598816738675202), (1123598817738675382, 1123598815738675293, 1123598816738675202), (1123598817738675383, 1123598815738675294, 1123598816738675202), (1123598817738675384, 1123598815738675295, 1123598816738675202), (1123598817738675385, 1123598815738675296, 1123598816738675202), (1123598817738675386, 1123598815738675297, 1123598816738675202), (1123598817738675387, 1123598815738675201, 1123598816738675203), (1123598817738675388, 1123598815738675202, 1123598816738675203), (1123598817738675389, 1123598815738675219, 1123598816738675203), (1123598817738675390, 1123598815738675220, 1123598816738675203), (1123598817738675391, 1123598815738675221, 1123598816738675203), (1123598817738675392, 1123598815738675222, 1123598816738675203), (1123598817738675393, 1123598815738675280, 1123598816738675203), (1123598817738675394, 1123598815738675281, 1123598816738675203), (1123598817738675395, 1123598815738675282, 1123598816738675203), (1123598817738675396, 1123598815738675283, 1123598816738675203), (1123598817738675397, 1123598815738675284, 1123598816738675203), (1123598817738675398, 1123598815738675285, 1123598816738675203), (1123598817738675399, 1123598815738675286, 1123598816738675203), (1123598817738675400, 1123598815738675287, 1123598816738675203), (1123598817738675401, 1123598815738675288, 1123598816738675203), (1123598817738675402, 1123598815738675289, 1123598816738675203), (1123598817738675403, 1123598815738675290, 1123598816738675203), (1123598817738675404, 1123598815738675291, 1123598816738675203), (1123598817738675405, 1123598815738675292, 1123598816738675203), (1123598817738675406, 1123598815738675293, 1123598816738675203), (1123598817738675407, 1123598815738675294, 1123598816738675203), (1123598817738675408, 1123598815738675295, 1123598816738675203), (1123598817738675409, 1123598815738675296, 1123598816738675203), (1123598817738675410, 1123598815738675297, 1123598816738675203), (1123598817738675411, 1123598815738675201, 1123598816738675204), (1123598817738675412, 1123598815738675202, 1123598816738675204), (1123598817738675413, 1123598815738675219, 1123598816738675204), (1123598817738675414, 1123598815738675220, 1123598816738675204), (1123598817738675415, 1123598815738675221, 1123598816738675204), (1123598817738675416, 1123598815738675222, 1123598816738675204), (1123598817738675417, 1123598815738675280, 1123598816738675204), (1123598817738675418, 1123598815738675281, 1123598816738675204), (1123598817738675419, 1123598815738675282, 1123598816738675204), (1123598817738675420, 1123598815738675283, 1123598816738675204), (1123598817738675421, 1123598815738675284, 1123598816738675204), (1123598817738675422, 1123598815738675285, 1123598816738675204), (1123598817738675423, 1123598815738675286, 1123598816738675204), (1123598817738675424, 1123598815738675287, 1123598816738675204), (1123598817738675425, 1123598815738675288, 1123598816738675204), (1123598817738675426, 1123598815738675289, 1123598816738675204), (1123598817738675427, 1123598815738675290, 1123598816738675204), (1123598817738675428, 1123598815738675291, 1123598816738675204), (1123598817738675429, 1123598815738675292, 1123598816738675204), (1123598817738675430, 1123598815738675293, 1123598816738675204), (1123598817738675431, 1123598815738675294, 1123598816738675204), (1123598817738675432, 1123598815738675295, 1123598816738675204), (1123598817738675433, 1123598815738675296, 1123598816738675204), (1123598817738675434, 1123598815738675297, 1123598816738675204), (1123598817738675435, 1123598815738675201, 1123598816738675205), (1123598817738675436, 1123598815738675202, 1123598816738675205), (1123598817738675437, 1123598815738675219, 1123598816738675205), (1123598817738675438, 1123598815738675220, 1123598816738675205), (1123598817738675439, 1123598815738675221, 1123598816738675205), (1123598817738675440, 1123598815738675222, 1123598816738675205), (1123598817738675441, 1123598815738675280, 1123598816738675205), (1123598817738675442, 1123598815738675281, 1123598816738675205), (1123598817738675443, 1123598815738675282, 1123598816738675205), (1123598817738675444, 1123598815738675283, 1123598816738675205), (1123598817738675445, 1123598815738675284, 1123598816738675205), (1123598817738675446, 1123598815738675285, 1123598816738675205), (1123598817738675447, 1123598815738675286, 1123598816738675205), (1123598817738675448, 1123598815738675287, 1123598816738675205), (1123598817738675449, 1123598815738675288, 1123598816738675205), (1123598817738675450, 1123598815738675289, 1123598816738675205), (1123598817738675451, 1123598815738675290, 1123598816738675205), (1123598817738675452, 1123598815738675291, 1123598816738675205), (1123598817738675453, 1123598815738675292, 1123598816738675205), (1123598817738675454, 1123598815738675293, 1123598816738675205), (1123598817738675455, 1123598815738675294, 1123598816738675205), (1123598817738675456, 1123598815738675295, 1123598816738675205), (1123598817738675457, 1123598815738675296, 1123598816738675205), (1123598817738675458, 1123598815738675297, 1123598816738675205), (1149888292426575874, 1123598815738675201, 1123598816738675201), (1149888292476907522, 1123598815738675202, 1123598816738675201), (1149888292489490433, 1123598815738675219, 1123598816738675201), (1149888292502073345, 1123598815738675220, 1123598816738675201), (1149888292518850561, 1123598815738675221, 1123598816738675201), (1149888292535627777, 1123598815738675222, 1123598816738675201), (1149888292548210690, 1123598815738675280, 1123598816738675201), (1149888292560793602, 1123598815738675281, 1123598816738675201), (1149888292577570817, 1123598815738675282, 1123598816738675201), (1149888292594348033, 1123598815738675283, 1123598816738675201), (1149888292611125249, 1123598815738675284, 1123598816738675201), (1149888292623708162, 1123598815738675285, 1123598816738675201), (1149888292640485377, 1123598815738675286, 1123598816738675201), (1149888292653068289, 1123598815738675287, 1123598816738675201), (1149888292669845506, 1123598815738675288, 1123598816738675201), (1149888292682428417, 1123598815738675289, 1123598816738675201), (1149888292699205634, 1123598815738675290, 1123598816738675201), (1149888292711788545, 1123598815738675291, 1123598816738675201), (1149888292724371458, 1123598815738675292, 1123598816738675201), (1149888292741148674, 1123598815738675293, 1123598816738675201), (1149888292753731585, 1123598815738675294, 1123598816738675201), (1149888292766314497, 1123598815738675295, 1123598816738675201), (1149888292778897410, 1123598815738675296, 1123598816738675201), (1149888292791480321, 1123598815738675297, 1123598816738675201), (1149888292808257537, 1123598815738675210, 1123598816738675201), (1149888292820840449, 1123598815738675211, 1123598816738675201), (1149888292833423362, 1123598815738675212, 1123598816738675201), (1149888292846006274, 1123598815738675213, 1123598816738675201), (1149888292862783489, 1123598815738675214, 1123598816738675201), (1149888292875366401, 1123598815738675249, 1123598816738675201), (1149888292887949313, 1123598815738675215, 1123598816738675201), (1149888292904726530, 1123598815738675250, 1123598816738675201), (1149888292917309442, 1123598815738675216, 1123598816738675201), (1149888292929892353, 1123598815738675251, 1123598816738675201), (1149888292942475265, 1123598815738675217, 1123598816738675201), (1149888292959252482, 1123598815738675218, 1123598816738675201), (1149888292971835393, 1123598815738675252, 1123598816738675201), (1149888292984418306, 1123598815738675253, 1123598816738675201), (1149888292997001217, 1123598815738675254, 1123598816738675201), (1149888293009584129, 1123598815738675255, 1123598816738675201), (1149888293026361346, 1123598815738675266, 1123598816738675201), (1149888293043138562, 1123598815738675267, 1123598816738675201), (1149888293055721473, 1123598815738675268, 1123598816738675201), (1149888293072498690, 1123598815738675269, 1123598816738675201), (1149888293089275906, 1123598815738675270, 1123598816738675201), (1149888293101858817, 1123598815738675271, 1123598816738675201), (1149888293114441729, 1123598815738675272, 1123598816738675201), (1149888293127024642, 1123598815738675273, 1123598816738675201), (1149888293139607554, 1123598815738675274, 1123598816738675201), (1149888293152190465, 1123598815738675275, 1123598816738675201), (1149888293164773377, 1123598815738675276, 1123598816738675201), (1149888293177356290, 1123598815738675277, 1123598816738675201), (1149888293189939201, 1123598815738675278, 1123598816738675201), (1149888293202522113, 1123598815738675279, 1123598816738675201), (1149888293215105026, 1123598815738675298, 1123598816738675201), (1149888293227687938, 1123598815738675299, 1123598816738675201), (1149888293240270850, 1123598815738675301, 1123598816738675201), (1149888293252853762, 1123598815738675302, 1123598816738675201), (1149888293265436674, 1123598815738675303, 1123598816738675201), (1149888293278019586, 1123598815738675304, 1123598816738675201), (1149888293290602497, 1123598815738675305, 1123598816738675201), (1149888293303185410, 1123598815738675307, 1123598816738675201), (1149888293315768322, 1123598815738675308, 1123598816738675201), (1149888293328351234, 1123598815738675241, 1123598816738675201), (1149888293336739841, 1123598815738675242, 1123598816738675201), (1149888293349322753, 1123598815738675243, 1123598816738675201), (1149888293361905666, 1123598815738675244, 1123598816738675201), (1149888293374488578, 1123598815738675309, 1123598816738675201), (1149888293387071489, 1123598815738675310, 1123598816738675201), (1149888293399654402, 1123598815738675311, 1123598816738675201), (1149888293412237313, 1123598815738675312, 1123598816738675201), (1149888293424820226, 1123598815738675203, 1123598816738675201), (1149888293454180354, 1123598815738675204, 1123598816738675201), (1149888293483540481, 1123598815738675223, 1123598816738675201), (1149888293512900609, 1123598815738675224, 1123598816738675201), (1149888293529677826, 1123598815738675225, 1123598816738675201), (1149888293554843649, 1123598815738675226, 1123598816738675201), (1149888293571620866, 1123598815738675227, 1123598816738675201), (1149888293588398081, 1123598815738675228, 1123598816738675201), (1149888293605175297, 1123598815738675205, 1123598816738675201), (1149888293617758209, 1123598815738675229, 1123598816738675201), (1149888293630341121, 1123598815738675230, 1123598816738675201), (1149888293642924033, 1123598815738675231, 1123598816738675201), (1149888293659701250, 1123598815738675232, 1123598816738675201), (1149888293672284162, 1123598815738675206, 1123598816738675201), (1149888293684867074, 1123598815738675233, 1123598816738675201), (1149888293697449986, 1123598815738675234, 1123598816738675201), (1149888293710032897, 1123598815738675235, 1123598816738675201), (1149888293722615809, 1123598815738675236, 1123598816738675201), (1149888293735198722, 1123598815738675207, 1123598816738675201), (1149888293747781633, 1123598815738675237, 1123598816738675201), (1149888293760364545, 1123598815738675238, 1123598816738675201), (1149888293772947458, 1123598815738675239, 1123598816738675201), (1149888293785530370, 1123598815738675240, 1123598816738675201), (1149888293798113282, 1123598815738675306, 1123598816738675201), (1149888293810696194, 1123598815738675208, 1123598816738675201), (1149888293819084802, 1123598815738675313, 1123598816738675201), (1149888293831667714, 1123598815738675314, 1123598816738675201), (1149888293844250626, 1123598815738675315, 1123598816738675201), (1149888293856833538, 1123598815738675316, 1123598816738675201), (1149888293856833539, 1123598815738675317, 1123598816738675201), (1149888293869416450, 1123598815738675209, 1123598816738675201), (1149888293881999362, 1123598815738675245, 1123598816738675201), (1149888293894582274, 1123598815738675246, 1123598816738675201), (1149888293907165186, 1123598815738675247, 1123598816738675201), (1149888293919748097, 1123598815738675248, 1123598816738675201), (1149888293932331010, 1123598815738675256, 1123598816738675201), (1149888293940719618, 1123598815738675257, 1123598816738675201), (1149888293953302530, 1123598815738675258, 1123598816738675201), (1149888293965885441, 1123598815738675259, 1123598816738675201), (1149888293978468354, 1123598815738675260, 1123598816738675201), (1149888293986856962, 1123598815738675261, 1123598816738675201), (1149888293999439874, 1123598815738675262, 1123598816738675201), (1149888294007828482, 1123598815738675263, 1123598816738675201), (1149888294020411393, 1123598815738675264, 1123598816738675201), (1149888294028800002, 1123598815738675265, 1123598816738675201), (1161272593873322991, 1161272593873321991, 1123598816738675201), (1161272593873322992, 1161272593873321992, 1123598816738675201), (1161272593873322993, 1161272593873321993, 1123598816738675201), (1161272593873322994, 1161272593873321994, 1123598816738675201), (1161272593873322995, 1161272593873321995, 1123598816738675201), (1161272593873322996, 1164733121140551682, 1123598816738675201), (1161272593873322997, 1164733349637844993, 1123598816738675201), (1161272693873322991, 1164733369658963251, 1123598816738675201), (1161272693873322992, 1164733369658963252, 1123598816738675201), (1161272693873322993, 1164733369658963253, 1123598816738675201), (1161272693873322994, 1164733369658963254, 1123598816738675201), (1161272693873322995, 1164733369658963255, 1123598816738675201), (1161272793873322991, 1164733379658963251, 1123598816738675201), (1161272793873322992, 116473337658963252, 1123598816738675201), (1161272793873322993, 1164733379658963253, 1123598816738675201), (1161272793873322994, 1164733379658963254, 1123598816738675201), (1161272793873322995, 1164733379658963255, 1123598816738675201), (1161272893873322991, 1164733389658963251, 1123598816738675201); +INSERT INTO `blade_role_menu` VALUES (1123598817738675363, 1123598815738675201, 1123598816738675202), (1123598817738675364, 1123598815738675202, 1123598816738675202), (1123598817738675365, 1123598815738675219, 1123598816738675202), (1123598817738675366, 1123598815738675220, 1123598816738675202), (1123598817738675367, 1123598815738675221, 1123598816738675202), (1123598817738675368, 1123598815738675222, 1123598816738675202), (1123598817738675369, 1123598815738675280, 1123598816738675202), (1123598817738675370, 1123598815738675281, 1123598816738675202), (1123598817738675371, 1123598815738675282, 1123598816738675202), (1123598817738675372, 1123598815738675283, 1123598816738675202), (1123598817738675373, 1123598815738675284, 1123598816738675202), (1123598817738675374, 1123598815738675285, 1123598816738675202), (1123598817738675375, 1123598815738675286, 1123598816738675202), (1123598817738675376, 1123598815738675287, 1123598816738675202), (1123598817738675377, 1123598815738675288, 1123598816738675202), (1123598817738675378, 1123598815738675289, 1123598816738675202), (1123598817738675379, 1123598815738675290, 1123598816738675202), (1123598817738675380, 1123598815738675291, 1123598816738675202), (1123598817738675381, 1123598815738675292, 1123598816738675202), (1123598817738675382, 1123598815738675293, 1123598816738675202), (1123598817738675383, 1123598815738675294, 1123598816738675202), (1123598817738675384, 1123598815738675295, 1123598816738675202), (1123598817738675385, 1123598815738675296, 1123598816738675202), (1123598817738675386, 1123598815738675297, 1123598816738675202), (1123598817738675387, 1123598815738675201, 1123598816738675203), (1123598817738675388, 1123598815738675202, 1123598816738675203), (1123598817738675389, 1123598815738675219, 1123598816738675203), (1123598817738675390, 1123598815738675220, 1123598816738675203), (1123598817738675391, 1123598815738675221, 1123598816738675203), (1123598817738675392, 1123598815738675222, 1123598816738675203), (1123598817738675393, 1123598815738675280, 1123598816738675203), (1123598817738675394, 1123598815738675281, 1123598816738675203), (1123598817738675395, 1123598815738675282, 1123598816738675203), (1123598817738675396, 1123598815738675283, 1123598816738675203), (1123598817738675397, 1123598815738675284, 1123598816738675203), (1123598817738675398, 1123598815738675285, 1123598816738675203), (1123598817738675399, 1123598815738675286, 1123598816738675203), (1123598817738675400, 1123598815738675287, 1123598816738675203), (1123598817738675401, 1123598815738675288, 1123598816738675203), (1123598817738675402, 1123598815738675289, 1123598816738675203), (1123598817738675403, 1123598815738675290, 1123598816738675203), (1123598817738675404, 1123598815738675291, 1123598816738675203), (1123598817738675405, 1123598815738675292, 1123598816738675203), (1123598817738675406, 1123598815738675293, 1123598816738675203), (1123598817738675407, 1123598815738675294, 1123598816738675203), (1123598817738675408, 1123598815738675295, 1123598816738675203), (1123598817738675409, 1123598815738675296, 1123598816738675203), (1123598817738675410, 1123598815738675297, 1123598816738675203), (1123598817738675411, 1123598815738675201, 1123598816738675204), (1123598817738675412, 1123598815738675202, 1123598816738675204), (1123598817738675413, 1123598815738675219, 1123598816738675204), (1123598817738675414, 1123598815738675220, 1123598816738675204), (1123598817738675415, 1123598815738675221, 1123598816738675204), (1123598817738675416, 1123598815738675222, 1123598816738675204), (1123598817738675417, 1123598815738675280, 1123598816738675204), (1123598817738675418, 1123598815738675281, 1123598816738675204), (1123598817738675419, 1123598815738675282, 1123598816738675204), (1123598817738675420, 1123598815738675283, 1123598816738675204), (1123598817738675421, 1123598815738675284, 1123598816738675204), (1123598817738675422, 1123598815738675285, 1123598816738675204), (1123598817738675423, 1123598815738675286, 1123598816738675204), (1123598817738675424, 1123598815738675287, 1123598816738675204), (1123598817738675425, 1123598815738675288, 1123598816738675204), (1123598817738675426, 1123598815738675289, 1123598816738675204), (1123598817738675427, 1123598815738675290, 1123598816738675204), (1123598817738675428, 1123598815738675291, 1123598816738675204), (1123598817738675429, 1123598815738675292, 1123598816738675204), (1123598817738675430, 1123598815738675293, 1123598816738675204), (1123598817738675431, 1123598815738675294, 1123598816738675204), (1123598817738675432, 1123598815738675295, 1123598816738675204), (1123598817738675433, 1123598815738675296, 1123598816738675204), (1123598817738675434, 1123598815738675297, 1123598816738675204), (1123598817738675435, 1123598815738675201, 1123598816738675205), (1123598817738675436, 1123598815738675202, 1123598816738675205), (1123598817738675437, 1123598815738675219, 1123598816738675205), (1123598817738675438, 1123598815738675220, 1123598816738675205), (1123598817738675439, 1123598815738675221, 1123598816738675205), (1123598817738675440, 1123598815738675222, 1123598816738675205), (1123598817738675441, 1123598815738675280, 1123598816738675205), (1123598817738675442, 1123598815738675281, 1123598816738675205), (1123598817738675443, 1123598815738675282, 1123598816738675205), (1123598817738675444, 1123598815738675283, 1123598816738675205), (1123598817738675445, 1123598815738675284, 1123598816738675205), (1123598817738675446, 1123598815738675285, 1123598816738675205), (1123598817738675447, 1123598815738675286, 1123598816738675205), (1123598817738675448, 1123598815738675287, 1123598816738675205), (1123598817738675449, 1123598815738675288, 1123598816738675205), (1123598817738675450, 1123598815738675289, 1123598816738675205), (1123598817738675451, 1123598815738675290, 1123598816738675205), (1123598817738675452, 1123598815738675291, 1123598816738675205), (1123598817738675453, 1123598815738675292, 1123598816738675205), (1123598817738675454, 1123598815738675293, 1123598816738675205), (1123598817738675455, 1123598815738675294, 1123598816738675205), (1123598817738675456, 1123598815738675295, 1123598816738675205), (1123598817738675457, 1123598815738675296, 1123598816738675205), (1123598817738675458, 1123598815738675297, 1123598816738675205), (1149888292426575874, 1123598815738675201, 1123598816738675201), (1149888292476907522, 1123598815738675202, 1123598816738675201), (1149888292489490433, 1123598815738675219, 1123598816738675201), (1149888292502073345, 1123598815738675220, 1123598816738675201), (1149888292518850561, 1123598815738675221, 1123598816738675201), (1149888292535627777, 1123598815738675222, 1123598816738675201), (1149888292548210690, 1123598815738675280, 1123598816738675201), (1149888292560793602, 1123598815738675281, 1123598816738675201), (1149888292577570817, 1123598815738675282, 1123598816738675201), (1149888292594348033, 1123598815738675283, 1123598816738675201), (1149888292611125249, 1123598815738675284, 1123598816738675201), (1149888292623708162, 1123598815738675285, 1123598816738675201), (1149888292640485377, 1123598815738675286, 1123598816738675201), (1149888292653068289, 1123598815738675287, 1123598816738675201), (1149888292669845506, 1123598815738675288, 1123598816738675201), (1149888292682428417, 1123598815738675289, 1123598816738675201), (1149888292699205634, 1123598815738675290, 1123598816738675201), (1149888292711788545, 1123598815738675291, 1123598816738675201), (1149888292724371458, 1123598815738675292, 1123598816738675201), (1149888292741148674, 1123598815738675293, 1123598816738675201), (1149888292753731585, 1123598815738675294, 1123598816738675201), (1149888292766314497, 1123598815738675295, 1123598816738675201), (1149888292778897410, 1123598815738675296, 1123598816738675201), (1149888292791480321, 1123598815738675297, 1123598816738675201), (1149888292808257537, 1123598815738675210, 1123598816738675201), (1149888292820840449, 1123598815738675211, 1123598816738675201), (1149888292833423362, 1123598815738675212, 1123598816738675201), (1149888292846006274, 1123598815738675213, 1123598816738675201), (1149888292862783489, 1123598815738675214, 1123598816738675201), (1149888292875366401, 1123598815738675249, 1123598816738675201), (1149888292887949313, 1123598815738675215, 1123598816738675201), (1149888292904726530, 1123598815738675250, 1123598816738675201), (1149888292917309442, 1123598815738675216, 1123598816738675201), (1149888292929892353, 1123598815738675251, 1123598816738675201), (1149888292942475265, 1123598815738675217, 1123598816738675201), (1149888292959252482, 1123598815738675218, 1123598816738675201), (1149888292971835393, 1123598815738675252, 1123598816738675201), (1149888292984418306, 1123598815738675253, 1123598816738675201), (1149888292997001217, 1123598815738675254, 1123598816738675201), (1149888293009584129, 1123598815738675255, 1123598816738675201), (1149888293026361346, 1123598815738675266, 1123598816738675201), (1149888293043138562, 1123598815738675267, 1123598816738675201), (1149888293055721473, 1123598815738675268, 1123598816738675201), (1149888293072498690, 1123598815738675269, 1123598816738675201), (1149888293089275906, 1123598815738675270, 1123598816738675201), (1149888293101858817, 1123598815738675271, 1123598816738675201), (1149888293114441729, 1123598815738675272, 1123598816738675201), (1149888293127024642, 1123598815738675273, 1123598816738675201), (1149888293139607554, 1123598815738675274, 1123598816738675201), (1149888293152190465, 1123598815738675275, 1123598816738675201), (1149888293164773377, 1123598815738675276, 1123598816738675201), (1149888293177356290, 1123598815738675277, 1123598816738675201), (1149888293189939201, 1123598815738675278, 1123598816738675201), (1149888293202522113, 1123598815738675279, 1123598816738675201), (1149888293215105026, 1123598815738675298, 1123598816738675201), (1149888293227687938, 1123598815738675299, 1123598816738675201), (1149888293240270850, 1123598815738675301, 1123598816738675201), (1149888293252853762, 1123598815738675302, 1123598816738675201), (1149888293265436674, 1123598815738675303, 1123598816738675201), (1149888293278019586, 1123598815738675304, 1123598816738675201), (1149888293290602497, 1123598815738675305, 1123598816738675201), (1149888293303185410, 1123598815738675307, 1123598816738675201), (1149888293315768322, 1123598815738675308, 1123598816738675201), (1149888293328351234, 1123598815738675241, 1123598816738675201), (1149888293336739841, 1123598815738675242, 1123598816738675201), (1149888293349322753, 1123598815738675243, 1123598816738675201), (1149888293361905666, 1123598815738675244, 1123598816738675201), (1149888293374488578, 1123598815738675309, 1123598816738675201), (1149888293387071489, 1123598815738675310, 1123598816738675201), (1149888293399654402, 1123598815738675311, 1123598816738675201), (1149888293412237313, 1123598815738675312, 1123598816738675201), (1149888293424820226, 1123598815738675203, 1123598816738675201), (1149888293454180354, 1123598815738675204, 1123598816738675201), (1149888293483540481, 1123598815738675223, 1123598816738675201), (1149888293512900609, 1123598815738675224, 1123598816738675201), (1149888293529677826, 1123598815738675225, 1123598816738675201), (1149888293554843649, 1123598815738675226, 1123598816738675201), (1149888293571620866, 1123598815738675227, 1123598816738675201), (1149888293588398081, 1123598815738675228, 1123598816738675201), (1149888293605175297, 1123598815738675205, 1123598816738675201), (1149888293617758209, 1123598815738675229, 1123598816738675201), (1149888293630341121, 1123598815738675230, 1123598816738675201), (1149888293642924033, 1123598815738675231, 1123598816738675201), (1149888293659701250, 1123598815738675232, 1123598816738675201), (1149888293672284162, 1123598815738675206, 1123598816738675201), (1149888293684867074, 1123598815738675233, 1123598816738675201), (1149888293697449986, 1123598815738675234, 1123598816738675201), (1149888293710032897, 1123598815738675235, 1123598816738675201), (1149888293722615809, 1123598815738675236, 1123598816738675201), (1149888293735198722, 1123598815738675207, 1123598816738675201), (1149888293747781633, 1123598815738675237, 1123598816738675201), (1149888293760364545, 1123598815738675238, 1123598816738675201), (1149888293772947458, 1123598815738675239, 1123598816738675201), (1149888293785530370, 1123598815738675240, 1123598816738675201), (1149888293798113282, 1123598815738675306, 1123598816738675201), (1149888293810696194, 1123598815738675208, 1123598816738675201), (1149888293819084802, 1123598815738675313, 1123598816738675201), (1149888293831667714, 1123598815738675314, 1123598816738675201), (1149888293844250626, 1123598815738675315, 1123598816738675201), (1149888293856833538, 1123598815738675316, 1123598816738675201), (1149888293856833539, 1123598815738675317, 1123598816738675201), (1149888293869416450, 1123598815738675209, 1123598816738675201), (1149888293881999362, 1123598815738675245, 1123598816738675201), (1149888293894582274, 1123598815738675246, 1123598816738675201), (1149888293907165186, 1123598815738675247, 1123598816738675201), (1149888293919748097, 1123598815738675248, 1123598816738675201), (1149888293932331010, 1123598815738675256, 1123598816738675201), (1149888293940719618, 1123598815738675257, 1123598816738675201), (1149888293953302530, 1123598815738675258, 1123598816738675201), (1149888293965885441, 1123598815738675259, 1123598816738675201), (1149888293978468354, 1123598815738675260, 1123598816738675201), (1149888293986856962, 1123598815738675261, 1123598816738675201), (1149888293999439874, 1123598815738675262, 1123598816738675201), (1149888294007828482, 1123598815738675263, 1123598816738675201), (1149888294020411393, 1123598815738675264, 1123598816738675201), (1149888294028800002, 1123598815738675265, 1123598816738675201), (1161272593873322991, 1161272593873321991, 1123598816738675201), (1161272593873322992, 1161272593873321992, 1123598816738675201), (1161272593873322993, 1161272593873321993, 1123598816738675201), (1161272593873322994, 1161272593873321994, 1123598816738675201), (1161272593873322995, 1161272593873321995, 1123598816738675201), (1161272593873322996, 1164733121140551682, 1123598816738675201), (1161272593873322997, 1164733349637844993, 1123598816738675201), (1161272693873322991, 1164733369658963251, 1123598816738675201), (1161272693873322992, 1164733369658963252, 1123598816738675201), (1161272693873322993, 1164733369658963253, 1123598816738675201), (1161272693873322994, 1164733369658963254, 1123598816738675201), (1161272693873322995, 1164733369658963255, 1123598816738675201), (1161272793873322991, 1164733379658963251, 1123598816738675201), (1161272793873322992, 116473337658963252, 1123598816738675201), (1161272793873322993, 1164733379658963253, 1123598816738675201), (1161272793873322994, 1164733379658963254, 1123598816738675201), (1161272793873322995, 1164733379658963255, 1123598816738675201), (1161272893873222991, 1164733389658962251, 1123598816738675201), (1161272893873222992, 1164733389658962252, 1123598816738675201), (1161272893873222993, 1164733389658962253, 1123598816738675201), (1161272893873222994, 1164733389658962254, 1123598816738675201), (1161272893873222995, 1164733389658962255, 1123598816738675201), (1161272893873222996, 1164733389658962256, 1123598816738675201), (1161272893873322991, 1164733389658963251, 1123598816738675201); COMMIT; -- ---------------------------- @@ -493,6 +493,31 @@ CREATE TABLE `blade_scope_data` ( PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '数据权限表'; +-- ---------------------------- +-- Table structure for blade_sms +-- ---------------------------- +DROP TABLE IF EXISTS `blade_sms`; +CREATE TABLE `blade_sms` ( + `id` bigint(64) NOT NULL COMMENT '主键', + `tenant_id` varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户ID', + `category` int(2) NULL DEFAULT NULL COMMENT '分类', + `sms_code` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '资源编号', + `template_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '模板ID', + `access_key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'accessKey', + `secret_key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'secretKey', + `region_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'regionId', + `sign_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '短信签名', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `create_user` bigint(64) NULL DEFAULT NULL COMMENT '创建人', + `create_dept` bigint(64) NULL DEFAULT NULL COMMENT '创建部门', + `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', + `update_user` bigint(64) NULL DEFAULT NULL COMMENT '修改人', + `update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', + `status` int(2) NULL DEFAULT NULL COMMENT '状态', + `is_deleted` int(2) NULL DEFAULT 0 COMMENT '是否已删除', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '短信配置表'; + -- ---------------------------- -- Table structure for blade_tenant -- ---------------------------- diff --git a/doc/sql/mysql/bladex-sword-mysql.sql b/doc/sql/mysql/bladex-sword-mysql.sql index 5e66932f..28e7a6c5 100644 --- a/doc/sql/mysql/bladex-sword-mysql.sql +++ b/doc/sql/mysql/bladex-sword-mysql.sql @@ -11,7 +11,7 @@ Target Server Version : 50723 File Encoding : 65001 - Date: 02/01/2020 13:52:52 + Date: 22/02/2020 00:45:37 */ SET NAMES utf8mb4; @@ -154,7 +154,7 @@ CREATE TABLE `blade_dict` ( -- Records of blade_dict -- ---------------------------- BEGIN; -INSERT INTO `blade_dict` VALUES (1123598814738675201, 0, 'sex', '-1', '性别', 1, NULL, 0, 0), (1123598814738675202, 1123598814738675201, 'sex', '1', '男', 1, NULL, 0, 0), (1123598814738675203, 1123598814738675201, 'sex', '2', '女', 2, NULL, 0, 0), (1123598814738675204, 0, 'notice', '-1', '通知类型', 2, NULL, 0, 0), (1123598814738675205, 1123598814738675204, 'notice', '1', '发布通知', 1, NULL, 0, 0), (1123598814738675206, 1123598814738675204, 'notice', '2', '批转通知', 2, NULL, 0, 0), (1123598814738675207, 1123598814738675204, 'notice', '3', '转发通知', 3, NULL, 0, 0), (1123598814738675208, 1123598814738675204, 'notice', '4', '指示通知', 4, NULL, 0, 0), (1123598814738675209, 1123598814738675204, 'notice', '5', '任免通知', 5, NULL, 0, 0), (1123598814738675210, 1123598814738675204, 'notice', '6', '事务通知', 6, NULL, 0, 0), (1123598814738675211, 0, 'menu_category', '-1', '菜单类型', 3, NULL, 0, 0), (1123598814738675212, 1123598814738675211, 'menu_category', '1', '菜单', 1, NULL, 0, 0), (1123598814738675213, 1123598814738675211, 'menu_category', '2', '按钮', 2, NULL, 0, 0), (1123598814738675214, 0, 'button_func', '-1', '按钮功能', 4, NULL, 0, 0), (1123598814738675215, 1123598814738675214, 'button_func', '1', '工具栏', 1, NULL, 0, 0), (1123598814738675216, 1123598814738675214, 'button_func', '2', '操作栏', 2, NULL, 0, 0), (1123598814738675217, 1123598814738675214, 'button_func', '3', '工具操作栏', 3, NULL, 0, 0), (1123598814738675218, 0, 'yes_no', '-1', '是否', 5, NULL, 0, 0), (1123598814738675219, 1123598814738675218, 'yes_no', '1', '否', 1, NULL, 0, 0), (1123598814738675220, 1123598814738675218, 'yes_no', '2', '是', 2, NULL, 0, 0), (1123598814738675221, 0, 'flow', '-1', '流程类型', 5, NULL, 0, 0), (1123598814738675222, 1123598814738675221, 'flow', '1', '请假流程', 1, 'leave', 0, 0), (1123598814738675223, 1123598814738675221, 'flow', '2', '报销流程', 2, 'expense', 0, 0), (1123598814738675227, 0, 'org_category', '-1', '机构类型', 7, NULL, 0, 0), (1123598814738675228, 1123598814738675227, 'org_category', '1', '公司', 1, NULL, 0, 0), (1123598814738675229, 1123598814738675227, 'org_category', '2', '部门', 2, NULL, 0, 0), (1123598814738675230, 1123598814738675227, 'org_category', '3', '小组', 3, NULL, 0, 0), (1123598814738675231, 0, 'data_scope_type', '-1', '数据权限', 8, NULL, 0, 0), (1123598814738675232, 1123598814738675231, 'data_scope_type', '1', '全部可见', 1, NULL, 0, 0), (1123598814738675233, 1123598814738675231, 'data_scope_type', '2', '本人可见', 2, NULL, 0, 0), (1123598814738675234, 1123598814738675231, 'data_scope_type', '3', '所在机构可见', 3, NULL, 0, 0), (1123598814738675235, 1123598814738675231, 'data_scope_type', '4', '所在机构及子级可见', 4, NULL, 0, 0), (1123598814738675236, 1123598814738675231, 'data_scope_type', '5', '自定义', 5, NULL, 0, 0), (1123598814738675237, 0, 'api_scope_type', '-1', '接口权限', 10, NULL, 0, 0), (1123598814738675238, 1123598814738675237, 'api_scope_type', '1', '系统接口', 1, NULL, 0, 0), (1123598814738675239, 1123598814738675237, 'api_scope_type', '2', '业务接口', 2, NULL, 0, 0), (1123598814738675240, 0, 'scope_category', '-1', '权限类型', 10, NULL, 0, 0), (1123598814738675241, 1123598814738675240, 'scope_category', '1', '数据权限', 1, NULL, 0, 0), (1123598814738675242, 1123598814738675240, 'scope_category', '2', '接口权限', 2, NULL, 0, 0), (1123598814738676224, 0, 'oss', '-1', '对象存储类型', 6, NULL, 0, 0), (1123598814738676225, 1123598814738676224, 'oss', '1', 'minio', 1, NULL, 0, 0), (1123598814738676226, 1123598814738676224, 'oss', '2', 'qiniu', 2, NULL, 0, 0), (1123598814738676227, 1123598814738676224, 'oss', '3', 'ali', 3, NULL, 0, 0), (1123598814738676228, 1123598814738676224, 'oss', '4', 'tencent', 4, NULL, 0, 0); +INSERT INTO `blade_dict` VALUES (1123598814738675201, 0, 'sex', '-1', '性别', 1, NULL, 0, 0), (1123598814738675202, 1123598814738675201, 'sex', '1', '男', 1, NULL, 0, 0), (1123598814738675203, 1123598814738675201, 'sex', '2', '女', 2, NULL, 0, 0), (1123598814738675204, 0, 'notice', '-1', '通知类型', 2, NULL, 0, 0), (1123598814738675205, 1123598814738675204, 'notice', '1', '发布通知', 1, NULL, 0, 0), (1123598814738675206, 1123598814738675204, 'notice', '2', '批转通知', 2, NULL, 0, 0), (1123598814738675207, 1123598814738675204, 'notice', '3', '转发通知', 3, NULL, 0, 0), (1123598814738675208, 1123598814738675204, 'notice', '4', '指示通知', 4, NULL, 0, 0), (1123598814738675209, 1123598814738675204, 'notice', '5', '任免通知', 5, NULL, 0, 0), (1123598814738675210, 1123598814738675204, 'notice', '6', '事务通知', 6, NULL, 0, 0), (1123598814738675211, 0, 'menu_category', '-1', '菜单类型', 3, NULL, 0, 0), (1123598814738675212, 1123598814738675211, 'menu_category', '1', '菜单', 1, NULL, 0, 0), (1123598814738675213, 1123598814738675211, 'menu_category', '2', '按钮', 2, NULL, 0, 0), (1123598814738675214, 0, 'button_func', '-1', '按钮功能', 4, NULL, 0, 0), (1123598814738675215, 1123598814738675214, 'button_func', '1', '工具栏', 1, NULL, 0, 0), (1123598814738675216, 1123598814738675214, 'button_func', '2', '操作栏', 2, NULL, 0, 0), (1123598814738675217, 1123598814738675214, 'button_func', '3', '工具操作栏', 3, NULL, 0, 0), (1123598814738675218, 0, 'yes_no', '-1', '是否', 5, NULL, 0, 0), (1123598814738675219, 1123598814738675218, 'yes_no', '1', '否', 1, NULL, 0, 0), (1123598814738675220, 1123598814738675218, 'yes_no', '2', '是', 2, NULL, 0, 0), (1123598814738675221, 0, 'flow', '-1', '流程类型', 5, NULL, 0, 0), (1123598814738675222, 1123598814738675221, 'flow', '1', '请假流程', 1, 'leave', 0, 0), (1123598814738675223, 1123598814738675221, 'flow', '2', '报销流程', 2, 'expense', 0, 0), (1123598814738675227, 0, 'org_category', '-1', '机构类型', 7, NULL, 0, 0), (1123598814738675228, 1123598814738675227, 'org_category', '1', '公司', 1, NULL, 0, 0), (1123598814738675229, 1123598814738675227, 'org_category', '2', '部门', 2, NULL, 0, 0), (1123598814738675230, 1123598814738675227, 'org_category', '3', '小组', 3, NULL, 0, 0), (1123598814738675231, 0, 'data_scope_type', '-1', '数据权限', 8, NULL, 0, 0), (1123598814738675232, 1123598814738675231, 'data_scope_type', '1', '全部可见', 1, NULL, 0, 0), (1123598814738675233, 1123598814738675231, 'data_scope_type', '2', '本人可见', 2, NULL, 0, 0), (1123598814738675234, 1123598814738675231, 'data_scope_type', '3', '所在机构可见', 3, NULL, 0, 0), (1123598814738675235, 1123598814738675231, 'data_scope_type', '4', '所在机构及子级可见', 4, NULL, 0, 0), (1123598814738675236, 1123598814738675231, 'data_scope_type', '5', '自定义', 5, NULL, 0, 0), (1123598814738675237, 0, 'api_scope_type', '-1', '接口权限', 10, NULL, 0, 0), (1123598814738675238, 1123598814738675237, 'api_scope_type', '1', '系统接口', 1, NULL, 0, 0), (1123598814738675239, 1123598814738675237, 'api_scope_type', '2', '业务接口', 2, NULL, 0, 0), (1123598814738675240, 0, 'scope_category', '-1', '权限类型', 10, NULL, 0, 0), (1123598814738675241, 1123598814738675240, 'scope_category', '1', '数据权限', 1, NULL, 0, 0), (1123598814738675242, 1123598814738675240, 'scope_category', '2', '接口权限', 2, NULL, 0, 0), (1123598814738676224, 0, 'oss', '-1', '对象存储类型', 6, NULL, 0, 0), (1123598814738676225, 1123598814738676224, 'oss', '1', 'minio', 1, NULL, 0, 0), (1123598814738676226, 1123598814738676224, 'oss', '2', '七牛云', 2, NULL, 0, 0), (1123598814738676227, 1123598814738676224, 'oss', '3', '阿里云', 3, NULL, 0, 0), (1123598814738676228, 1123598814738676224, 'oss', '4', '腾讯云', 4, NULL, 0, 0), (1123598814738677220, 0, 'sms', '-1', '短信服务类型', 11, NULL, 0, 0), (1123598814738677221, 1123598814738677220, 'sms', '1', '云片', 1, NULL, 0, 0), (1123598814738677222, 1123598814738677220, 'sms', '2', '七牛云', 2, NULL, 0, 0), (1123598814738677223, 1123598814738677220, 'sms', '3', '阿里云', 3, NULL, 0, 0), (1123598814738677224, 1123598814738677220, 'sms', '4', '腾讯云', 4, NULL, 0, 0); COMMIT; -- ---------------------------- @@ -280,7 +280,7 @@ CREATE TABLE `blade_menu` ( -- Records of blade_menu -- ---------------------------- BEGIN; -INSERT INTO `blade_menu` VALUES (1123598815738675201, 0, 'desk', '工作台', 'menu', '/desk', 'desktop', 1, 1, 0, 1, NULL, 0), (1123598815738675202, 1123598815738675201, 'notice', '通知公告', 'menu', '/desk/notice', NULL, 1, 1, 0, 1, NULL, 0), (1123598815738675203, 0, 'system', '系统管理', 'menu', '/system', 'setting', 99, 1, 0, 1, NULL, 0), (1123598815738675204, 1123598815738675203, 'user', '用户管理', 'menu', '/system/user', NULL, 1, 1, 0, 1, NULL, 0), (1123598815738675205, 1123598815738675203, 'dept', '机构管理', 'menu', '/system/dept', NULL, 2, 1, 0, 1, NULL, 0), (1123598815738675206, 1123598815738675203, 'dict', '系统字典', 'menu', '/system/dict', NULL, 3, 1, 0, 1, NULL, 0), (1123598815738675207, 1123598815738675203, 'menu', '菜单管理', 'menu', '/system/menu', NULL, 4, 1, 0, 1, NULL, 0), (1123598815738675208, 1123598815738675203, 'topmenu', '顶部菜单', 'menu', '/system/topmenu', '', 5, 1, 0, 1, NULL, 0), (1123598815738675209, 1123598815738675203, 'param', '参数管理', 'menu', '/system/param', NULL, 6, 1, 0, 1, NULL, 0), (1123598815738675210, 0, 'monitor', '系统监控', 'menu', '/monitor', 'fund', 3, 1, 0, 1, NULL, 0), (1123598815738675211, 1123598815738675210, 'doc', '接口文档', 'menu', 'http://localhost/doc.html', NULL, 1, 1, 0, 2, NULL, 0), (1123598815738675212, 1123598815738675210, 'admin', '服务治理', 'menu', 'http://localhost:7002', NULL, 2, 1, 0, 2, NULL, 0), (1123598815738675213, 1123598815738675210, 'log', '日志管理', 'menu', '/monitor/log', NULL, 8, 1, 0, 1, NULL, 0), (1123598815738675214, 1123598815738675213, 'log_usual', '通用日志', 'menu', '/monitor/log/usual', NULL, 1, 1, 0, 1, NULL, 0), (1123598815738675215, 1123598815738675213, 'log_api', '接口日志', 'menu', '/monitor/log/api', NULL, 2, 1, 0, 1, NULL, 0), (1123598815738675216, 1123598815738675213, 'log_error', '错误日志', 'menu', '/monitor/log/error', NULL, 3, 1, 0, 1, NULL, 0), (1123598815738675217, 0, 'tool', '研发工具', 'menu', '/tool', 'tool', 4, 1, 0, 1, NULL, 0), (1123598815738675218, 1123598815738675217, 'code', '代码生成', 'menu', '/tool/code', NULL, 1, 1, 0, 1, NULL, 0), (1123598815738675219, 1123598815738675202, 'notice_add', '新增', 'add', '/desk/notice/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675220, 1123598815738675202, 'notice_edit', '修改', 'edit', '/desk/notice/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675221, 1123598815738675202, 'notice_delete', '删除', 'delete', '/api/blade-desk/notice/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675222, 1123598815738675202, 'notice_view', '查看', 'view', '/desk/notice/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675223, 1123598815738675204, 'user_add', '新增', 'add', '/system/user/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675224, 1123598815738675204, 'user_edit', '修改', 'edit', '/system/user/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675225, 1123598815738675204, 'user_delete', '删除', 'delete', '/api/blade-user/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675226, 1123598815738675204, 'user_role', '角色配置', 'role', NULL, 'user-add', 4, 2, 1, 1, NULL, 0), (1123598815738675227, 1123598815738675204, 'user_reset', '密码重置', 'reset-password', '/api/blade-user/reset-password', 'retweet', 5, 2, 1, 1, NULL, 0), (1123598815738675228, 1123598815738675204, 'user_view', '查看', 'view', '/system/user/view', 'file-text', 6, 2, 2, 1, NULL, 0), (1123598815738675229, 1123598815738675205, 'dept_add', '新增', 'add', '/system/dept/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675230, 1123598815738675205, 'dept_edit', '修改', 'edit', '/system/dept/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675231, 1123598815738675205, 'dept_delete', '删除', 'delete', '/api/blade-system/dept/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675232, 1123598815738675205, 'dept_view', '查看', 'view', '/system/dept/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675233, 1123598815738675206, 'dict_add', '新增', 'add', '/system/dict/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675234, 1123598815738675206, 'dict_edit', '修改', 'edit', '/system/dict/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675235, 1123598815738675206, 'dict_delete', '删除', 'delete', '/api/blade-system/dict/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675236, 1123598815738675206, 'dict_view', '查看', 'view', '/system/dict/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675237, 1123598815738675207, 'menu_add', '新增', 'add', '/system/menu/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675238, 1123598815738675207, 'menu_edit', '修改', 'edit', '/system/menu/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675239, 1123598815738675207, 'menu_delete', '删除', 'delete', '/api/blade-system/menu/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675240, 1123598815738675207, 'menu_view', '查看', 'view', '/system/menu/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675241, 1123598815738675308, 'role_add', '新增', 'add', '/authority/role/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675242, 1123598815738675308, 'role_edit', '修改', 'edit', '/authority/role/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675243, 1123598815738675308, 'role_delete', '删除', 'delete', '/api/blade-system/role/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675244, 1123598815738675308, 'role_view', '查看', 'view', '/authority/role/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675245, 1123598815738675209, 'param_add', '新增', 'add', '/system/param/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675246, 1123598815738675209, 'param_edit', '修改', 'edit', '/system/param/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675247, 1123598815738675209, 'param_delete', '删除', 'delete', '/api/blade-system/param/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675248, 1123598815738675209, 'param_view', '查看', 'view', '/system/param/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675249, 1123598815738675214, 'log_usual_view', '查看', 'view', '/monitor/log/usual/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675250, 1123598815738675215, 'log_api_view', '查看', 'view', '/monitor/log/api/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675251, 1123598815738675216, 'log_error_view', '查看', 'view', '/monitor/log/error/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675252, 1123598815738675218, 'code_add', '新增', 'add', '/tool/code/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675253, 1123598815738675218, 'code_edit', '修改', 'edit', '/tool/code/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675254, 1123598815738675218, 'code_delete', '删除', 'delete', '/api/blade-develop/code/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675255, 1123598815738675218, 'code_view', '查看', 'view', '/tool/code/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675256, 1123598815738675203, 'tenant', '租户管理', 'menu', '/system/tenant', NULL, 7, 1, 0, 1, NULL, 0), (1123598815738675257, 1123598815738675256, 'tenant_add', '新增', 'add', '/system/tenant/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675258, 1123598815738675256, 'tenant_edit', '修改', 'edit', '/system/tenant/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675259, 1123598815738675256, 'tenant_delete', '删除', 'delete', '/api/blade-system/tenant/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675260, 1123598815738675256, 'tenant_view', '查看', 'view', '/system/tenant/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675261, 1123598815738675203, 'client', '应用管理', 'menu', '/system/client', NULL, 8, 1, 0, 1, NULL, 0), (1123598815738675262, 1123598815738675261, 'client_add', '新增', 'add', '/system/client/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675263, 1123598815738675261, 'client_edit', '修改', 'edit', '/system/client/edit', 'form', 2, 2, 2, 2, NULL, 0), (1123598815738675264, 1123598815738675261, 'client_delete', '删除', 'delete', '/api/blade-system/client/remove', 'delete', 3, 2, 3, 3, NULL, 0), (1123598815738675265, 1123598815738675261, 'client_view', '查看', 'view', '/system/client/view', 'file-text', 4, 2, 2, 2, NULL, 0), (1123598815738675266, 0, 'flow', '流程管理', 'menu', '/flow', 'stock', 5, 1, 0, 1, NULL, 0), (1123598815738675267, 1123598815738675266, 'flow_model', '模型管理', 'menu', '/flow/model', NULL, 1, 1, 0, 1, NULL, 0), (1123598815738675268, 1123598815738675267, 'flow_model_create', '创建', 'create', '', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675269, 1123598815738675267, 'flow_model_update', '编辑', 'update', '', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675270, 1123598815738675267, 'flow_model_deploy', '部署', 'deploy', '', 'cloud-upload', 3, 2, 2, 1, NULL, 0), (1123598815738675271, 1123598815738675267, 'flow_model_download', '下载', 'download', '', 'download', 4, 2, 2, 1, NULL, 0), (1123598815738675272, 1123598815738675267, 'flow_model_delete', '删除', 'delete', '/api/blade-flow/model/remove', 'delete', 5, 2, 3, 1, NULL, 0), (1123598815738675273, 1123598815738675266, 'flow_deploy', '流程部署', 'menu', '/flow/deploy', NULL, 2, 1, 0, 1, NULL, 0), (1123598815738675274, 1123598815738675266, 'flow_manager', '流程管理', 'menu', '/flow/manager', NULL, 3, 1, 0, 1, NULL, 0), (1123598815738675275, 1123598815738675274, 'flow_manager_state', '变更状态', 'state', '', 'plus', 1, 2, 2, 1, NULL, 0), (1123598815738675276, 1123598815738675274, 'flow_manager_image', '流程图', 'image', '', 'image', 2, 2, 2, 1, NULL, 0), (1123598815738675277, 1123598815738675274, 'flow_manager_remove', '删除', 'remove', '', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675278, 1123598815738675266, 'flow_follow', '流程跟踪', 'menu', '/flow/follow', NULL, 4, 1, 0, 1, NULL, 0), (1123598815738675279, 1123598815738675278, 'flow_follow_delete', '删除', 'remove', '', 'remove', 1, 2, 2, 1, NULL, 0), (1123598815738675280, 0, 'work', '我的事务', 'menu', '/work', 'bell', 2, 1, 0, 1, '', 0), (1123598815738675281, 1123598815738675280, 'work_start', '发起事务', 'menu', '/work/start', NULL, 1, 1, 0, 1, NULL, 0), (1123598815738675282, 1123598815738675281, 'work_start_flow', '发起', 'flow', '', 'flow', 1, 2, 2, 1, NULL, 0), (1123598815738675283, 1123598815738675281, 'work_start_image', '流程图', 'image', '', 'image', 2, 2, 2, 1, NULL, 0), (1123598815738675284, 1123598815738675280, 'work_claim', '待签事务', 'menu', '/work/claim', NULL, 2, 1, 0, 1, NULL, 0), (1123598815738675285, 1123598815738675284, 'work_claim_sign', '签收', 'sign', '', 'sign', 1, 2, 2, 1, NULL, 0), (1123598815738675286, 1123598815738675284, 'work_claim_detail', '详情', 'detail', '', 'detail', 2, 2, 2, 1, NULL, 0), (1123598815738675287, 1123598815738675284, 'work_claim_follow', '跟踪', 'follow', '', 'follow', 3, 2, 2, 1, NULL, 0), (1123598815738675288, 1123598815738675280, 'work_todo', '待办事务', 'menu', '/work/todo', NULL, 2, 1, 0, 1, NULL, 0), (1123598815738675289, 1123598815738675288, 'work_todo_handle', '办理', 'handle', '', 'handle', 1, 2, 2, 1, NULL, 0), (1123598815738675290, 1123598815738675288, 'work_todo_detail', '详情', 'detail', '', 'detail', 2, 2, 2, 1, NULL, 0), (1123598815738675291, 1123598815738675288, 'work_todo_follow', '跟踪', 'follow', '', 'follow', 3, 2, 2, 1, NULL, 0), (1123598815738675292, 1123598815738675280, 'work_send', '已发事务', 'menu', '/work/send', NULL, 3, 1, 0, 1, NULL, 0), (1123598815738675293, 1123598815738675292, 'work_send_detail', '详情', 'detail', '', 'detail', 1, 2, 2, 1, NULL, 0), (1123598815738675294, 1123598815738675292, 'work_send_follow', '跟踪', 'follow', '', 'follow', 2, 2, 2, 1, NULL, 0), (1123598815738675295, 1123598815738675280, 'work_done', '办结事务', 'menu', '/work/done', NULL, 4, 1, 0, 1, NULL, 0), (1123598815738675296, 1123598815738675295, 'work_done_detail', '详情', 'detail', '', 'detail', 1, 2, 2, 1, NULL, 0), (1123598815738675297, 1123598815738675295, 'work_done_follow', '跟踪', 'follow', '', 'follow', 2, 2, 2, 1, NULL, 0), (1123598815738675298, 0, 'resource', '资源管理', 'menu', '/resource', 'bg-colors', 6, 1, 0, 1, '', 0), (1123598815738675299, 1123598815738675298, 'oss', '对象存储', 'menu', '/resource/oss', NULL, 1, 1, 0, 1, NULL, 0), (1123598815738675301, 1123598815738675299, 'oss_add', '新增', 'add', '/resource/oss/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675302, 1123598815738675299, 'oss_edit', '修改', 'edit', '/resource/oss/edit', 'form', 2, 2, 2, 2, NULL, 0), (1123598815738675303, 1123598815738675299, 'oss_delete', '删除', 'delete', '/api/blade-resource/oss/remove', 'delete', 3, 2, 3, 3, NULL, 0), (1123598815738675304, 1123598815738675299, 'oss_view', '查看', 'view', '/resource/oss/view', 'file-text', 4, 2, 2, 2, NULL, 0), (1123598815738675305, 1123598815738675299, 'oss_enable', '启用', 'enable', '/api/blade-resource/oss/enable', 'key', 5, 2, 2, 2, '', 0), (1123598815738675307, 0, 'authority', '权限管理', 'menu', '/authority', 'safety-certificate', 98, 1, 0, 1, '', 0), (1123598815738675308, 1123598815738675307, 'role', '角色管理', 'menu', '/authority/role', '', 1, 1, 0, 1, NULL, 0), (1123598815738675309, 1123598815738675307, 'data_scope', '数据权限', 'menu', '/authority/datascope', '', 2, 1, 0, 1, '', 0), (1123598815738675310, 1123598815738675309, 'data_scope_setting', '权限配置', 'setting', NULL, 'setting', 1, 2, 2, 1, NULL, 0), (1123598815738675311, 1123598815738675307, 'api_scope', '接口权限', 'menu', '/authority/apiscope', '', 3, 1, 0, 1, '', 0), (1123598815738675312, 1123598815738675311, 'api_scope_setting', '权限配置', 'setting', NULL, 'setting', 1, 2, 2, 1, NULL, 0), (1123598815738675313, 1123598815738675208, 'topmenu_add', '新增', 'add', '/system/topmenu/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675314, 1123598815738675208, 'topmenu_edit', '修改', 'edit', '/system/topmenu/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675315, 1123598815738675208, 'topmenu_delete', '删除', 'delete', '/api/blade-system/topmenu/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675316, 1123598815738675208, 'topmenu_view', '查看', 'view', '/system/topmenu/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675317, 1123598815738675208, 'topmenu_setting', '菜单配置', 'setting', NULL, 'setting', 5, 2, 1, 1, NULL, 0), (1161272593873321991, 1123598815738675217, 'datasource', '数据源管理', 'menu', '/tool/datasource', NULL, 2, 1, 0, 1, NULL, 0), (1161272593873321992, 1161272593873321991, 'datasource_add', '新增', 'add', '/tool/datasource/add', 'plus', 1, 2, 1, 1, NULL, 0), (1161272593873321993, 1161272593873321991, 'datasource_edit', '修改', 'edit', '/tool/datasource/edit', 'form', 2, 2, 2, 2, NULL, 0), (1161272593873321994, 1161272593873321991, 'datasource_delete', '删除', 'delete', '/api/blade-develop/datasource/remove', 'delete', 3, 2, 3, 3, NULL, 0), (1161272593873321995, 1161272593873321991, 'datasource_view', '查看', 'view', '/tool/datasource/view', 'file-text', 4, 2, 2, 2, NULL, 0), (1164733369658963251, 1123598815738675210, 'elk', 'ELK监控', 'menu', 'http://localhost:5601/', '', 3, 1, 0, 2, '', 0), (1164733369658963252, 1123598815738675210, 'zipkin', 'Zipkin监控', 'menu', 'http://localhost:9411/', '', 4, 1, 0, 2, '', 0), (1164733369658963253, 1123598815738675210, 'turbine', 'Turbine监控', 'menu', 'http://localhost:7003/hystrix', '', 5, 1, 0, 2, '', 0), (1164733369658963254, 1123598815738675210, 'sentinel', 'Sentinel管理', 'menu', 'http://localhost:8858', '', 6, 1, 0, 2, '', 0), (1164733369658963255, 1123598815738675210, 'es', 'Elasticsearch管理', 'menu', 'http://localhost:9100/', '', 7, 1, 0, 2, '', 0), (1164733379658963251, 1123598815738675203, 'dictbiz', '业务字典', 'menu', '/system/dictbiz', '', 3, 1, 0, 1, '', 0), (1164733379658963252, 1164733379658963251, 'dictbiz_add', '新增', 'add', '/system/dictbiz/add', 'plus', 1, 2, 1, 1, '', 0), (1164733379658963253, 1164733379658963251, 'dictbiz_edit', '修改', 'edit', '/system/dictbiz/edit', 'form', 2, 2, 2, 1, '', 0), (1164733379658963254, 1164733379658963251, 'dictbiz_delete', '删除', 'delete', '/api/blade-system/dict-biz/remove', 'delete', 3, 2, 3, 1, '', 0), (1164733379658963255, 1164733379658963251, 'dictbiz_view', '查看', 'view', '/system/dictbiz/view', 'file-text', 4, 2, 2, 1, '', 0), (1164733389658963251, 1123598815738675298, 'xxljob', '任务调度', 'menu', 'http://localhost:7009/xxl-job-admin', '', 2, 1, 0, 2, '', 0); +INSERT INTO `blade_menu` VALUES (1123598815738675201, 0, 'desk', '工作台', 'menu', '/desk', 'desktop', 1, 1, 0, 1, NULL, 0), (1123598815738675202, 1123598815738675201, 'notice', '通知公告', 'menu', '/desk/notice', NULL, 1, 1, 0, 1, NULL, 0), (1123598815738675203, 0, 'system', '系统管理', 'menu', '/system', 'setting', 99, 1, 0, 1, NULL, 0), (1123598815738675204, 1123598815738675203, 'user', '用户管理', 'menu', '/system/user', NULL, 1, 1, 0, 1, NULL, 0), (1123598815738675205, 1123598815738675203, 'dept', '机构管理', 'menu', '/system/dept', NULL, 2, 1, 0, 1, NULL, 0), (1123598815738675206, 1123598815738675203, 'dict', '系统字典', 'menu', '/system/dict', NULL, 3, 1, 0, 1, NULL, 0), (1123598815738675207, 1123598815738675203, 'menu', '菜单管理', 'menu', '/system/menu', NULL, 4, 1, 0, 1, NULL, 0), (1123598815738675208, 1123598815738675203, 'topmenu', '顶部菜单', 'menu', '/system/topmenu', '', 5, 1, 0, 1, NULL, 0), (1123598815738675209, 1123598815738675203, 'param', '参数管理', 'menu', '/system/param', NULL, 6, 1, 0, 1, NULL, 0), (1123598815738675210, 0, 'monitor', '系统监控', 'menu', '/monitor', 'fund', 3, 1, 0, 1, NULL, 0), (1123598815738675211, 1123598815738675210, 'doc', '接口文档', 'menu', 'http://localhost/doc.html', NULL, 1, 1, 0, 2, NULL, 0), (1123598815738675212, 1123598815738675210, 'admin', '服务治理', 'menu', 'http://localhost:7002', NULL, 2, 1, 0, 2, NULL, 0), (1123598815738675213, 1123598815738675210, 'log', '日志管理', 'menu', '/monitor/log', NULL, 8, 1, 0, 1, NULL, 0), (1123598815738675214, 1123598815738675213, 'log_usual', '通用日志', 'menu', '/monitor/log/usual', NULL, 1, 1, 0, 1, NULL, 0), (1123598815738675215, 1123598815738675213, 'log_api', '接口日志', 'menu', '/monitor/log/api', NULL, 2, 1, 0, 1, NULL, 0), (1123598815738675216, 1123598815738675213, 'log_error', '错误日志', 'menu', '/monitor/log/error', NULL, 3, 1, 0, 1, NULL, 0), (1123598815738675217, 0, 'tool', '研发工具', 'menu', '/tool', 'tool', 4, 1, 0, 1, NULL, 0), (1123598815738675218, 1123598815738675217, 'code', '代码生成', 'menu', '/tool/code', NULL, 1, 1, 0, 1, NULL, 0), (1123598815738675219, 1123598815738675202, 'notice_add', '新增', 'add', '/desk/notice/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675220, 1123598815738675202, 'notice_edit', '修改', 'edit', '/desk/notice/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675221, 1123598815738675202, 'notice_delete', '删除', 'delete', '/api/blade-desk/notice/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675222, 1123598815738675202, 'notice_view', '查看', 'view', '/desk/notice/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675223, 1123598815738675204, 'user_add', '新增', 'add', '/system/user/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675224, 1123598815738675204, 'user_edit', '修改', 'edit', '/system/user/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675225, 1123598815738675204, 'user_delete', '删除', 'delete', '/api/blade-user/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675226, 1123598815738675204, 'user_role', '角色配置', 'role', NULL, 'user-add', 4, 2, 1, 1, NULL, 0), (1123598815738675227, 1123598815738675204, 'user_reset', '密码重置', 'reset-password', '/api/blade-user/reset-password', 'retweet', 5, 2, 1, 1, NULL, 0), (1123598815738675228, 1123598815738675204, 'user_view', '查看', 'view', '/system/user/view', 'file-text', 6, 2, 2, 1, NULL, 0), (1123598815738675229, 1123598815738675205, 'dept_add', '新增', 'add', '/system/dept/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675230, 1123598815738675205, 'dept_edit', '修改', 'edit', '/system/dept/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675231, 1123598815738675205, 'dept_delete', '删除', 'delete', '/api/blade-system/dept/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675232, 1123598815738675205, 'dept_view', '查看', 'view', '/system/dept/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675233, 1123598815738675206, 'dict_add', '新增', 'add', '/system/dict/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675234, 1123598815738675206, 'dict_edit', '修改', 'edit', '/system/dict/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675235, 1123598815738675206, 'dict_delete', '删除', 'delete', '/api/blade-system/dict/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675236, 1123598815738675206, 'dict_view', '查看', 'view', '/system/dict/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675237, 1123598815738675207, 'menu_add', '新增', 'add', '/system/menu/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675238, 1123598815738675207, 'menu_edit', '修改', 'edit', '/system/menu/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675239, 1123598815738675207, 'menu_delete', '删除', 'delete', '/api/blade-system/menu/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675240, 1123598815738675207, 'menu_view', '查看', 'view', '/system/menu/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675241, 1123598815738675308, 'role_add', '新增', 'add', '/authority/role/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675242, 1123598815738675308, 'role_edit', '修改', 'edit', '/authority/role/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675243, 1123598815738675308, 'role_delete', '删除', 'delete', '/api/blade-system/role/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675244, 1123598815738675308, 'role_view', '查看', 'view', '/authority/role/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675245, 1123598815738675209, 'param_add', '新增', 'add', '/system/param/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675246, 1123598815738675209, 'param_edit', '修改', 'edit', '/system/param/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675247, 1123598815738675209, 'param_delete', '删除', 'delete', '/api/blade-system/param/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675248, 1123598815738675209, 'param_view', '查看', 'view', '/system/param/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675249, 1123598815738675214, 'log_usual_view', '查看', 'view', '/monitor/log/usual/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675250, 1123598815738675215, 'log_api_view', '查看', 'view', '/monitor/log/api/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675251, 1123598815738675216, 'log_error_view', '查看', 'view', '/monitor/log/error/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675252, 1123598815738675218, 'code_add', '新增', 'add', '/tool/code/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675253, 1123598815738675218, 'code_edit', '修改', 'edit', '/tool/code/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675254, 1123598815738675218, 'code_delete', '删除', 'delete', '/api/blade-develop/code/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675255, 1123598815738675218, 'code_view', '查看', 'view', '/tool/code/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675256, 1123598815738675203, 'tenant', '租户管理', 'menu', '/system/tenant', NULL, 7, 1, 0, 1, NULL, 0), (1123598815738675257, 1123598815738675256, 'tenant_add', '新增', 'add', '/system/tenant/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675258, 1123598815738675256, 'tenant_edit', '修改', 'edit', '/system/tenant/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675259, 1123598815738675256, 'tenant_delete', '删除', 'delete', '/api/blade-system/tenant/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675260, 1123598815738675256, 'tenant_view', '查看', 'view', '/system/tenant/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675261, 1123598815738675203, 'client', '应用管理', 'menu', '/system/client', NULL, 8, 1, 0, 1, NULL, 0), (1123598815738675262, 1123598815738675261, 'client_add', '新增', 'add', '/system/client/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675263, 1123598815738675261, 'client_edit', '修改', 'edit', '/system/client/edit', 'form', 2, 2, 2, 2, NULL, 0), (1123598815738675264, 1123598815738675261, 'client_delete', '删除', 'delete', '/api/blade-system/client/remove', 'delete', 3, 2, 3, 3, NULL, 0), (1123598815738675265, 1123598815738675261, 'client_view', '查看', 'view', '/system/client/view', 'file-text', 4, 2, 2, 2, NULL, 0), (1123598815738675266, 0, 'flow', '流程管理', 'menu', '/flow', 'stock', 5, 1, 0, 1, NULL, 0), (1123598815738675267, 1123598815738675266, 'flow_model', '模型管理', 'menu', '/flow/model', NULL, 1, 1, 0, 1, NULL, 0), (1123598815738675268, 1123598815738675267, 'flow_model_create', '创建', 'create', '', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675269, 1123598815738675267, 'flow_model_update', '编辑', 'update', '', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675270, 1123598815738675267, 'flow_model_deploy', '部署', 'deploy', '', 'cloud-upload', 3, 2, 2, 1, NULL, 0), (1123598815738675271, 1123598815738675267, 'flow_model_download', '下载', 'download', '', 'download', 4, 2, 2, 1, NULL, 0), (1123598815738675272, 1123598815738675267, 'flow_model_delete', '删除', 'delete', '/api/blade-flow/model/remove', 'delete', 5, 2, 3, 1, NULL, 0), (1123598815738675273, 1123598815738675266, 'flow_deploy', '流程部署', 'menu', '/flow/deploy', NULL, 2, 1, 0, 1, NULL, 0), (1123598815738675274, 1123598815738675266, 'flow_manager', '流程管理', 'menu', '/flow/manager', NULL, 3, 1, 0, 1, NULL, 0), (1123598815738675275, 1123598815738675274, 'flow_manager_state', '变更状态', 'state', '', 'plus', 1, 2, 2, 1, NULL, 0), (1123598815738675276, 1123598815738675274, 'flow_manager_image', '流程图', 'image', '', 'image', 2, 2, 2, 1, NULL, 0), (1123598815738675277, 1123598815738675274, 'flow_manager_remove', '删除', 'remove', '', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675278, 1123598815738675266, 'flow_follow', '流程跟踪', 'menu', '/flow/follow', NULL, 4, 1, 0, 1, NULL, 0), (1123598815738675279, 1123598815738675278, 'flow_follow_delete', '删除', 'remove', '', 'remove', 1, 2, 2, 1, NULL, 0), (1123598815738675280, 0, 'work', '我的事务', 'menu', '/work', 'bell', 2, 1, 0, 1, '', 0), (1123598815738675281, 1123598815738675280, 'work_start', '发起事务', 'menu', '/work/start', NULL, 1, 1, 0, 1, NULL, 0), (1123598815738675282, 1123598815738675281, 'work_start_flow', '发起', 'flow', '', 'flow', 1, 2, 2, 1, NULL, 0), (1123598815738675283, 1123598815738675281, 'work_start_image', '流程图', 'image', '', 'image', 2, 2, 2, 1, NULL, 0), (1123598815738675284, 1123598815738675280, 'work_claim', '待签事务', 'menu', '/work/claim', NULL, 2, 1, 0, 1, NULL, 0), (1123598815738675285, 1123598815738675284, 'work_claim_sign', '签收', 'sign', '', 'sign', 1, 2, 2, 1, NULL, 0), (1123598815738675286, 1123598815738675284, 'work_claim_detail', '详情', 'detail', '', 'detail', 2, 2, 2, 1, NULL, 0), (1123598815738675287, 1123598815738675284, 'work_claim_follow', '跟踪', 'follow', '', 'follow', 3, 2, 2, 1, NULL, 0), (1123598815738675288, 1123598815738675280, 'work_todo', '待办事务', 'menu', '/work/todo', NULL, 2, 1, 0, 1, NULL, 0), (1123598815738675289, 1123598815738675288, 'work_todo_handle', '办理', 'handle', '', 'handle', 1, 2, 2, 1, NULL, 0), (1123598815738675290, 1123598815738675288, 'work_todo_detail', '详情', 'detail', '', 'detail', 2, 2, 2, 1, NULL, 0), (1123598815738675291, 1123598815738675288, 'work_todo_follow', '跟踪', 'follow', '', 'follow', 3, 2, 2, 1, NULL, 0), (1123598815738675292, 1123598815738675280, 'work_send', '已发事务', 'menu', '/work/send', NULL, 3, 1, 0, 1, NULL, 0), (1123598815738675293, 1123598815738675292, 'work_send_detail', '详情', 'detail', '', 'detail', 1, 2, 2, 1, NULL, 0), (1123598815738675294, 1123598815738675292, 'work_send_follow', '跟踪', 'follow', '', 'follow', 2, 2, 2, 1, NULL, 0), (1123598815738675295, 1123598815738675280, 'work_done', '办结事务', 'menu', '/work/done', NULL, 4, 1, 0, 1, NULL, 0), (1123598815738675296, 1123598815738675295, 'work_done_detail', '详情', 'detail', '', 'detail', 1, 2, 2, 1, NULL, 0), (1123598815738675297, 1123598815738675295, 'work_done_follow', '跟踪', 'follow', '', 'follow', 2, 2, 2, 1, NULL, 0), (1123598815738675298, 0, 'resource', '资源管理', 'menu', '/resource', 'bg-colors', 6, 1, 0, 1, '', 0), (1123598815738675299, 1123598815738675298, 'oss', '对象存储', 'menu', '/resource/oss', NULL, 1, 1, 0, 1, NULL, 0), (1123598815738675301, 1123598815738675299, 'oss_add', '新增', 'add', '/resource/oss/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675302, 1123598815738675299, 'oss_edit', '修改', 'edit', '/resource/oss/edit', 'form', 2, 2, 2, 2, NULL, 0), (1123598815738675303, 1123598815738675299, 'oss_delete', '删除', 'delete', '/api/blade-resource/oss/remove', 'delete', 3, 2, 3, 3, NULL, 0), (1123598815738675304, 1123598815738675299, 'oss_view', '查看', 'view', '/resource/oss/view', 'file-text', 4, 2, 2, 2, NULL, 0), (1123598815738675305, 1123598815738675299, 'oss_enable', '启用', 'enable', '/api/blade-resource/oss/enable', 'key', 5, 2, 2, 2, '', 0), (1123598815738675307, 0, 'authority', '权限管理', 'menu', '/authority', 'safety-certificate', 98, 1, 0, 1, '', 0), (1123598815738675308, 1123598815738675307, 'role', '角色管理', 'menu', '/authority/role', '', 1, 1, 0, 1, NULL, 0), (1123598815738675309, 1123598815738675307, 'data_scope', '数据权限', 'menu', '/authority/datascope', '', 2, 1, 0, 1, '', 0), (1123598815738675310, 1123598815738675309, 'data_scope_setting', '权限配置', 'setting', NULL, 'setting', 1, 2, 2, 1, NULL, 0), (1123598815738675311, 1123598815738675307, 'api_scope', '接口权限', 'menu', '/authority/apiscope', '', 3, 1, 0, 1, '', 0), (1123598815738675312, 1123598815738675311, 'api_scope_setting', '权限配置', 'setting', NULL, 'setting', 1, 2, 2, 1, NULL, 0), (1123598815738675313, 1123598815738675208, 'topmenu_add', '新增', 'add', '/system/topmenu/add', 'plus', 1, 2, 1, 1, NULL, 0), (1123598815738675314, 1123598815738675208, 'topmenu_edit', '修改', 'edit', '/system/topmenu/edit', 'form', 2, 2, 2, 1, NULL, 0), (1123598815738675315, 1123598815738675208, 'topmenu_delete', '删除', 'delete', '/api/blade-system/topmenu/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1123598815738675316, 1123598815738675208, 'topmenu_view', '查看', 'view', '/system/topmenu/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1123598815738675317, 1123598815738675208, 'topmenu_setting', '菜单配置', 'setting', NULL, 'setting', 5, 2, 1, 1, NULL, 0), (1161272593873321991, 1123598815738675217, 'datasource', '数据源管理', 'menu', '/tool/datasource', NULL, 2, 1, 0, 1, NULL, 0), (1161272593873321992, 1161272593873321991, 'datasource_add', '新增', 'add', '/tool/datasource/add', 'plus', 1, 2, 1, 1, NULL, 0), (1161272593873321993, 1161272593873321991, 'datasource_edit', '修改', 'edit', '/tool/datasource/edit', 'form', 2, 2, 2, 2, NULL, 0), (1161272593873321994, 1161272593873321991, 'datasource_delete', '删除', 'delete', '/api/blade-develop/datasource/remove', 'delete', 3, 2, 3, 3, NULL, 0), (1161272593873321995, 1161272593873321991, 'datasource_view', '查看', 'view', '/tool/datasource/view', 'file-text', 4, 2, 2, 2, NULL, 0), (1164733369658963251, 1123598815738675210, 'elk', 'ELK监控', 'menu', 'http://localhost:5601/', '', 3, 1, 0, 2, '', 0), (1164733369658963252, 1123598815738675210, 'zipkin', 'Zipkin监控', 'menu', 'http://localhost:9411/', '', 4, 1, 0, 2, '', 0), (1164733369658963253, 1123598815738675210, 'turbine', 'Turbine监控', 'menu', 'http://localhost:7003/hystrix', '', 5, 1, 0, 2, '', 0), (1164733369658963254, 1123598815738675210, 'sentinel', 'Sentinel管理', 'menu', 'http://localhost:8858', '', 6, 1, 0, 2, '', 0), (1164733369658963255, 1123598815738675210, 'es', 'Elasticsearch管理', 'menu', 'http://localhost:9100/', '', 7, 1, 0, 2, '', 0), (1164733379658963251, 1123598815738675203, 'dictbiz', '业务字典', 'menu', '/system/dictbiz', '', 3, 1, 0, 1, '', 0), (1164733379658963252, 1164733379658963251, 'dictbiz_add', '新增', 'add', '/system/dictbiz/add', 'plus', 1, 2, 1, 1, '', 0), (1164733379658963253, 1164733379658963251, 'dictbiz_edit', '修改', 'edit', '/system/dictbiz/edit', 'form', 2, 2, 2, 1, '', 0), (1164733379658963254, 1164733379658963251, 'dictbiz_delete', '删除', 'delete', '/api/blade-system/dict-biz/remove', 'delete', 3, 2, 3, 1, '', 0), (1164733379658963255, 1164733379658963251, 'dictbiz_view', '查看', 'view', '/system/dictbiz/view', 'file-text', 4, 2, 2, 1, '', 0), (1164733389658962251, 1123598815738675298, 'sms', '短信配置', 'menu', '/resource/sms', '', 2, 1, 0, 1, NULL, 0), (1164733389658962252, 1164733389658962251, 'sms_add', '新增', 'add', '/resource/sms/add', 'plus', 1, 2, 1, 1, NULL, 0), (1164733389658962253, 1164733389658962251, 'sms_edit', '修改', 'edit', '/resource/sms/edit', 'form', 2, 2, 2, 1, NULL, 0), (1164733389658962254, 1164733389658962251, 'sms_delete', '删除', 'delete', '/api/blade-resource/sms/remove', 'delete', 3, 2, 3, 1, NULL, 0), (1164733389658962255, 1164733389658962251, 'sms_view', '查看', 'view', '/resource/sms/view', 'file-text', 4, 2, 2, 1, NULL, 0), (1164733389658962256, 1164733389658962251, 'sms_enable', '启用', 'enable', '/api/blade-resource/sms/enable', 'key', 5, 2, 2, 2, NULL, 0), (1164733389658963251, 1123598815738675298, 'xxljob', '任务调度', 'menu', 'http://localhost:7009/xxl-job-admin', '', 3, 1, 0, 2, '', 0); COMMIT; -- ---------------------------- @@ -341,7 +341,7 @@ CREATE TABLE `blade_oss` ( -- Records of blade_oss -- ---------------------------- BEGIN; -INSERT INTO `blade_oss` VALUES (1132486733992468482, '000000',1, 'minio', 'http://127.0.0.1:9000', 'D99KGE6ZTQXSATTJWU24', 'QyVqGnhIQQE734UYSUFlGOZViE6+ZlDEfUG3NjhJ', 'bladex', '', '', '', 1123598821738675201, 1123598813738675201, '2019-05-26 11:20:52', 1123598821738675201, '2019-05-27 08:34:55', 2, 0), (1132487155981393922, '000000',2, 'qiniu', 'http://ps458elcs.bkt.clouddn.com', 'N_Loh1ngBqcJovwiAJqR91Ifj2vgOWHOf8AwBA_h', 'AuzuA1KHAbkIndCU0dB3Zfii2O3crHNODDmpxHRS', 'bladex', '', '', '', 1123598821738675201, 1123598813738675201, '2019-05-26 11:22:33', 1123598821738675201, '2019-05-26 23:27:56', 1, 0); +INSERT INTO `blade_oss` VALUES (1132486733992468482, '000000', 1, 'minio', 'http://127.0.0.1:9000', 'D99KGE6ZTQXSATTJWU24', 'QyVqGnhIQQE734UYSUFlGOZViE6+ZlDEfUG3NjhJ', 'bladex', '', '', '', 1123598821738675201, 1123598813738675201, '2019-05-26 11:20:52', 1123598821738675201, '2019-05-27 08:34:55', 2, 0), (1132487155981393922, '000000', 2, 'qiniu', 'http://ps458elcs.bkt.clouddn.com', 'N_Loh1ngBqcJovwiAJqR91Ifj2vgOWHOf8AwBA_h', 'AuzuA1KHAbkIndCU0dB3Zfii2O3crHNODDmpxHRS', 'bladex', '', '', '', 1123598821738675201, 1123598813738675201, '2019-05-26 11:22:33', 1123598821738675201, '2019-05-26 23:27:56', 1, 0); COMMIT; -- ---------------------------- @@ -431,7 +431,7 @@ CREATE TABLE `blade_role_menu` ( -- Records of blade_role_menu -- ---------------------------- BEGIN; -INSERT INTO `blade_role_menu` VALUES (1123598817738675363, 1123598815738675201, 1123598816738675202), (1123598817738675364, 1123598815738675202, 1123598816738675202), (1123598817738675365, 1123598815738675219, 1123598816738675202), (1123598817738675366, 1123598815738675220, 1123598816738675202), (1123598817738675367, 1123598815738675221, 1123598816738675202), (1123598817738675368, 1123598815738675222, 1123598816738675202), (1123598817738675369, 1123598815738675280, 1123598816738675202), (1123598817738675370, 1123598815738675281, 1123598816738675202), (1123598817738675371, 1123598815738675282, 1123598816738675202), (1123598817738675372, 1123598815738675283, 1123598816738675202), (1123598817738675373, 1123598815738675284, 1123598816738675202), (1123598817738675374, 1123598815738675285, 1123598816738675202), (1123598817738675375, 1123598815738675286, 1123598816738675202), (1123598817738675376, 1123598815738675287, 1123598816738675202), (1123598817738675377, 1123598815738675288, 1123598816738675202), (1123598817738675378, 1123598815738675289, 1123598816738675202), (1123598817738675379, 1123598815738675290, 1123598816738675202), (1123598817738675380, 1123598815738675291, 1123598816738675202), (1123598817738675381, 1123598815738675292, 1123598816738675202), (1123598817738675382, 1123598815738675293, 1123598816738675202), (1123598817738675383, 1123598815738675294, 1123598816738675202), (1123598817738675384, 1123598815738675295, 1123598816738675202), (1123598817738675385, 1123598815738675296, 1123598816738675202), (1123598817738675386, 1123598815738675297, 1123598816738675202), (1123598817738675387, 1123598815738675201, 1123598816738675203), (1123598817738675388, 1123598815738675202, 1123598816738675203), (1123598817738675389, 1123598815738675219, 1123598816738675203), (1123598817738675390, 1123598815738675220, 1123598816738675203), (1123598817738675391, 1123598815738675221, 1123598816738675203), (1123598817738675392, 1123598815738675222, 1123598816738675203), (1123598817738675393, 1123598815738675280, 1123598816738675203), (1123598817738675394, 1123598815738675281, 1123598816738675203), (1123598817738675395, 1123598815738675282, 1123598816738675203), (1123598817738675396, 1123598815738675283, 1123598816738675203), (1123598817738675397, 1123598815738675284, 1123598816738675203), (1123598817738675398, 1123598815738675285, 1123598816738675203), (1123598817738675399, 1123598815738675286, 1123598816738675203), (1123598817738675400, 1123598815738675287, 1123598816738675203), (1123598817738675401, 1123598815738675288, 1123598816738675203), (1123598817738675402, 1123598815738675289, 1123598816738675203), (1123598817738675403, 1123598815738675290, 1123598816738675203), (1123598817738675404, 1123598815738675291, 1123598816738675203), (1123598817738675405, 1123598815738675292, 1123598816738675203), (1123598817738675406, 1123598815738675293, 1123598816738675203), (1123598817738675407, 1123598815738675294, 1123598816738675203), (1123598817738675408, 1123598815738675295, 1123598816738675203), (1123598817738675409, 1123598815738675296, 1123598816738675203), (1123598817738675410, 1123598815738675297, 1123598816738675203), (1123598817738675411, 1123598815738675201, 1123598816738675204), (1123598817738675412, 1123598815738675202, 1123598816738675204), (1123598817738675413, 1123598815738675219, 1123598816738675204), (1123598817738675414, 1123598815738675220, 1123598816738675204), (1123598817738675415, 1123598815738675221, 1123598816738675204), (1123598817738675416, 1123598815738675222, 1123598816738675204), (1123598817738675417, 1123598815738675280, 1123598816738675204), (1123598817738675418, 1123598815738675281, 1123598816738675204), (1123598817738675419, 1123598815738675282, 1123598816738675204), (1123598817738675420, 1123598815738675283, 1123598816738675204), (1123598817738675421, 1123598815738675284, 1123598816738675204), (1123598817738675422, 1123598815738675285, 1123598816738675204), (1123598817738675423, 1123598815738675286, 1123598816738675204), (1123598817738675424, 1123598815738675287, 1123598816738675204), (1123598817738675425, 1123598815738675288, 1123598816738675204), (1123598817738675426, 1123598815738675289, 1123598816738675204), (1123598817738675427, 1123598815738675290, 1123598816738675204), (1123598817738675428, 1123598815738675291, 1123598816738675204), (1123598817738675429, 1123598815738675292, 1123598816738675204), (1123598817738675430, 1123598815738675293, 1123598816738675204), (1123598817738675431, 1123598815738675294, 1123598816738675204), (1123598817738675432, 1123598815738675295, 1123598816738675204), (1123598817738675433, 1123598815738675296, 1123598816738675204), (1123598817738675434, 1123598815738675297, 1123598816738675204), (1123598817738675435, 1123598815738675201, 1123598816738675205), (1123598817738675436, 1123598815738675202, 1123598816738675205), (1123598817738675437, 1123598815738675219, 1123598816738675205), (1123598817738675438, 1123598815738675220, 1123598816738675205), (1123598817738675439, 1123598815738675221, 1123598816738675205), (1123598817738675440, 1123598815738675222, 1123598816738675205), (1123598817738675441, 1123598815738675280, 1123598816738675205), (1123598817738675442, 1123598815738675281, 1123598816738675205), (1123598817738675443, 1123598815738675282, 1123598816738675205), (1123598817738675444, 1123598815738675283, 1123598816738675205), (1123598817738675445, 1123598815738675284, 1123598816738675205), (1123598817738675446, 1123598815738675285, 1123598816738675205), (1123598817738675447, 1123598815738675286, 1123598816738675205), (1123598817738675448, 1123598815738675287, 1123598816738675205), (1123598817738675449, 1123598815738675288, 1123598816738675205), (1123598817738675450, 1123598815738675289, 1123598816738675205), (1123598817738675451, 1123598815738675290, 1123598816738675205), (1123598817738675452, 1123598815738675291, 1123598816738675205), (1123598817738675453, 1123598815738675292, 1123598816738675205), (1123598817738675454, 1123598815738675293, 1123598816738675205), (1123598817738675455, 1123598815738675294, 1123598816738675205), (1123598817738675456, 1123598815738675295, 1123598816738675205), (1123598817738675457, 1123598815738675296, 1123598816738675205), (1123598817738675458, 1123598815738675297, 1123598816738675205), (1149888293856833539, 1123598815738675317, 1123598816738675201), (1149891666312130561, 1123598815738675201, 1123598816738675201), (1149891666370850818, 1123598815738675202, 1123598816738675201), (1149891666437959682, 1123598815738675219, 1123598816738675201), (1149891666505068546, 1123598815738675220, 1123598816738675201), (1149891666555400193, 1123598815738675221, 1123598816738675201), (1149891666614120449, 1123598815738675222, 1123598816738675201), (1149891666651869185, 1123598815738675280, 1123598816738675201), (1149891666723172353, 1123598815738675281, 1123598816738675201), (1149891666765115393, 1123598815738675282, 1123598816738675201), (1149891666815447041, 1123598815738675283, 1123598816738675201), (1149891666844807170, 1123598815738675284, 1123598816738675201), (1149891666886750210, 1123598815738675285, 1123598816738675201), (1149891666924498946, 1123598815738675286, 1123598816738675201), (1149891666966441986, 1123598815738675287, 1123598816738675201), (1149891667012579330, 1123598815738675288, 1123598816738675201), (1149891667054522370, 1123598815738675289, 1123598816738675201), (1149891667109048322, 1123598815738675290, 1123598816738675201), (1149891667146797058, 1123598815738675291, 1123598816738675201), (1149891667197128706, 1123598815738675292, 1123598816738675201), (1149891667234877441, 1123598815738675293, 1123598816738675201), (1149891667272626178, 1123598815738675294, 1123598816738675201), (1149891667314569218, 1123598815738675295, 1123598816738675201), (1149891667343929346, 1123598815738675296, 1123598816738675201), (1149891667398455298, 1123598815738675297, 1123598816738675201), (1149891667440398338, 1123598815738675210, 1123598816738675201), (1149891667478147073, 1123598815738675211, 1123598816738675201), (1149891667524284417, 1123598815738675212, 1123598816738675201), (1149891667574616065, 1123598815738675213, 1123598816738675201), (1149891667608170498, 1123598815738675214, 1123598816738675201), (1149891667641724929, 1123598815738675249, 1123598816738675201), (1149891667671085058, 1123598815738675215, 1123598816738675201), (1149891667708833793, 1123598815738675250, 1123598816738675201), (1149891667746582529, 1123598815738675216, 1123598816738675201), (1149891667784331265, 1123598815738675251, 1123598816738675201), (1149891667822080001, 1123598815738675217, 1123598816738675201), (1149891667843051522, 1123598815738675218, 1123598816738675201), (1149891667889188865, 1123598815738675252, 1123598816738675201), (1149891667926937602, 1123598815738675253, 1123598816738675201), (1149891667947909121, 1123598815738675254, 1123598816738675201), (1149891667989852161, 1123598815738675255, 1123598816738675201), (1149891668015017986, 1123598815738675266, 1123598816738675201), (1149891668061155330, 1123598815738675267, 1123598816738675201), (1149891668086321154, 1123598815738675268, 1123598816738675201), (1149891668136652802, 1123598815738675269, 1123598816738675201), (1149891668199567362, 1123598815738675270, 1123598816738675201), (1149891668262481922, 1123598815738675271, 1123598816738675201), (1149891668321202177, 1123598815738675272, 1123598816738675201), (1149891668367339521, 1123598815738675273, 1123598816738675201), (1149891668405088257, 1123598815738675274, 1123598816738675201), (1149891668438642689, 1123598815738675275, 1123598816738675201), (1149891668472197121, 1123598815738675276, 1123598816738675201), (1149891668509945858, 1123598815738675277, 1123598816738675201), (1149891668568666113, 1123598815738675278, 1123598816738675201), (1149891668631580673, 1123598815738675279, 1123598816738675201), (1149891668669329410, 1123598815738675298, 1123598816738675201), (1149891668719661057, 1123598815738675299, 1123598816738675201), (1149891668757409793, 1123598815738675301, 1123598816738675201), (1149891668803547138, 1123598815738675302, 1123598816738675201), (1149891668849684481, 1123598815738675303, 1123598816738675201), (1149891668883238913, 1123598815738675304, 1123598816738675201), (1149891668920987650, 1123598815738675305, 1123598816738675201), (1149891668950347777, 1123598815738675307, 1123598816738675201), (1149891668983902209, 1123598815738675308, 1123598816738675201), (1149891669013262338, 1123598815738675241, 1123598816738675201), (1149891669034233857, 1123598815738675242, 1123598816738675201), (1149891669055205378, 1123598815738675243, 1123598816738675201), (1149891669105537025, 1123598815738675244, 1123598816738675201), (1149891669164257282, 1123598815738675309, 1123598816738675201), (1149891669210394626, 1123598815738675310, 1123598816738675201), (1149891669243949058, 1123598815738675311, 1123598816738675201), (1149891669285892097, 1123598815738675312, 1123598816738675201), (1149891669336223745, 1123598815738675203, 1123598816738675201), (1149891669365583873, 1123598815738675204, 1123598816738675201), (1149891669394944001, 1123598815738675223, 1123598816738675201), (1149891669441081346, 1123598815738675224, 1123598816738675201), (1149891669487218689, 1123598815738675225, 1123598816738675201), (1149891669533356033, 1123598815738675226, 1123598816738675201), (1149891669571104770, 1123598815738675227, 1123598816738675201), (1149891669642407937, 1123598815738675228, 1123598816738675201), (1149891669671768065, 1123598815738675205, 1123598816738675201), (1149891669696933889, 1123598815738675229, 1123598816738675201), (1149891669743071234, 1123598815738675230, 1123598816738675201), (1149891669797597186, 1123598815738675231, 1123598816738675201), (1149891669847928834, 1123598815738675232, 1123598816738675201), (1149891669919232001, 1123598815738675206, 1123598816738675201), (1149891669973757954, 1123598815738675233, 1123598816738675201), (1149891670019895298, 1123598815738675234, 1123598816738675201), (1149891670045061121, 1123598815738675235, 1123598816738675201), (1149891670095392770, 1123598815738675236, 1123598816738675201), (1149891670137335809, 1123598815738675207, 1123598816738675201), (1149891670196056065, 1123598815738675237, 1123598816738675201), (1149891670229610498, 1123598815738675238, 1123598816738675201), (1149891670267359234, 1123598815738675239, 1123598816738675201), (1149891670292525057, 1123598815738675240, 1123598816738675201), (1149891670355439617, 1123598815738675306, 1123598816738675201), (1149891670380605442, 1123598815738675208, 1123598816738675201), (1149891670443520001, 1123598815738675313, 1123598816738675201), (1149891670481268737, 1123598815738675314, 1123598816738675201), (1149891670506434561, 1123598815738675315, 1123598816738675201), (1149891670569349121, 1123598815738675316, 1123598816738675201), (1149891670594514945, 1123598815738675209, 1123598816738675201), (1149891670657429506, 1123598815738675245, 1123598816738675201), (1149891670682595330, 1123598815738675246, 1123598816738675201), (1149891670711955457, 1123598815738675247, 1123598816738675201), (1149891670745509889, 1123598815738675248, 1123598816738675201), (1149891670804230146, 1123598815738675256, 1123598816738675201), (1149891670841978881, 1123598815738675257, 1123598816738675201), (1149891670879727617, 1123598815738675258, 1123598816738675201), (1149891670913282050, 1123598815738675259, 1123598816738675201), (1149891670959419394, 1123598815738675260, 1123598816738675201), (1149891670988779521, 1123598815738675261, 1123598816738675201), (1149891671039111170, 1123598815738675262, 1123598816738675201), (1149891671068471297, 1123598815738675263, 1123598816738675201), (1149891671110414338, 1123598815738675264, 1123598816738675201), (1149891671152357378, 1123598815738675265, 1123598816738675201), (1161272593873322991, 1161272593873321991, 1123598816738675201), (1161272593873322992, 1161272593873321992, 1123598816738675201), (1161272593873322993, 1161272593873321993, 1123598816738675201), (1161272593873322994, 1161272593873321994, 1123598816738675201), (1161272593873322995, 1161272593873321995, 1123598816738675201), (1161272593873322996, 1164733121140551682, 1123598816738675201), (1161272593873322997, 1164733349637844993, 1123598816738675201), (1161272693873322991, 1164733369658963251, 1123598816738675201), (1161272693873322992, 1164733369658963252, 1123598816738675201), (1161272693873322993, 1164733369658963253, 1123598816738675201), (1161272693873322994, 1164733369658963254, 1123598816738675201), (1161272693873322995, 1164733369658963255, 1123598816738675201), (1161272793873322991, 1164733379658963251, 1123598816738675201), (1161272793873322992, 116473337658963252, 1123598816738675201), (1161272793873322993, 1164733379658963253, 1123598816738675201), (1161272793873322994, 1164733379658963254, 1123598816738675201), (1161272793873322995, 1164733379658963255, 1123598816738675201), (1161272893873322991, 1164733389658963251, 1123598816738675201); +INSERT INTO `blade_role_menu` VALUES (1123598817738675363, 1123598815738675201, 1123598816738675202), (1123598817738675364, 1123598815738675202, 1123598816738675202), (1123598817738675365, 1123598815738675219, 1123598816738675202), (1123598817738675366, 1123598815738675220, 1123598816738675202), (1123598817738675367, 1123598815738675221, 1123598816738675202), (1123598817738675368, 1123598815738675222, 1123598816738675202), (1123598817738675369, 1123598815738675280, 1123598816738675202), (1123598817738675370, 1123598815738675281, 1123598816738675202), (1123598817738675371, 1123598815738675282, 1123598816738675202), (1123598817738675372, 1123598815738675283, 1123598816738675202), (1123598817738675373, 1123598815738675284, 1123598816738675202), (1123598817738675374, 1123598815738675285, 1123598816738675202), (1123598817738675375, 1123598815738675286, 1123598816738675202), (1123598817738675376, 1123598815738675287, 1123598816738675202), (1123598817738675377, 1123598815738675288, 1123598816738675202), (1123598817738675378, 1123598815738675289, 1123598816738675202), (1123598817738675379, 1123598815738675290, 1123598816738675202), (1123598817738675380, 1123598815738675291, 1123598816738675202), (1123598817738675381, 1123598815738675292, 1123598816738675202), (1123598817738675382, 1123598815738675293, 1123598816738675202), (1123598817738675383, 1123598815738675294, 1123598816738675202), (1123598817738675384, 1123598815738675295, 1123598816738675202), (1123598817738675385, 1123598815738675296, 1123598816738675202), (1123598817738675386, 1123598815738675297, 1123598816738675202), (1123598817738675387, 1123598815738675201, 1123598816738675203), (1123598817738675388, 1123598815738675202, 1123598816738675203), (1123598817738675389, 1123598815738675219, 1123598816738675203), (1123598817738675390, 1123598815738675220, 1123598816738675203), (1123598817738675391, 1123598815738675221, 1123598816738675203), (1123598817738675392, 1123598815738675222, 1123598816738675203), (1123598817738675393, 1123598815738675280, 1123598816738675203), (1123598817738675394, 1123598815738675281, 1123598816738675203), (1123598817738675395, 1123598815738675282, 1123598816738675203), (1123598817738675396, 1123598815738675283, 1123598816738675203), (1123598817738675397, 1123598815738675284, 1123598816738675203), (1123598817738675398, 1123598815738675285, 1123598816738675203), (1123598817738675399, 1123598815738675286, 1123598816738675203), (1123598817738675400, 1123598815738675287, 1123598816738675203), (1123598817738675401, 1123598815738675288, 1123598816738675203), (1123598817738675402, 1123598815738675289, 1123598816738675203), (1123598817738675403, 1123598815738675290, 1123598816738675203), (1123598817738675404, 1123598815738675291, 1123598816738675203), (1123598817738675405, 1123598815738675292, 1123598816738675203), (1123598817738675406, 1123598815738675293, 1123598816738675203), (1123598817738675407, 1123598815738675294, 1123598816738675203), (1123598817738675408, 1123598815738675295, 1123598816738675203), (1123598817738675409, 1123598815738675296, 1123598816738675203), (1123598817738675410, 1123598815738675297, 1123598816738675203), (1123598817738675411, 1123598815738675201, 1123598816738675204), (1123598817738675412, 1123598815738675202, 1123598816738675204), (1123598817738675413, 1123598815738675219, 1123598816738675204), (1123598817738675414, 1123598815738675220, 1123598816738675204), (1123598817738675415, 1123598815738675221, 1123598816738675204), (1123598817738675416, 1123598815738675222, 1123598816738675204), (1123598817738675417, 1123598815738675280, 1123598816738675204), (1123598817738675418, 1123598815738675281, 1123598816738675204), (1123598817738675419, 1123598815738675282, 1123598816738675204), (1123598817738675420, 1123598815738675283, 1123598816738675204), (1123598817738675421, 1123598815738675284, 1123598816738675204), (1123598817738675422, 1123598815738675285, 1123598816738675204), (1123598817738675423, 1123598815738675286, 1123598816738675204), (1123598817738675424, 1123598815738675287, 1123598816738675204), (1123598817738675425, 1123598815738675288, 1123598816738675204), (1123598817738675426, 1123598815738675289, 1123598816738675204), (1123598817738675427, 1123598815738675290, 1123598816738675204), (1123598817738675428, 1123598815738675291, 1123598816738675204), (1123598817738675429, 1123598815738675292, 1123598816738675204), (1123598817738675430, 1123598815738675293, 1123598816738675204), (1123598817738675431, 1123598815738675294, 1123598816738675204), (1123598817738675432, 1123598815738675295, 1123598816738675204), (1123598817738675433, 1123598815738675296, 1123598816738675204), (1123598817738675434, 1123598815738675297, 1123598816738675204), (1123598817738675435, 1123598815738675201, 1123598816738675205), (1123598817738675436, 1123598815738675202, 1123598816738675205), (1123598817738675437, 1123598815738675219, 1123598816738675205), (1123598817738675438, 1123598815738675220, 1123598816738675205), (1123598817738675439, 1123598815738675221, 1123598816738675205), (1123598817738675440, 1123598815738675222, 1123598816738675205), (1123598817738675441, 1123598815738675280, 1123598816738675205), (1123598817738675442, 1123598815738675281, 1123598816738675205), (1123598817738675443, 1123598815738675282, 1123598816738675205), (1123598817738675444, 1123598815738675283, 1123598816738675205), (1123598817738675445, 1123598815738675284, 1123598816738675205), (1123598817738675446, 1123598815738675285, 1123598816738675205), (1123598817738675447, 1123598815738675286, 1123598816738675205), (1123598817738675448, 1123598815738675287, 1123598816738675205), (1123598817738675449, 1123598815738675288, 1123598816738675205), (1123598817738675450, 1123598815738675289, 1123598816738675205), (1123598817738675451, 1123598815738675290, 1123598816738675205), (1123598817738675452, 1123598815738675291, 1123598816738675205), (1123598817738675453, 1123598815738675292, 1123598816738675205), (1123598817738675454, 1123598815738675293, 1123598816738675205), (1123598817738675455, 1123598815738675294, 1123598816738675205), (1123598817738675456, 1123598815738675295, 1123598816738675205), (1123598817738675457, 1123598815738675296, 1123598816738675205), (1123598817738675458, 1123598815738675297, 1123598816738675205), (1149888293856833539, 1123598815738675317, 1123598816738675201), (1149891666312130561, 1123598815738675201, 1123598816738675201), (1149891666370850818, 1123598815738675202, 1123598816738675201), (1149891666437959682, 1123598815738675219, 1123598816738675201), (1149891666505068546, 1123598815738675220, 1123598816738675201), (1149891666555400193, 1123598815738675221, 1123598816738675201), (1149891666614120449, 1123598815738675222, 1123598816738675201), (1149891666651869185, 1123598815738675280, 1123598816738675201), (1149891666723172353, 1123598815738675281, 1123598816738675201), (1149891666765115393, 1123598815738675282, 1123598816738675201), (1149891666815447041, 1123598815738675283, 1123598816738675201), (1149891666844807170, 1123598815738675284, 1123598816738675201), (1149891666886750210, 1123598815738675285, 1123598816738675201), (1149891666924498946, 1123598815738675286, 1123598816738675201), (1149891666966441986, 1123598815738675287, 1123598816738675201), (1149891667012579330, 1123598815738675288, 1123598816738675201), (1149891667054522370, 1123598815738675289, 1123598816738675201), (1149891667109048322, 1123598815738675290, 1123598816738675201), (1149891667146797058, 1123598815738675291, 1123598816738675201), (1149891667197128706, 1123598815738675292, 1123598816738675201), (1149891667234877441, 1123598815738675293, 1123598816738675201), (1149891667272626178, 1123598815738675294, 1123598816738675201), (1149891667314569218, 1123598815738675295, 1123598816738675201), (1149891667343929346, 1123598815738675296, 1123598816738675201), (1149891667398455298, 1123598815738675297, 1123598816738675201), (1149891667440398338, 1123598815738675210, 1123598816738675201), (1149891667478147073, 1123598815738675211, 1123598816738675201), (1149891667524284417, 1123598815738675212, 1123598816738675201), (1149891667574616065, 1123598815738675213, 1123598816738675201), (1149891667608170498, 1123598815738675214, 1123598816738675201), (1149891667641724929, 1123598815738675249, 1123598816738675201), (1149891667671085058, 1123598815738675215, 1123598816738675201), (1149891667708833793, 1123598815738675250, 1123598816738675201), (1149891667746582529, 1123598815738675216, 1123598816738675201), (1149891667784331265, 1123598815738675251, 1123598816738675201), (1149891667822080001, 1123598815738675217, 1123598816738675201), (1149891667843051522, 1123598815738675218, 1123598816738675201), (1149891667889188865, 1123598815738675252, 1123598816738675201), (1149891667926937602, 1123598815738675253, 1123598816738675201), (1149891667947909121, 1123598815738675254, 1123598816738675201), (1149891667989852161, 1123598815738675255, 1123598816738675201), (1149891668015017986, 1123598815738675266, 1123598816738675201), (1149891668061155330, 1123598815738675267, 1123598816738675201), (1149891668086321154, 1123598815738675268, 1123598816738675201), (1149891668136652802, 1123598815738675269, 1123598816738675201), (1149891668199567362, 1123598815738675270, 1123598816738675201), (1149891668262481922, 1123598815738675271, 1123598816738675201), (1149891668321202177, 1123598815738675272, 1123598816738675201), (1149891668367339521, 1123598815738675273, 1123598816738675201), (1149891668405088257, 1123598815738675274, 1123598816738675201), (1149891668438642689, 1123598815738675275, 1123598816738675201), (1149891668472197121, 1123598815738675276, 1123598816738675201), (1149891668509945858, 1123598815738675277, 1123598816738675201), (1149891668568666113, 1123598815738675278, 1123598816738675201), (1149891668631580673, 1123598815738675279, 1123598816738675201), (1149891668669329410, 1123598815738675298, 1123598816738675201), (1149891668719661057, 1123598815738675299, 1123598816738675201), (1149891668757409793, 1123598815738675301, 1123598816738675201), (1149891668803547138, 1123598815738675302, 1123598816738675201), (1149891668849684481, 1123598815738675303, 1123598816738675201), (1149891668883238913, 1123598815738675304, 1123598816738675201), (1149891668920987650, 1123598815738675305, 1123598816738675201), (1149891668950347777, 1123598815738675307, 1123598816738675201), (1149891668983902209, 1123598815738675308, 1123598816738675201), (1149891669013262338, 1123598815738675241, 1123598816738675201), (1149891669034233857, 1123598815738675242, 1123598816738675201), (1149891669055205378, 1123598815738675243, 1123598816738675201), (1149891669105537025, 1123598815738675244, 1123598816738675201), (1149891669164257282, 1123598815738675309, 1123598816738675201), (1149891669210394626, 1123598815738675310, 1123598816738675201), (1149891669243949058, 1123598815738675311, 1123598816738675201), (1149891669285892097, 1123598815738675312, 1123598816738675201), (1149891669336223745, 1123598815738675203, 1123598816738675201), (1149891669365583873, 1123598815738675204, 1123598816738675201), (1149891669394944001, 1123598815738675223, 1123598816738675201), (1149891669441081346, 1123598815738675224, 1123598816738675201), (1149891669487218689, 1123598815738675225, 1123598816738675201), (1149891669533356033, 1123598815738675226, 1123598816738675201), (1149891669571104770, 1123598815738675227, 1123598816738675201), (1149891669642407937, 1123598815738675228, 1123598816738675201), (1149891669671768065, 1123598815738675205, 1123598816738675201), (1149891669696933889, 1123598815738675229, 1123598816738675201), (1149891669743071234, 1123598815738675230, 1123598816738675201), (1149891669797597186, 1123598815738675231, 1123598816738675201), (1149891669847928834, 1123598815738675232, 1123598816738675201), (1149891669919232001, 1123598815738675206, 1123598816738675201), (1149891669973757954, 1123598815738675233, 1123598816738675201), (1149891670019895298, 1123598815738675234, 1123598816738675201), (1149891670045061121, 1123598815738675235, 1123598816738675201), (1149891670095392770, 1123598815738675236, 1123598816738675201), (1149891670137335809, 1123598815738675207, 1123598816738675201), (1149891670196056065, 1123598815738675237, 1123598816738675201), (1149891670229610498, 1123598815738675238, 1123598816738675201), (1149891670267359234, 1123598815738675239, 1123598816738675201), (1149891670292525057, 1123598815738675240, 1123598816738675201), (1149891670355439617, 1123598815738675306, 1123598816738675201), (1149891670380605442, 1123598815738675208, 1123598816738675201), (1149891670443520001, 1123598815738675313, 1123598816738675201), (1149891670481268737, 1123598815738675314, 1123598816738675201), (1149891670506434561, 1123598815738675315, 1123598816738675201), (1149891670569349121, 1123598815738675316, 1123598816738675201), (1149891670594514945, 1123598815738675209, 1123598816738675201), (1149891670657429506, 1123598815738675245, 1123598816738675201), (1149891670682595330, 1123598815738675246, 1123598816738675201), (1149891670711955457, 1123598815738675247, 1123598816738675201), (1149891670745509889, 1123598815738675248, 1123598816738675201), (1149891670804230146, 1123598815738675256, 1123598816738675201), (1149891670841978881, 1123598815738675257, 1123598816738675201), (1149891670879727617, 1123598815738675258, 1123598816738675201), (1149891670913282050, 1123598815738675259, 1123598816738675201), (1149891670959419394, 1123598815738675260, 1123598816738675201), (1149891670988779521, 1123598815738675261, 1123598816738675201), (1149891671039111170, 1123598815738675262, 1123598816738675201), (1149891671068471297, 1123598815738675263, 1123598816738675201), (1149891671110414338, 1123598815738675264, 1123598816738675201), (1149891671152357378, 1123598815738675265, 1123598816738675201), (1161272593873322991, 1161272593873321991, 1123598816738675201), (1161272593873322992, 1161272593873321992, 1123598816738675201), (1161272593873322993, 1161272593873321993, 1123598816738675201), (1161272593873322994, 1161272593873321994, 1123598816738675201), (1161272593873322995, 1161272593873321995, 1123598816738675201), (1161272593873322996, 1164733121140551682, 1123598816738675201), (1161272593873322997, 1164733349637844993, 1123598816738675201), (1161272693873322991, 1164733369658963251, 1123598816738675201), (1161272693873322992, 1164733369658963252, 1123598816738675201), (1161272693873322993, 1164733369658963253, 1123598816738675201), (1161272693873322994, 1164733369658963254, 1123598816738675201), (1161272693873322995, 1164733369658963255, 1123598816738675201), (1161272793873322991, 1164733379658963251, 1123598816738675201), (1161272793873322992, 116473337658963252, 1123598816738675201), (1161272793873322993, 1164733379658963253, 1123598816738675201), (1161272793873322994, 1164733379658963254, 1123598816738675201), (1161272793873322995, 1164733379658963255, 1123598816738675201), (1161272893873222991, 1164733389658962251, 1123598816738675201), (1161272893873222992, 1164733389658962252, 1123598816738675201), (1161272893873222993, 1164733389658962253, 1123598816738675201), (1161272893873222994, 1164733389658962254, 1123598816738675201), (1161272893873222995, 1164733389658962255, 1123598816738675201), (1161272893873222996, 1164733389658962256, 1123598816738675201), (1161272893873322991, 1164733389658963251, 1123598816738675201); COMMIT; -- ---------------------------- @@ -493,6 +493,31 @@ CREATE TABLE `blade_scope_data` ( PRIMARY KEY (`id`) USING BTREE ) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '数据权限表'; +-- ---------------------------- +-- Table structure for blade_sms +-- ---------------------------- +DROP TABLE IF EXISTS `blade_sms`; +CREATE TABLE `blade_sms` ( + `id` bigint(64) NOT NULL COMMENT '主键', + `tenant_id` varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户ID', + `category` int(2) NULL DEFAULT NULL COMMENT '分类', + `sms_code` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '资源编号', + `template_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '模板ID', + `access_key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'accessKey', + `secret_key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'secretKey', + `region_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'regionId', + `sign_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '短信签名', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `create_user` bigint(64) NULL DEFAULT NULL COMMENT '创建人', + `create_dept` bigint(64) NULL DEFAULT NULL COMMENT '创建部门', + `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', + `update_user` bigint(64) NULL DEFAULT NULL COMMENT '修改人', + `update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', + `status` int(2) NULL DEFAULT NULL COMMENT '状态', + `is_deleted` int(2) NULL DEFAULT 0 COMMENT '是否已删除', + PRIMARY KEY (`id`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '短信配置表'; + -- ---------------------------- -- Table structure for blade_tenant -- ---------------------------- diff --git a/doc/sql/oracle/bladex-saber-oracle.sql b/doc/sql/oracle/bladex-saber-oracle.sql index d1dbea23..a0e8ede6 100644 --- a/doc/sql/oracle/bladex-saber-oracle.sql +++ b/doc/sql/oracle/bladex-saber-oracle.sql @@ -11,14 +11,14 @@ Target Server Version : 110200 File Encoding : 65001 - Date: 02/01/2020 14:04:40 + Date: 22/02/2020 00:20:17 */ -- ---------------------------- -- Table structure for BLADE_CLIENT -- ---------------------------- --- DROP TABLE "BLADE_CLIENT"; +DROP TABLE "BLADE_CLIENT"; CREATE TABLE "BLADE_CLIENT" ( "ID" NUMBER(20) NOT NULL , "CLIENT_ID" NVARCHAR2(48) NOT NULL , @@ -38,7 +38,7 @@ CREATE TABLE "BLADE_CLIENT" ( "UPDATE_USER" NUMBER(20) , "UPDATE_TIME" DATE , "STATUS" NUMBER(11) NOT NULL , - "IS_DELETED" NUMBER(11) NOT NULL + "IS_DELETED" NUMBER(11) NOT NULL ) TABLESPACE "BLADEX" LOGGING @@ -46,8 +46,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -87,7 +87,7 @@ COMMIT; -- ---------------------------- -- Table structure for BLADE_CODE -- ---------------------------- --- DROP TABLE "BLADE_CODE"; +DROP TABLE "BLADE_CODE"; CREATE TABLE "BLADE_CODE" ( "ID" NUMBER(20) NOT NULL , "DATASOURCE_ID" NUMBER(20) , @@ -101,7 +101,7 @@ CREATE TABLE "BLADE_CODE" ( "WRAP_MODE" NUMBER(11) , "API_PATH" NCLOB , "WEB_PATH" NCLOB , - "IS_DELETED" NUMBER(11) + "IS_DELETED" NUMBER(11) ) TABLESPACE "BLADEX" LOGGING @@ -109,8 +109,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -143,7 +143,7 @@ COMMIT; -- ---------------------------- -- Table structure for BLADE_DATASOURCE -- ---------------------------- --- DROP TABLE "BLADE_DATASOURCE"; +DROP TABLE "BLADE_DATASOURCE"; CREATE TABLE "BLADE_DATASOURCE" ( "ID" NUMBER(20) NOT NULL , "NAME" NVARCHAR2(100) , @@ -158,7 +158,7 @@ CREATE TABLE "BLADE_DATASOURCE" ( "UPDATE_USER" NUMBER(20) , "UPDATE_TIME" DATE , "STATUS" NUMBER(11) , - "IS_DELETED" NUMBER(11) + "IS_DELETED" NUMBER(11) ) TABLESPACE "BLADEX" LOGGING @@ -166,8 +166,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -203,7 +203,7 @@ COMMIT; -- ---------------------------- -- Table structure for BLADE_DEPT -- ---------------------------- --- DROP TABLE "BLADE_DEPT"; +DROP TABLE "BLADE_DEPT"; CREATE TABLE "BLADE_DEPT" ( "ID" NUMBER(20) NOT NULL , "TENANT_ID" NVARCHAR2(12) , @@ -214,7 +214,7 @@ CREATE TABLE "BLADE_DEPT" ( "FULL_NAME" NVARCHAR2(45) , "SORT" NUMBER(11) , "REMARK" NVARCHAR2(255) , - "IS_DELETED" NUMBER(11) + "IS_DELETED" NUMBER(11) ) TABLESPACE "BLADEX" LOGGING @@ -222,8 +222,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -255,7 +255,7 @@ COMMIT; -- ---------------------------- -- Table structure for BLADE_DICT -- ---------------------------- --- DROP TABLE "BLADE_DICT"; +DROP TABLE "BLADE_DICT"; CREATE TABLE "BLADE_DICT" ( "ID" NUMBER(20) NOT NULL , "PARENT_ID" NUMBER(20) , @@ -265,7 +265,7 @@ CREATE TABLE "BLADE_DICT" ( "SORT" NUMBER(11) , "REMARK" NVARCHAR2(255) , "IS_SEALED" NUMBER(11) , - "IS_DELETED" NUMBER(11) + "IS_DELETED" NUMBER(11) ) TABLESPACE "BLADEX" LOGGING @@ -273,8 +273,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -341,12 +341,17 @@ INSERT INTO "BLADE_DICT" VALUES ('1123598814738676225', '1123598814738676224', ' INSERT INTO "BLADE_DICT" VALUES ('1123598814738676226', '1123598814738676224', 'oss', '2', 'qiniu', '2', NULL, '0', '0'); INSERT INTO "BLADE_DICT" VALUES ('1123598814738676227', '1123598814738676224', 'oss', '3', 'ali', '3', NULL, '0', '0'); INSERT INTO "BLADE_DICT" VALUES ('1123598814738676228', '1123598814738676224', 'oss', '4', 'tencent', '4', NULL, '0', '0'); +INSERT INTO "BLADE_DICT" VALUES ('1123598814738677220', '0', 'sms', '-1', '短信服务类型', '11', NULL, '0', '0'); +INSERT INTO "BLADE_DICT" VALUES ('1123598814738677221', '1123598814738677220', 'sms', '1', 'yunpian', '1', NULL, '0', '0'); +INSERT INTO "BLADE_DICT" VALUES ('1123598814738677222', '1123598814738677220', 'sms', '2', 'qiniu', '2', NULL, '0', '0'); +INSERT INTO "BLADE_DICT" VALUES ('1123598814738677223', '1123598814738677220', 'sms', '3', 'ali', '3', NULL, '0', '0'); +INSERT INTO "BLADE_DICT" VALUES ('1123598814738677224', '1123598814738677220', 'sms', '4', 'tencent', '4', NULL, '0', '0'); COMMIT; -- ---------------------------- -- Table structure for BLADE_DICT_BIZ -- ---------------------------- --- DROP TABLE "BLADE_DICT_BIZ"; +DROP TABLE "BLADE_DICT_BIZ"; CREATE TABLE "BLADE_DICT_BIZ" ( "ID" NUMBER(20) NOT NULL , "TENANT_ID" NVARCHAR2(12) , @@ -357,7 +362,7 @@ CREATE TABLE "BLADE_DICT_BIZ" ( "SORT" NUMBER(11) , "REMARK" NVARCHAR2(255) , "IS_SEALED" NUMBER(11) , - "IS_DELETED" NUMBER(11) + "IS_DELETED" NUMBER(11) ) TABLESPACE "BLADEX" LOGGING @@ -365,8 +370,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -390,7 +395,7 @@ COMMENT ON TABLE "BLADE_DICT_BIZ" IS '数据源配置表'; -- ---------------------------- -- Table structure for BLADE_LOG_API -- ---------------------------- --- DROP TABLE "BLADE_LOG_API"; +DROP TABLE "BLADE_LOG_API"; CREATE TABLE "BLADE_LOG_API" ( "ID" NUMBER(20) NOT NULL , "TENANT_ID" NVARCHAR2(12) , @@ -409,7 +414,7 @@ CREATE TABLE "BLADE_LOG_API" ( "PARAMS" NCLOB , "TIME" NVARCHAR2(64) , "CREATE_BY" NVARCHAR2(64) , - "CREATE_TIME" DATE + "CREATE_TIME" DATE ) TABLESPACE "BLADEX" LOGGING @@ -417,8 +422,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -450,7 +455,7 @@ COMMENT ON TABLE "BLADE_LOG_API" IS '接口日志表'; -- ---------------------------- -- Table structure for BLADE_LOG_ERROR -- ---------------------------- --- DROP TABLE "BLADE_LOG_ERROR"; +DROP TABLE "BLADE_LOG_ERROR"; CREATE TABLE "BLADE_LOG_ERROR" ( "ID" NUMBER(20) NOT NULL , "TENANT_ID" NVARCHAR2(12) , @@ -471,7 +476,7 @@ CREATE TABLE "BLADE_LOG_ERROR" ( "METHOD_NAME" NVARCHAR2(255) , "PARAMS" NCLOB , "CREATE_BY" NVARCHAR2(64) , - "CREATE_TIME" DATE + "CREATE_TIME" DATE ) TABLESPACE "BLADEX" LOGGING @@ -479,8 +484,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -514,7 +519,7 @@ COMMENT ON TABLE "BLADE_LOG_ERROR" IS '错误日志表'; -- ---------------------------- -- Table structure for BLADE_LOG_USUAL -- ---------------------------- --- DROP TABLE "BLADE_LOG_USUAL"; +DROP TABLE "BLADE_LOG_USUAL"; CREATE TABLE "BLADE_LOG_USUAL" ( "ID" NUMBER(20) NOT NULL , "TENANT_ID" NVARCHAR2(12) , @@ -533,7 +538,7 @@ CREATE TABLE "BLADE_LOG_USUAL" ( "USER_AGENT" NVARCHAR2(1000) , "PARAMS" NCLOB , "CREATE_BY" NVARCHAR2(64) , - "CREATE_TIME" DATE + "CREATE_TIME" DATE ) TABLESPACE "BLADEX" LOGGING @@ -541,8 +546,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -574,7 +579,7 @@ COMMENT ON TABLE "BLADE_LOG_USUAL" IS '通用日志表'; -- ---------------------------- -- Table structure for BLADE_MENU -- ---------------------------- --- DROP TABLE "BLADE_MENU"; +DROP TABLE "BLADE_MENU"; CREATE TABLE "BLADE_MENU" ( "ID" NUMBER(20) NOT NULL , "PARENT_ID" NUMBER(20) , @@ -588,7 +593,7 @@ CREATE TABLE "BLADE_MENU" ( "ACTION" NUMBER(11) , "IS_OPEN" NUMBER(11) , "REMARK" NVARCHAR2(255) , - "IS_DELETED" NUMBER(11) + "IS_DELETED" NUMBER(11) ) TABLESPACE "BLADEX" LOGGING @@ -596,8 +601,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -624,55 +629,6 @@ COMMENT ON TABLE "BLADE_MENU" IS '菜单表'; -- ---------------------------- -- Records of BLADE_MENU -- ---------------------------- -INSERT INTO "BLADE_MENU" VALUES ('1123598815738675310', '1123598815738675309', 'data_scope_setting', '权限配置', 'setting', NULL, 'setting', '1', '2', '2', '1', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1123598815738675311', '1123598815738675307', 'api_scope', '接口权限', 'menu', '/authority/apiscope', 'iconfont icon-iconset0216', '3', '1', '0', '1', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1123598815738675312', '1123598815738675311', 'api_scope_setting', '权限配置', 'setting', NULL, 'setting', '1', '2', '2', '1', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1123598815738675313', '1123598815738675208', 'topmenu_add', '新增', 'add', '/system/topmenu/add', 'plus', '1', '2', '1', '1', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1123598815738675314', '1123598815738675208', 'topmenu_edit', '修改', 'edit', '/system/topmenu/edit', 'form', '2', '2', '2', '1', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1123598815738675315', '1123598815738675208', 'topmenu_delete', '删除', 'delete', '/api/blade-system/topmenu/remove', 'delete', '3', '2', '3', '1', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1123598815738675316', '1123598815738675208', 'topmenu_view', '查看', 'view', '/system/topmenu/view', 'file-text', '4', '2', '2', '1', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1123598815738675317', '1123598815738675208', 'topmenu_setting', '菜单配置', 'setting', NULL, 'setting', '5', '2', '1', '1', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1161272593873321991', '1123598815738675217', 'datasource', '数据源管理', 'menu', '/tool/datasource', 'iconfont icon-caidanguanli', '2', '1', '0', '1', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1161272593873321992', '1161272593873321991', 'datasource_add', '新增', 'add', '/tool/datasource/add', 'plus', '1', '2', '1', '1', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1161272593873321993', '1161272593873321991', 'datasource_edit', '修改', 'edit', '/tool/datasource/edit', 'form', '2', '2', '2', '2', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1161272593873321994', '1161272593873321991', 'datasource_delete', '删除', 'delete', '/api/blade-develop/datasource/remove', 'delete', '3', '2', '3', '3', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1161272593873321995', '1161272593873321991', 'datasource_view', '查看', 'view', '/tool/datasource/view', 'file-text', '4', '2', '2', '2', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1164733121140551682', '1123598815738675217', 'form', '表单设计', 'form', 'https://form.avuejs.com/', 'iconfont iconicon_compile', '3', '1', '0', '2', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1164733349637844993', '1123598815738675217', 'crud', '表格设计', 'crud', 'https://crud.avuejs.com/', 'iconfont iconicon_work', '4', '1', '0', '2', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1164733369658963251', '1123598815738675210', 'elk', 'ELK监控', 'menu', 'http://localhost:5601/', 'iconfont iconicon_cspace', '3', '1', '0', '2', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1164733369658963252', '1123598815738675210', 'zipkin', 'Zipkin监控', 'menu', 'http://localhost:9411/', 'iconfont iconicon_task', '4', '1', '0', '2', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1164733369658963253', '1123598815738675210', 'turbine', 'Turbine监控', 'menu', 'http://localhost:7003/hystrix', 'iconfont iconicon_subordinate', '5', '1', '0', '2', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1164733369658963254', '1123598815738675210', 'sentinel', 'Sentinel管理', 'menu', 'http://localhost:8858', 'iconfont iconicon_safety', '6', '1', '0', '2', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1164733369658963255', '1123598815738675210', 'es', 'Elasticsearch管理', 'menu', 'http://localhost:9100/', 'iconfont iconfont iconicon_search', '7', '1', '0', '2', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1164733379658963251', '1123598815738675203', 'dictbiz', '业务字典', 'menu', '/system/dictbiz', 'iconfont iconicon_study', '3', '1', '0', '1', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1164733379658963252', '1164733379658963251', 'dictbiz_add', '新增', 'add', '/system/dictbiz/add', 'plus', '1', '2', '1', '1', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1164733379658963253', '1164733379658963251', 'dictbiz_edit', '修改', 'edit', '/system/dictbiz/edit', 'form', '2', '2', '2', '1', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1164733379658963254', '1164733379658963251', 'dictbiz_delete', '删除', 'delete', '/api/blade-system/dict-biz/remove', 'delete', '3', '2', '3', '1', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1164733379658963255', '1164733379658963251', 'dictbiz_view', '查看', 'view', '/system/dictbiz/view', 'file-text', '4', '2', '2', '1', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1164733389658963251', '1123598815738675298', 'xxljob', '任务调度', 'menu', 'http://localhost:7009/xxl-job-admin', 'iconfont iconicon_cspace', '2', '1', '0', '2', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1123598815738675201', '0', 'desk', '工作台', 'menu', '/desk', 'iconfont iconicon_airplay', '1', '1', '0', '1', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1123598815738675202', '1123598815738675201', 'notice', '通知公告', 'menu', '/desk/notice', 'iconfont iconicon_sms', '1', '1', '0', '1', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1123598815738675203', '0', 'system', '系统管理', 'menu', '/system', 'iconfont iconicon_setting', '99', '1', '0', '1', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1123598815738675204', '1123598815738675203', 'user', '用户管理', 'menu', '/system/user', 'iconfont iconicon_principal', '1', '1', '0', '1', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1123598815738675205', '1123598815738675203', 'dept', '机构管理', 'menu', '/system/dept', 'iconfont iconicon_group', '2', '1', '0', '1', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1123598815738675206', '1123598815738675203', 'dict', '系统字典', 'menu', '/system/dict', 'iconfont iconicon_addresslist', '3', '1', '0', '1', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1123598815738675207', '1123598815738675203', 'menu', '菜单管理', 'menu', '/system/menu', 'iconfont iconicon_subordinate', '4', '1', '0', '1', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1123598815738675208', '1123598815738675203', 'topmenu', '顶部菜单', 'menu', '/system/topmenu', 'iconfont icon-canshu', '5', '1', '0', '1', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1123598815738675209', '1123598815738675203', 'param', '参数管理', 'menu', '/system/param', 'iconfont iconicon_community_line', '6', '1', '0', '1', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1123598815738675210', '0', 'monitor', '系统监控', 'menu', '/monitor', 'iconfont icon-yanzhengma', '3', '1', '0', '1', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1123598815738675211', '1123598815738675210', 'doc', '接口文档', 'menu', 'http://localhost/doc.html', 'iconfont iconicon_study', '1', '1', '0', '2', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1123598815738675212', '1123598815738675210', 'admin', '服务治理', 'menu', 'http://localhost:7002', 'iconfont icon-canshu', '2', '1', '0', '2', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1123598815738675213', '1123598815738675210', 'log', '日志管理', 'menu', '/monitor/log', 'iconfont iconicon_doc', '8', '1', '0', '1', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1123598815738675214', '1123598815738675213', 'log_usual', '通用日志', 'menu', '/monitor/log/usual', NULL, '1', '1', '0', '1', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1123598815738675215', '1123598815738675213', 'log_api', '接口日志', 'menu', '/monitor/log/api', NULL, '2', '1', '0', '1', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1123598815738675216', '1123598815738675213', 'log_error', '错误日志', 'menu', '/monitor/log/error', NULL, '3', '1', '0', '1', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1123598815738675217', '0', 'tool', '研发工具', 'menu', '/tool', 'iconfont icon-wxbgongju', '4', '1', '0', '1', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1123598815738675218', '1123598815738675217', 'code', '代码生成', 'menu', '/tool/code', 'iconfont iconicon_savememo', '1', '1', '0', '1', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1123598815738675219', '1123598815738675202', 'notice_add', '新增', 'add', '/desk/notice/add', 'plus', '1', '2', '1', '1', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1123598815738675220', '1123598815738675202', 'notice_edit', '修改', 'edit', '/desk/notice/edit', 'form', '2', '2', '2', '1', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1123598815738675221', '1123598815738675202', 'notice_delete', '删除', 'delete', '/api/blade-desk/notice/remove', 'delete', '3', '2', '3', '1', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1123598815738675222', '1123598815738675202', 'notice_view', '查看', 'view', '/desk/notice/view', 'file-text', '4', '2', '2', '1', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1123598815738675223', '1123598815738675204', 'user_add', '新增', 'add', '/system/user/add', 'plus', '1', '2', '1', '1', NULL, '0'); INSERT INTO "BLADE_MENU" VALUES ('1123598815738675224', '1123598815738675204', 'user_edit', '修改', 'edit', '/system/user/edit', 'form', '2', '2', '2', '1', NULL, '0'); INSERT INTO "BLADE_MENU" VALUES ('1123598815738675225', '1123598815738675204', 'user_delete', '删除', 'delete', '/api/blade-user/remove', 'delete', '3', '2', '3', '1', NULL, '0'); INSERT INTO "BLADE_MENU" VALUES ('1123598815738675226', '1123598815738675204', 'user_role', '角色配置', 'role', NULL, 'user-add', '4', '2', '1', '1', NULL, '0'); @@ -757,12 +713,67 @@ INSERT INTO "BLADE_MENU" VALUES ('1123598815738675305', '1123598815738675299', ' INSERT INTO "BLADE_MENU" VALUES ('1123598815738675307', '0', 'authority', '权限管理', 'menu', '/authority', 'iconfont icon-bofangqi-suoping', '98', '1', '0', '1', NULL, '0'); INSERT INTO "BLADE_MENU" VALUES ('1123598815738675308', '1123598815738675307', 'role', '角色管理', 'menu', '/authority/role', 'iconfont iconicon_boss', '1', '1', '0', '1', NULL, '0'); INSERT INTO "BLADE_MENU" VALUES ('1123598815738675309', '1123598815738675307', 'data_scope', '数据权限', 'menu', '/authority/datascope', 'iconfont icon-shujuzhanshi2', '2', '1', '0', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1164733389658962251', '1123598815738675298', 'sms', '短信配置', 'menu', '/resource/sms', 'iconfont iconicon_message', '2', '1', '0', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1164733389658962252', '1164733389658962251', 'sms_add', '新增', 'add', '/resource/sms/add', 'plus', '1', '2', '1', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1164733389658962253', '1164733389658962251', 'sms_edit', '修改', 'edit', '/resource/sms/edit', 'form', '2', '2', '2', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1164733389658962254', '1164733389658962251', 'sms_delete', '删除', 'delete', '/api/blade-resource/sms/remove', 'delete', '3', '2', '3', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1164733389658962255', '1164733389658962251', 'sms_view', '查看', 'view', '/resource/sms/view', 'file-text', '4', '2', '2', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1164733389658962256', '1164733389658962251', 'sms_enable', '启用', 'enable', '/api/blade-resource/sms/enable', 'key', '5', '2', '2', '2', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1123598815738675310', '1123598815738675309', 'data_scope_setting', '权限配置', 'setting', NULL, 'setting', '1', '2', '2', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1123598815738675311', '1123598815738675307', 'api_scope', '接口权限', 'menu', '/authority/apiscope', 'iconfont icon-iconset0216', '3', '1', '0', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1123598815738675312', '1123598815738675311', 'api_scope_setting', '权限配置', 'setting', NULL, 'setting', '1', '2', '2', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1123598815738675313', '1123598815738675208', 'topmenu_add', '新增', 'add', '/system/topmenu/add', 'plus', '1', '2', '1', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1123598815738675314', '1123598815738675208', 'topmenu_edit', '修改', 'edit', '/system/topmenu/edit', 'form', '2', '2', '2', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1123598815738675315', '1123598815738675208', 'topmenu_delete', '删除', 'delete', '/api/blade-system/topmenu/remove', 'delete', '3', '2', '3', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1123598815738675316', '1123598815738675208', 'topmenu_view', '查看', 'view', '/system/topmenu/view', 'file-text', '4', '2', '2', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1123598815738675317', '1123598815738675208', 'topmenu_setting', '菜单配置', 'setting', NULL, 'setting', '5', '2', '1', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1161272593873321991', '1123598815738675217', 'datasource', '数据源管理', 'menu', '/tool/datasource', 'iconfont icon-caidanguanli', '2', '1', '0', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1161272593873321992', '1161272593873321991', 'datasource_add', '新增', 'add', '/tool/datasource/add', 'plus', '1', '2', '1', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1161272593873321993', '1161272593873321991', 'datasource_edit', '修改', 'edit', '/tool/datasource/edit', 'form', '2', '2', '2', '2', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1161272593873321994', '1161272593873321991', 'datasource_delete', '删除', 'delete', '/api/blade-develop/datasource/remove', 'delete', '3', '2', '3', '3', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1161272593873321995', '1161272593873321991', 'datasource_view', '查看', 'view', '/tool/datasource/view', 'file-text', '4', '2', '2', '2', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1164733121140551682', '1123598815738675217', 'form', '表单设计', 'form', 'https://form.avuejs.com/', 'iconfont iconicon_compile', '3', '1', '0', '2', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1164733349637844993', '1123598815738675217', 'crud', '表格设计', 'crud', 'https://crud.avuejs.com/', 'iconfont iconicon_work', '4', '1', '0', '2', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1164733369658963251', '1123598815738675210', 'elk', 'ELK监控', 'menu', 'http://localhost:5601/', 'iconfont iconicon_cspace', '3', '1', '0', '2', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1164733369658963252', '1123598815738675210', 'zipkin', 'Zipkin监控', 'menu', 'http://localhost:9411/', 'iconfont iconicon_task', '4', '1', '0', '2', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1164733369658963253', '1123598815738675210', 'turbine', 'Turbine监控', 'menu', 'http://localhost:7003/hystrix', 'iconfont iconicon_subordinate', '5', '1', '0', '2', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1164733369658963254', '1123598815738675210', 'sentinel', 'Sentinel管理', 'menu', 'http://localhost:8858', 'iconfont iconicon_safety', '6', '1', '0', '2', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1164733369658963255', '1123598815738675210', 'es', 'Elasticsearch管理', 'menu', 'http://localhost:9100/', 'iconfont iconfont iconicon_search', '7', '1', '0', '2', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1164733379658963251', '1123598815738675203', 'dictbiz', '业务字典', 'menu', '/system/dictbiz', 'iconfont iconicon_study', '3', '1', '0', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1164733379658963252', '1164733379658963251', 'dictbiz_add', '新增', 'add', '/system/dictbiz/add', 'plus', '1', '2', '1', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1164733379658963253', '1164733379658963251', 'dictbiz_edit', '修改', 'edit', '/system/dictbiz/edit', 'form', '2', '2', '2', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1164733379658963254', '1164733379658963251', 'dictbiz_delete', '删除', 'delete', '/api/blade-system/dict-biz/remove', 'delete', '3', '2', '3', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1164733379658963255', '1164733379658963251', 'dictbiz_view', '查看', 'view', '/system/dictbiz/view', 'file-text', '4', '2', '2', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1164733389658963251', '1123598815738675298', 'xxljob', '任务调度', 'menu', 'http://localhost:7009/xxl-job-admin', 'iconfont iconicon_cspace', '3', '1', '0', '2', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1123598815738675201', '0', 'desk', '工作台', 'menu', '/desk', 'iconfont iconicon_airplay', '1', '1', '0', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1123598815738675202', '1123598815738675201', 'notice', '通知公告', 'menu', '/desk/notice', 'iconfont iconicon_sms', '1', '1', '0', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1123598815738675203', '0', 'system', '系统管理', 'menu', '/system', 'iconfont iconicon_setting', '99', '1', '0', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1123598815738675204', '1123598815738675203', 'user', '用户管理', 'menu', '/system/user', 'iconfont iconicon_principal', '1', '1', '0', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1123598815738675205', '1123598815738675203', 'dept', '机构管理', 'menu', '/system/dept', 'iconfont iconicon_group', '2', '1', '0', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1123598815738675206', '1123598815738675203', 'dict', '系统字典', 'menu', '/system/dict', 'iconfont iconicon_addresslist', '3', '1', '0', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1123598815738675207', '1123598815738675203', 'menu', '菜单管理', 'menu', '/system/menu', 'iconfont iconicon_subordinate', '4', '1', '0', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1123598815738675208', '1123598815738675203', 'topmenu', '顶部菜单', 'menu', '/system/topmenu', 'iconfont icon-canshu', '5', '1', '0', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1123598815738675209', '1123598815738675203', 'param', '参数管理', 'menu', '/system/param', 'iconfont iconicon_community_line', '6', '1', '0', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1123598815738675210', '0', 'monitor', '系统监控', 'menu', '/monitor', 'iconfont icon-yanzhengma', '3', '1', '0', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1123598815738675211', '1123598815738675210', 'doc', '接口文档', 'menu', 'http://localhost/doc.html', 'iconfont iconicon_study', '1', '1', '0', '2', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1123598815738675212', '1123598815738675210', 'admin', '服务治理', 'menu', 'http://localhost:7002', 'iconfont icon-canshu', '2', '1', '0', '2', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1123598815738675213', '1123598815738675210', 'log', '日志管理', 'menu', '/monitor/log', 'iconfont iconicon_doc', '8', '1', '0', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1123598815738675214', '1123598815738675213', 'log_usual', '通用日志', 'menu', '/monitor/log/usual', NULL, '1', '1', '0', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1123598815738675215', '1123598815738675213', 'log_api', '接口日志', 'menu', '/monitor/log/api', NULL, '2', '1', '0', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1123598815738675216', '1123598815738675213', 'log_error', '错误日志', 'menu', '/monitor/log/error', NULL, '3', '1', '0', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1123598815738675217', '0', 'tool', '研发工具', 'menu', '/tool', 'iconfont icon-wxbgongju', '4', '1', '0', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1123598815738675218', '1123598815738675217', 'code', '代码生成', 'menu', '/tool/code', 'iconfont iconicon_savememo', '1', '1', '0', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1123598815738675219', '1123598815738675202', 'notice_add', '新增', 'add', '/desk/notice/add', 'plus', '1', '2', '1', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1123598815738675220', '1123598815738675202', 'notice_edit', '修改', 'edit', '/desk/notice/edit', 'form', '2', '2', '2', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1123598815738675221', '1123598815738675202', 'notice_delete', '删除', 'delete', '/api/blade-desk/notice/remove', 'delete', '3', '2', '3', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1123598815738675222', '1123598815738675202', 'notice_view', '查看', 'view', '/desk/notice/view', 'file-text', '4', '2', '2', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1123598815738675223', '1123598815738675204', 'user_add', '新增', 'add', '/system/user/add', 'plus', '1', '2', '1', '1', NULL, '0'); COMMIT; -- ---------------------------- -- Table structure for BLADE_NOTICE -- ---------------------------- --- DROP TABLE "BLADE_NOTICE"; +DROP TABLE "BLADE_NOTICE"; CREATE TABLE "BLADE_NOTICE" ( "ID" NUMBER(20) NOT NULL , "TENANT_ID" NVARCHAR2(12) , @@ -776,7 +787,7 @@ CREATE TABLE "BLADE_NOTICE" ( "UPDATE_USER" NUMBER(20) , "UPDATE_TIME" DATE , "STATUS" NUMBER(11) , - "IS_DELETED" NUMBER(11) + "IS_DELETED" NUMBER(11) ) TABLESPACE "BLADEX" LOGGING @@ -784,8 +795,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -820,7 +831,7 @@ COMMIT; -- ---------------------------- -- Table structure for BLADE_OSS -- ---------------------------- --- DROP TABLE "BLADE_OSS"; +DROP TABLE "BLADE_OSS"; CREATE TABLE "BLADE_OSS" ( "ID" NUMBER(20) NOT NULL , "TENANT_ID" NVARCHAR2(12) , @@ -839,7 +850,7 @@ CREATE TABLE "BLADE_OSS" ( "UPDATE_USER" NUMBER(20) , "UPDATE_TIME" DATE , "STATUS" NUMBER(11) , - "IS_DELETED" NUMBER(11) + "IS_DELETED" NUMBER(11) ) TABLESPACE "BLADEX" LOGGING @@ -847,8 +858,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -887,7 +898,7 @@ COMMIT; -- ---------------------------- -- Table structure for BLADE_PARAM -- ---------------------------- --- DROP TABLE "BLADE_PARAM"; +DROP TABLE "BLADE_PARAM"; CREATE TABLE "BLADE_PARAM" ( "ID" NUMBER(20) NOT NULL , "PARAM_NAME" NVARCHAR2(255) , @@ -900,7 +911,7 @@ CREATE TABLE "BLADE_PARAM" ( "UPDATE_USER" NUMBER(20) , "UPDATE_TIME" DATE , "STATUS" NUMBER(11) , - "IS_DELETED" NUMBER(11) + "IS_DELETED" NUMBER(11) ) TABLESPACE "BLADEX" LOGGING @@ -908,8 +919,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -942,7 +953,7 @@ COMMIT; -- ---------------------------- -- Table structure for BLADE_PROCESS_LEAVE -- ---------------------------- --- DROP TABLE "BLADE_PROCESS_LEAVE"; +DROP TABLE "BLADE_PROCESS_LEAVE"; CREATE TABLE "BLADE_PROCESS_LEAVE" ( "ID" NUMBER(20) NOT NULL , "PROCESS_DEFINITION_ID" NVARCHAR2(64) , @@ -958,7 +969,7 @@ CREATE TABLE "BLADE_PROCESS_LEAVE" ( "UPDATE_USER" NUMBER(20) , "UPDATE_TIME" DATE , "STATUS" NUMBER(11) , - "IS_DELETED" NUMBER(11) + "IS_DELETED" NUMBER(11) ) TABLESPACE "BLADEX" LOGGING @@ -966,8 +977,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -996,7 +1007,7 @@ COMMENT ON TABLE "BLADE_PROCESS_LEAVE" IS '流程请假业务表'; -- ---------------------------- -- Table structure for BLADE_ROLE -- ---------------------------- --- DROP TABLE "BLADE_ROLE"; +DROP TABLE "BLADE_ROLE"; CREATE TABLE "BLADE_ROLE" ( "ID" NUMBER(20) NOT NULL , "TENANT_ID" NVARCHAR2(12) , @@ -1004,7 +1015,7 @@ CREATE TABLE "BLADE_ROLE" ( "ROLE_NAME" NVARCHAR2(255) , "SORT" NUMBER(11) , "ROLE_ALIAS" NVARCHAR2(255) , - "IS_DELETED" NUMBER(11) + "IS_DELETED" NUMBER(11) ) TABLESPACE "BLADEX" LOGGING @@ -1012,8 +1023,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -1044,11 +1055,11 @@ COMMIT; -- ---------------------------- -- Table structure for BLADE_ROLE_MENU -- ---------------------------- --- DROP TABLE "BLADE_ROLE_MENU"; +DROP TABLE "BLADE_ROLE_MENU"; CREATE TABLE "BLADE_ROLE_MENU" ( "ID" NUMBER(20) NOT NULL , "MENU_ID" NUMBER(20) , - "ROLE_ID" NUMBER(20) + "ROLE_ID" NUMBER(20) ) TABLESPACE "BLADEX" LOGGING @@ -1056,8 +1067,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -1074,6 +1085,65 @@ COMMENT ON TABLE "BLADE_ROLE_MENU" IS '角色菜单关联表'; -- ---------------------------- -- Records of BLADE_ROLE_MENU -- ---------------------------- +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891669696933889', '1123598815738675229', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891669743071234', '1123598815738675230', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891669797597186', '1123598815738675231', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891669847928834', '1123598815738675232', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891669919232001', '1123598815738675206', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891669973757954', '1123598815738675233', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670019895298', '1123598815738675234', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670045061121', '1123598815738675235', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670095392770', '1123598815738675236', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670137335809', '1123598815738675207', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670196056065', '1123598815738675237', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670229610498', '1123598815738675238', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670267359234', '1123598815738675239', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670292525057', '1123598815738675240', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670355439617', '1123598815738675306', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670380605442', '1123598815738675208', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670443520001', '1123598815738675313', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670481268737', '1123598815738675314', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670506434561', '1123598815738675315', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670569349121', '1123598815738675316', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670594514945', '1123598815738675209', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670657429506', '1123598815738675245', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670682595330', '1123598815738675246', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670711955457', '1123598815738675247', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670745509889', '1123598815738675248', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670804230146', '1123598815738675256', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670841978881', '1123598815738675257', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670879727617', '1123598815738675258', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670913282050', '1123598815738675259', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670959419394', '1123598815738675260', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670988779521', '1123598815738675261', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891671039111170', '1123598815738675262', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891671068471297', '1123598815738675263', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891671110414338', '1123598815738675264', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891671152357378', '1123598815738675265', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272593873322991', '1161272593873321991', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272593873322992', '1161272593873321992', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272593873322993', '1161272593873321993', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272593873322994', '1161272593873321994', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272593873322995', '1161272593873321995', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272593873322996', '1164733121140551682', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272593873322997', '1164733349637844993', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272693873322991', '1164733369658963251', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272693873322992', '1164733369658963252', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272693873322993', '1164733369658963253', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272693873322994', '1164733369658963254', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272693873322995', '1164733369658963255', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272793873322991', '1164733379658963251', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272793873322992', '116473337658963252', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272793873322993', '1164733379658963253', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272793873322994', '1164733379658963254', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272793873322995', '1164733379658963255', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272893873322991', '1164733389658963251', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272893873222991', '1164733389658962251', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272893873222992', '1164733389658962252', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272893873222993', '1164733389658962253', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272893873222994', '1164733389658962254', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272893873222995', '1164733389658962255', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272893873222996', '1164733389658962256', '1123598816738675201'); INSERT INTO "BLADE_ROLE_MENU" VALUES ('1123598817738675363', '1123598815738675201', '1123598816738675202'); INSERT INTO "BLADE_ROLE_MENU" VALUES ('1123598817738675364', '1123598815738675202', '1123598816738675202'); INSERT INTO "BLADE_ROLE_MENU" VALUES ('1123598817738675365', '1123598815738675219', '1123598816738675202'); @@ -1251,70 +1321,17 @@ INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891669533356033', '112359881573867522 INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891669571104770', '1123598815738675227', '1123598816738675201'); INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891669642407937', '1123598815738675228', '1123598816738675201'); INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891669671768065', '1123598815738675205', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891669696933889', '1123598815738675229', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891669743071234', '1123598815738675230', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891669797597186', '1123598815738675231', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891669847928834', '1123598815738675232', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891669919232001', '1123598815738675206', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891669973757954', '1123598815738675233', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670019895298', '1123598815738675234', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670045061121', '1123598815738675235', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670095392770', '1123598815738675236', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670137335809', '1123598815738675207', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670196056065', '1123598815738675237', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670229610498', '1123598815738675238', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670267359234', '1123598815738675239', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670292525057', '1123598815738675240', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670355439617', '1123598815738675306', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670380605442', '1123598815738675208', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670443520001', '1123598815738675313', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670481268737', '1123598815738675314', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670506434561', '1123598815738675315', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670569349121', '1123598815738675316', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670594514945', '1123598815738675209', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670657429506', '1123598815738675245', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670682595330', '1123598815738675246', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670711955457', '1123598815738675247', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670745509889', '1123598815738675248', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670804230146', '1123598815738675256', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670841978881', '1123598815738675257', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670879727617', '1123598815738675258', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670913282050', '1123598815738675259', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670959419394', '1123598815738675260', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891670988779521', '1123598815738675261', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891671039111170', '1123598815738675262', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891671068471297', '1123598815738675263', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891671110414338', '1123598815738675264', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1149891671152357378', '1123598815738675265', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272593873322991', '1161272593873321991', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272593873322992', '1161272593873321992', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272593873322993', '1161272593873321993', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272593873322994', '1161272593873321994', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272593873322995', '1161272593873321995', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272593873322996', '1164733121140551682', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272593873322997', '1164733349637844993', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272693873322991', '1164733369658963251', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272693873322992', '1164733369658963252', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272693873322993', '1164733369658963253', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272693873322994', '1164733369658963254', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272693873322995', '1164733369658963255', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272793873322991', '1164733379658963251', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272793873322992', '116473337658963252', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272793873322993', '1164733379658963253', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272793873322994', '1164733379658963254', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272793873322995', '1164733379658963255', '1123598816738675201'); -INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272893873322991', '1164733389658963251', '1123598816738675201'); COMMIT; -- ---------------------------- -- Table structure for BLADE_ROLE_SCOPE -- ---------------------------- --- DROP TABLE "BLADE_ROLE_SCOPE"; +DROP TABLE "BLADE_ROLE_SCOPE"; CREATE TABLE "BLADE_ROLE_SCOPE" ( "ID" NUMBER(20) NOT NULL , "SCOPE_CATEGORY" NUMBER(11) , "SCOPE_ID" NUMBER(20) , - "ROLE_ID" NUMBER(20) + "ROLE_ID" NUMBER(20) ) TABLESPACE "BLADEX" LOGGING @@ -1322,8 +1339,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -1341,7 +1358,7 @@ COMMENT ON TABLE "BLADE_ROLE_SCOPE" IS '角色数据权限关联表'; -- ---------------------------- -- Table structure for BLADE_SCOPE_API -- ---------------------------- --- DROP TABLE "BLADE_SCOPE_API"; +DROP TABLE "BLADE_SCOPE_API"; CREATE TABLE "BLADE_SCOPE_API" ( "ID" NUMBER(20) NOT NULL , "MENU_ID" NUMBER(20) , @@ -1356,7 +1373,7 @@ CREATE TABLE "BLADE_SCOPE_API" ( "UPDATE_USER" NUMBER(20) , "UPDATE_TIME" DATE , "STATUS" NUMBER(11) , - "IS_DELETED" NUMBER(11) + "IS_DELETED" NUMBER(11) ) TABLESPACE "BLADEX" LOGGING @@ -1364,8 +1381,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -1393,7 +1410,7 @@ COMMENT ON TABLE "BLADE_SCOPE_API" IS '接口权限表'; -- ---------------------------- -- Table structure for BLADE_SCOPE_DATA -- ---------------------------- --- DROP TABLE "BLADE_SCOPE_DATA"; +DROP TABLE "BLADE_SCOPE_DATA"; CREATE TABLE "BLADE_SCOPE_DATA" ( "ID" NUMBER(20) NOT NULL , "MENU_ID" NUMBER(20) , @@ -1411,7 +1428,7 @@ CREATE TABLE "BLADE_SCOPE_DATA" ( "UPDATE_USER" NUMBER(20) , "UPDATE_TIME" DATE , "STATUS" NUMBER(11) , - "IS_DELETED" NUMBER(11) + "IS_DELETED" NUMBER(11) ) TABLESPACE "BLADEX" LOGGING @@ -1419,8 +1436,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -1448,10 +1465,68 @@ COMMENT ON COLUMN "BLADE_SCOPE_DATA"."STATUS" IS '状态'; COMMENT ON COLUMN "BLADE_SCOPE_DATA"."IS_DELETED" IS '是否已删除'; COMMENT ON TABLE "BLADE_SCOPE_DATA" IS '数据权限表'; +-- ---------------------------- +-- Table structure for BLADE_SMS +-- ---------------------------- +DROP TABLE "BLADE_SMS"; +CREATE TABLE "BLADE_SMS" ( + "ID" NUMBER(20) NOT NULL , + "TENANT_ID" NVARCHAR2(12) , + "CATEGORY" NUMBER(11) , + "SMS_CODE" VARCHAR2(12 BYTE) , + "TEMPLATE_ID" VARCHAR2(64 BYTE) , + "ACCESS_KEY" NVARCHAR2(255) , + "SECRET_KEY" NVARCHAR2(255) , + "REGION_ID" NVARCHAR2(255) , + "SIGN_NAME" VARCHAR2(64 BYTE) , + "REMARK" NVARCHAR2(255) , + "CREATE_USER" NUMBER(20) , + "CREATE_DEPT" NUMBER(20) , + "CREATE_TIME" DATE , + "UPDATE_USER" NUMBER(20) , + "UPDATE_TIME" DATE , + "STATUS" NUMBER(11) , + "IS_DELETED" NUMBER(11) +) +TABLESPACE "BLADEX" +LOGGING +NOCOMPRESS +PCTFREE 10 +INITRANS 1 +STORAGE ( + INITIAL 65536 + NEXT 1048576 + MINEXTENTS 1 + MAXEXTENTS 2147483645 + BUFFER_POOL DEFAULT +) +PARALLEL 1 +NOCACHE +DISABLE ROW MOVEMENT +; +COMMENT ON COLUMN "BLADE_SMS"."ID" IS '主键'; +COMMENT ON COLUMN "BLADE_SMS"."TENANT_ID" IS '租户ID'; +COMMENT ON COLUMN "BLADE_SMS"."CATEGORY" IS '分类'; +COMMENT ON COLUMN "BLADE_SMS"."SMS_CODE" IS '资源编号'; +COMMENT ON COLUMN "BLADE_SMS"."TEMPLATE_ID" IS '模板ID'; +COMMENT ON COLUMN "BLADE_SMS"."ACCESS_KEY" IS 'accessKey'; +COMMENT ON COLUMN "BLADE_SMS"."SECRET_KEY" IS 'secretKey'; +COMMENT ON COLUMN "BLADE_SMS"."REGION_ID" IS 'regionId'; +COMMENT ON COLUMN "BLADE_SMS"."SIGN_NAME" IS '短信签名'; +COMMENT ON COLUMN "BLADE_SMS"."REMARK" IS '备注'; +COMMENT ON COLUMN "BLADE_SMS"."CREATE_USER" IS '创建人'; +COMMENT ON COLUMN "BLADE_SMS"."CREATE_DEPT" IS '创建部门'; +COMMENT ON COLUMN "BLADE_SMS"."CREATE_TIME" IS '创建时间'; +COMMENT ON COLUMN "BLADE_SMS"."UPDATE_USER" IS '修改人'; +COMMENT ON COLUMN "BLADE_SMS"."UPDATE_TIME" IS '修改时间'; +COMMENT ON COLUMN "BLADE_SMS"."STATUS" IS '状态'; +COMMENT ON COLUMN "BLADE_SMS"."IS_DELETED" IS '是否已删除'; +COMMENT ON TABLE "BLADE_SMS" IS '短信配置表'; + -- ---------------------------- -- Table structure for BLADE_TENANT -- ---------------------------- --- DROP TABLE "BLADE_TENANT"; +DROP TABLE "BLADE_TENANT"; CREATE TABLE "BLADE_TENANT" ( "ID" NUMBER(20) NOT NULL , "TENANT_ID" NVARCHAR2(12) , @@ -1461,7 +1536,7 @@ CREATE TABLE "BLADE_TENANT" ( "LINKMAN" NVARCHAR2(20) , "CONTACT_NUMBER" NVARCHAR2(20) , "ADDRESS" NVARCHAR2(255) , - "ACCOUNT_NUMBER" NUMBER DEFAULT -1 , + "ACCOUNT_NUMBER" NUMBER DEFAULT -1 , "EXPIRE_TIME" DATE , "CREATE_USER" NUMBER(20) , "CREATE_DEPT" NUMBER(20) , @@ -1469,7 +1544,7 @@ CREATE TABLE "BLADE_TENANT" ( "UPDATE_USER" NUMBER(20) , "UPDATE_TIME" DATE , "STATUS" NUMBER(11) , - "IS_DELETED" NUMBER(11) + "IS_DELETED" NUMBER(11) ) TABLESPACE "BLADEX" LOGGING @@ -1477,8 +1552,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -1515,7 +1590,7 @@ COMMIT; -- ---------------------------- -- Table structure for BLADE_TOP_MENU -- ---------------------------- --- DROP TABLE "BLADE_TOP_MENU"; +DROP TABLE "BLADE_TOP_MENU"; CREATE TABLE "BLADE_TOP_MENU" ( "ID" NUMBER(20) NOT NULL , "TENANT_ID" NVARCHAR2(12) , @@ -1529,7 +1604,7 @@ CREATE TABLE "BLADE_TOP_MENU" ( "UPDATE_USER" NUMBER(20) , "UPDATE_TIME" DATE , "STATUS" NUMBER(11) , - "IS_DELETED" NUMBER(11) + "IS_DELETED" NUMBER(11) ) TABLESPACE "BLADEX" LOGGING @@ -1537,8 +1612,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -1565,11 +1640,11 @@ COMMENT ON TABLE "BLADE_TOP_MENU" IS '顶部菜单表'; -- ---------------------------- -- Table structure for BLADE_TOP_MENU_SETTING -- ---------------------------- --- DROP TABLE "BLADE_TOP_MENU_SETTING"; +DROP TABLE "BLADE_TOP_MENU_SETTING"; CREATE TABLE "BLADE_TOP_MENU_SETTING" ( "ID" NUMBER(20) NOT NULL , "TOP_MENU_ID" NUMBER(20) , - "MENU_ID" NUMBER(20) + "MENU_ID" NUMBER(20) ) TABLESPACE "BLADEX" LOGGING @@ -1577,8 +1652,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -1595,7 +1670,7 @@ COMMENT ON TABLE "BLADE_TOP_MENU_SETTING" IS '顶部菜单配置表'; -- ---------------------------- -- Table structure for BLADE_USER -- ---------------------------- --- DROP TABLE "BLADE_USER"; +DROP TABLE "BLADE_USER"; CREATE TABLE "BLADE_USER" ( "ID" NUMBER(20) NOT NULL , "TENANT_ID" NVARCHAR2(12) , @@ -1616,7 +1691,7 @@ CREATE TABLE "BLADE_USER" ( "UPDATE_USER" NUMBER(20) , "UPDATE_TIME" DATE , "STATUS" NUMBER(11) , - "IS_DELETED" NUMBER(11) + "IS_DELETED" NUMBER(11) ) TABLESPACE "BLADEX" LOGGING @@ -1624,8 +1699,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -1667,11 +1742,11 @@ COMMIT; -- ---------------------------- -- Table structure for BLADE_USER_DEPT -- ---------------------------- --- DROP TABLE "BLADE_USER_DEPT"; +DROP TABLE "BLADE_USER_DEPT"; CREATE TABLE "BLADE_USER_DEPT" ( "ID" NUMBER(20) NOT NULL , "USER_ID" NUMBER(20) , - "DEPT_ID" NUMBER(20) + "DEPT_ID" NUMBER(20) ) TABLESPACE "BLADEX" LOGGING @@ -1679,8 +1754,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -1756,6 +1831,15 @@ ALTER TABLE "BLADE_CLIENT" ADD CONSTRAINT "SYS_C0020251" CHECK ("ACCESS_TOKEN_VA ALTER TABLE "BLADE_CLIENT" ADD CONSTRAINT "SYS_C0020252" CHECK ("REFRESH_TOKEN_VALIDITY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_CLIENT" ADD CONSTRAINT "SYS_C0020253" CHECK ("STATUS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_CLIENT" ADD CONSTRAINT "SYS_C0020254" CHECK ("IS_DELETED" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_CLIENT" ADD CONSTRAINT "SYS_C0021985" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_CLIENT" ADD CONSTRAINT "SYS_C0021986" CHECK ("CLIENT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_CLIENT" ADD CONSTRAINT "SYS_C0021987" CHECK ("CLIENT_SECRET" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_CLIENT" ADD CONSTRAINT "SYS_C0021988" CHECK ("SCOPE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_CLIENT" ADD CONSTRAINT "SYS_C0021989" CHECK ("AUTHORIZED_GRANT_TYPES" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_CLIENT" ADD CONSTRAINT "SYS_C0021990" CHECK ("ACCESS_TOKEN_VALIDITY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_CLIENT" ADD CONSTRAINT "SYS_C0021991" CHECK ("REFRESH_TOKEN_VALIDITY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_CLIENT" ADD CONSTRAINT "SYS_C0021992" CHECK ("STATUS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_CLIENT" ADD CONSTRAINT "SYS_C0021993" CHECK ("IS_DELETED" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_CODE @@ -1770,6 +1854,7 @@ ALTER TABLE "BLADE_CODE" ADD CONSTRAINT "SYS_C0017048" CHECK ("ID" IS NOT NULL) ALTER TABLE "BLADE_CODE" ADD CONSTRAINT "SYS_C0019190" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_CODE" ADD CONSTRAINT "SYS_C0019481" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_CODE" ADD CONSTRAINT "SYS_C0020255" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_CODE" ADD CONSTRAINT "SYS_C0021994" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_DATASOURCE @@ -1783,6 +1868,7 @@ ALTER TABLE "BLADE_DATASOURCE" ADD CONSTRAINT "SYS_C0017120" CHECK ("ID" IS NOT ALTER TABLE "BLADE_DATASOURCE" ADD CONSTRAINT "SYS_C0019191" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_DATASOURCE" ADD CONSTRAINT "SYS_C0019482" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_DATASOURCE" ADD CONSTRAINT "SYS_C0020256" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_DATASOURCE" ADD CONSTRAINT "SYS_C0021995" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_DEPT @@ -1797,6 +1883,7 @@ ALTER TABLE "BLADE_DEPT" ADD CONSTRAINT "SYS_C0017049" CHECK ("ID" IS NOT NULL) ALTER TABLE "BLADE_DEPT" ADD CONSTRAINT "SYS_C0019192" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_DEPT" ADD CONSTRAINT "SYS_C0019483" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_DEPT" ADD CONSTRAINT "SYS_C0020257" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_DEPT" ADD CONSTRAINT "SYS_C0021996" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_DICT @@ -1811,6 +1898,7 @@ ALTER TABLE "BLADE_DICT" ADD CONSTRAINT "SYS_C0017050" CHECK ("ID" IS NOT NULL) ALTER TABLE "BLADE_DICT" ADD CONSTRAINT "SYS_C0019193" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_DICT" ADD CONSTRAINT "SYS_C0019484" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_DICT" ADD CONSTRAINT "SYS_C0020258" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_DICT" ADD CONSTRAINT "SYS_C0021997" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_DICT_BIZ @@ -1823,6 +1911,7 @@ ALTER TABLE "BLADE_DICT_BIZ" ADD CONSTRAINT "SYS_C0019296" PRIMARY KEY ("ID"); ALTER TABLE "BLADE_DICT_BIZ" ADD CONSTRAINT "SYS_C0019295" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_DICT_BIZ" ADD CONSTRAINT "SYS_C0019485" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_DICT_BIZ" ADD CONSTRAINT "SYS_C0020259" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_DICT_BIZ" ADD CONSTRAINT "SYS_C0021998" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_LOG_API @@ -1837,6 +1926,7 @@ ALTER TABLE "BLADE_LOG_API" ADD CONSTRAINT "SYS_C0017051" CHECK ("ID" IS NOT NUL ALTER TABLE "BLADE_LOG_API" ADD CONSTRAINT "SYS_C0019194" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_LOG_API" ADD CONSTRAINT "SYS_C0019486" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_LOG_API" ADD CONSTRAINT "SYS_C0020260" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_LOG_API" ADD CONSTRAINT "SYS_C0021999" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_LOG_ERROR @@ -1851,6 +1941,7 @@ ALTER TABLE "BLADE_LOG_ERROR" ADD CONSTRAINT "SYS_C0017052" CHECK ("ID" IS NOT N ALTER TABLE "BLADE_LOG_ERROR" ADD CONSTRAINT "SYS_C0019195" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_LOG_ERROR" ADD CONSTRAINT "SYS_C0019487" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_LOG_ERROR" ADD CONSTRAINT "SYS_C0020261" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_LOG_ERROR" ADD CONSTRAINT "SYS_C0022000" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_LOG_USUAL @@ -1865,6 +1956,7 @@ ALTER TABLE "BLADE_LOG_USUAL" ADD CONSTRAINT "SYS_C0017053" CHECK ("ID" IS NOT N ALTER TABLE "BLADE_LOG_USUAL" ADD CONSTRAINT "SYS_C0019196" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_LOG_USUAL" ADD CONSTRAINT "SYS_C0019488" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_LOG_USUAL" ADD CONSTRAINT "SYS_C0020262" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_LOG_USUAL" ADD CONSTRAINT "SYS_C0022001" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_MENU @@ -1879,6 +1971,7 @@ ALTER TABLE "BLADE_MENU" ADD CONSTRAINT "SYS_C0017054" CHECK ("ID" IS NOT NULL) ALTER TABLE "BLADE_MENU" ADD CONSTRAINT "SYS_C0019197" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_MENU" ADD CONSTRAINT "SYS_C0019489" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_MENU" ADD CONSTRAINT "SYS_C0020263" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_MENU" ADD CONSTRAINT "SYS_C0022002" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_NOTICE @@ -1893,6 +1986,7 @@ ALTER TABLE "BLADE_NOTICE" ADD CONSTRAINT "SYS_C0017055" CHECK ("ID" IS NOT NULL ALTER TABLE "BLADE_NOTICE" ADD CONSTRAINT "SYS_C0019198" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_NOTICE" ADD CONSTRAINT "SYS_C0019490" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_NOTICE" ADD CONSTRAINT "SYS_C0020264" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_NOTICE" ADD CONSTRAINT "SYS_C0022003" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_OSS @@ -1907,6 +2001,7 @@ ALTER TABLE "BLADE_OSS" ADD CONSTRAINT "SYS_C0017056" CHECK ("ID" IS NOT NULL) N ALTER TABLE "BLADE_OSS" ADD CONSTRAINT "SYS_C0019199" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_OSS" ADD CONSTRAINT "SYS_C0019491" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_OSS" ADD CONSTRAINT "SYS_C0020265" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_OSS" ADD CONSTRAINT "SYS_C0022004" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_PARAM @@ -1921,6 +2016,7 @@ ALTER TABLE "BLADE_PARAM" ADD CONSTRAINT "SYS_C0017057" CHECK ("ID" IS NOT NULL) ALTER TABLE "BLADE_PARAM" ADD CONSTRAINT "SYS_C0019200" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_PARAM" ADD CONSTRAINT "SYS_C0019492" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_PARAM" ADD CONSTRAINT "SYS_C0020266" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_PARAM" ADD CONSTRAINT "SYS_C0022005" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_PROCESS_LEAVE @@ -1935,6 +2031,7 @@ ALTER TABLE "BLADE_PROCESS_LEAVE" ADD CONSTRAINT "SYS_C0017058" CHECK ("ID" IS N ALTER TABLE "BLADE_PROCESS_LEAVE" ADD CONSTRAINT "SYS_C0019201" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_PROCESS_LEAVE" ADD CONSTRAINT "SYS_C0019493" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_PROCESS_LEAVE" ADD CONSTRAINT "SYS_C0020267" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_PROCESS_LEAVE" ADD CONSTRAINT "SYS_C0022006" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_ROLE @@ -1949,6 +2046,7 @@ ALTER TABLE "BLADE_ROLE" ADD CONSTRAINT "SYS_C0017059" CHECK ("ID" IS NOT NULL) ALTER TABLE "BLADE_ROLE" ADD CONSTRAINT "SYS_C0019202" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_ROLE" ADD CONSTRAINT "SYS_C0019494" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_ROLE" ADD CONSTRAINT "SYS_C0020268" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_ROLE" ADD CONSTRAINT "SYS_C0022007" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_ROLE_MENU @@ -1963,6 +2061,7 @@ ALTER TABLE "BLADE_ROLE_MENU" ADD CONSTRAINT "SYS_C0017060" CHECK ("ID" IS NOT N ALTER TABLE "BLADE_ROLE_MENU" ADD CONSTRAINT "SYS_C0019203" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_ROLE_MENU" ADD CONSTRAINT "SYS_C0019495" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_ROLE_MENU" ADD CONSTRAINT "SYS_C0020269" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_ROLE_MENU" ADD CONSTRAINT "SYS_C0022008" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_ROLE_SCOPE @@ -1977,6 +2076,7 @@ ALTER TABLE "BLADE_ROLE_SCOPE" ADD CONSTRAINT "SYS_C0017061" CHECK ("ID" IS NOT ALTER TABLE "BLADE_ROLE_SCOPE" ADD CONSTRAINT "SYS_C0019204" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_ROLE_SCOPE" ADD CONSTRAINT "SYS_C0019496" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_ROLE_SCOPE" ADD CONSTRAINT "SYS_C0020270" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_ROLE_SCOPE" ADD CONSTRAINT "SYS_C0022009" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_SCOPE_API @@ -1991,6 +2091,7 @@ ALTER TABLE "BLADE_SCOPE_API" ADD CONSTRAINT "SYS_C0017062" CHECK ("ID" IS NOT N ALTER TABLE "BLADE_SCOPE_API" ADD CONSTRAINT "SYS_C0019205" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_SCOPE_API" ADD CONSTRAINT "SYS_C0019497" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_SCOPE_API" ADD CONSTRAINT "SYS_C0020271" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_SCOPE_API" ADD CONSTRAINT "SYS_C0022010" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_SCOPE_DATA @@ -2005,6 +2106,17 @@ ALTER TABLE "BLADE_SCOPE_DATA" ADD CONSTRAINT "SYS_C0017063" CHECK ("ID" IS NOT ALTER TABLE "BLADE_SCOPE_DATA" ADD CONSTRAINT "SYS_C0019206" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_SCOPE_DATA" ADD CONSTRAINT "SYS_C0019498" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_SCOPE_DATA" ADD CONSTRAINT "SYS_C0020272" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_SCOPE_DATA" ADD CONSTRAINT "SYS_C0022011" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; + +-- ---------------------------- +-- Primary Key structure for table BLADE_SMS +-- ---------------------------- +ALTER TABLE "BLADE_SMS" ADD CONSTRAINT "SYS_C0022202" PRIMARY KEY ("ID"); + +-- ---------------------------- +-- Checks structure for table BLADE_SMS +-- ---------------------------- +ALTER TABLE "BLADE_SMS" ADD CONSTRAINT "SYS_C0022201" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_TENANT @@ -2024,6 +2136,8 @@ ALTER TABLE "BLADE_TENANT" ADD CONSTRAINT "SYS_C0019499" CHECK ("ID" IS NOT NULL ALTER TABLE "BLADE_TENANT" ADD CONSTRAINT "SYS_C0019500" CHECK ("TENANT_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_TENANT" ADD CONSTRAINT "SYS_C0020273" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_TENANT" ADD CONSTRAINT "SYS_C0020274" CHECK ("TENANT_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_TENANT" ADD CONSTRAINT "SYS_C0022012" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_TENANT" ADD CONSTRAINT "SYS_C0022013" CHECK ("TENANT_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_TOP_MENU @@ -2038,6 +2152,7 @@ ALTER TABLE "BLADE_TOP_MENU" ADD CONSTRAINT "SYS_C0017066" CHECK ("ID" IS NOT NU ALTER TABLE "BLADE_TOP_MENU" ADD CONSTRAINT "SYS_C0019209" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_TOP_MENU" ADD CONSTRAINT "SYS_C0019501" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_TOP_MENU" ADD CONSTRAINT "SYS_C0020275" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_TOP_MENU" ADD CONSTRAINT "SYS_C0022014" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_TOP_MENU_SETTING @@ -2052,6 +2167,7 @@ ALTER TABLE "BLADE_TOP_MENU_SETTING" ADD CONSTRAINT "SYS_C0017067" CHECK ("ID" I ALTER TABLE "BLADE_TOP_MENU_SETTING" ADD CONSTRAINT "SYS_C0019210" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_TOP_MENU_SETTING" ADD CONSTRAINT "SYS_C0019502" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_TOP_MENU_SETTING" ADD CONSTRAINT "SYS_C0020276" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_TOP_MENU_SETTING" ADD CONSTRAINT "SYS_C0022015" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_USER @@ -2066,6 +2182,7 @@ ALTER TABLE "BLADE_USER" ADD CONSTRAINT "SYS_C0017068" CHECK ("ID" IS NOT NULL) ALTER TABLE "BLADE_USER" ADD CONSTRAINT "SYS_C0019211" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_USER" ADD CONSTRAINT "SYS_C0019503" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_USER" ADD CONSTRAINT "SYS_C0020277" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_USER" ADD CONSTRAINT "SYS_C0022016" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_USER_DEPT @@ -2077,3 +2194,4 @@ ALTER TABLE "BLADE_USER_DEPT" ADD CONSTRAINT "SYS_C0019621" PRIMARY KEY ("ID"); -- ---------------------------- ALTER TABLE "BLADE_USER_DEPT" ADD CONSTRAINT "SYS_C0019620" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_USER_DEPT" ADD CONSTRAINT "SYS_C0020278" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_USER_DEPT" ADD CONSTRAINT "SYS_C0022017" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; diff --git a/doc/sql/oracle/bladex-sword-oracle.sql b/doc/sql/oracle/bladex-sword-oracle.sql index f14c3a95..501aac4a 100644 --- a/doc/sql/oracle/bladex-sword-oracle.sql +++ b/doc/sql/oracle/bladex-sword-oracle.sql @@ -11,14 +11,14 @@ Target Server Version : 110200 File Encoding : 65001 - Date: 02/01/2020 14:09:24 + Date: 22/02/2020 00:40:50 */ -- ---------------------------- -- Table structure for BLADE_CLIENT -- ---------------------------- --- DROP TABLE "BLADE_CLIENT"; +DROP TABLE "BLADE_CLIENT"; CREATE TABLE "BLADE_CLIENT" ( "ID" NUMBER(20) NOT NULL , "CLIENT_ID" NVARCHAR2(48) NOT NULL , @@ -38,7 +38,7 @@ CREATE TABLE "BLADE_CLIENT" ( "UPDATE_USER" NUMBER(20) , "UPDATE_TIME" DATE , "STATUS" NUMBER(11) NOT NULL , - "IS_DELETED" NUMBER(11) NOT NULL + "IS_DELETED" NUMBER(11) NOT NULL ) TABLESPACE "BLADEX" LOGGING @@ -46,8 +46,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -87,7 +87,7 @@ COMMIT; -- ---------------------------- -- Table structure for BLADE_CODE -- ---------------------------- --- DROP TABLE "BLADE_CODE"; +DROP TABLE "BLADE_CODE"; CREATE TABLE "BLADE_CODE" ( "ID" NUMBER(20) NOT NULL , "DATASOURCE_ID" NUMBER(20) , @@ -101,7 +101,7 @@ CREATE TABLE "BLADE_CODE" ( "WRAP_MODE" NUMBER(11) , "API_PATH" NCLOB , "WEB_PATH" NCLOB , - "IS_DELETED" NUMBER(11) + "IS_DELETED" NUMBER(11) ) TABLESPACE "BLADEX" LOGGING @@ -109,8 +109,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -143,7 +143,7 @@ COMMIT; -- ---------------------------- -- Table structure for BLADE_DATASOURCE -- ---------------------------- --- DROP TABLE "BLADE_DATASOURCE"; +DROP TABLE "BLADE_DATASOURCE"; CREATE TABLE "BLADE_DATASOURCE" ( "ID" NUMBER(20) NOT NULL , "NAME" NVARCHAR2(100) , @@ -158,7 +158,7 @@ CREATE TABLE "BLADE_DATASOURCE" ( "UPDATE_USER" NUMBER(20) , "UPDATE_TIME" DATE , "STATUS" NUMBER(11) , - "IS_DELETED" NUMBER(11) + "IS_DELETED" NUMBER(11) ) TABLESPACE "BLADEX" LOGGING @@ -166,8 +166,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -203,7 +203,7 @@ COMMIT; -- ---------------------------- -- Table structure for BLADE_DEPT -- ---------------------------- --- DROP TABLE "BLADE_DEPT"; +DROP TABLE "BLADE_DEPT"; CREATE TABLE "BLADE_DEPT" ( "ID" NUMBER(20) NOT NULL , "TENANT_ID" NVARCHAR2(12) , @@ -214,7 +214,7 @@ CREATE TABLE "BLADE_DEPT" ( "FULL_NAME" NVARCHAR2(45) , "SORT" NUMBER(11) , "REMARK" NVARCHAR2(255) , - "IS_DELETED" NUMBER(11) + "IS_DELETED" NUMBER(11) ) TABLESPACE "BLADEX" LOGGING @@ -222,8 +222,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -255,7 +255,7 @@ COMMIT; -- ---------------------------- -- Table structure for BLADE_DICT -- ---------------------------- --- DROP TABLE "BLADE_DICT"; +DROP TABLE "BLADE_DICT"; CREATE TABLE "BLADE_DICT" ( "ID" NUMBER(20) NOT NULL , "PARENT_ID" NUMBER(20) , @@ -265,7 +265,7 @@ CREATE TABLE "BLADE_DICT" ( "SORT" NUMBER(11) , "REMARK" NVARCHAR2(255) , "IS_SEALED" NUMBER(11) , - "IS_DELETED" NUMBER(11) + "IS_DELETED" NUMBER(11) ) TABLESPACE "BLADEX" LOGGING @@ -273,8 +273,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -297,6 +297,7 @@ COMMENT ON TABLE "BLADE_DICT" IS '字典表'; -- ---------------------------- -- Records of BLADE_DICT -- ---------------------------- +INSERT INTO "BLADE_DICT" VALUES ('1123598814738677220', '0', 'sms', '-1', '短信服务类型', '11', NULL, '0', '0'); INSERT INTO "BLADE_DICT" VALUES ('1123598814738675201', '0', 'sex', '-1', '性别', '1', NULL, '0', '0'); INSERT INTO "BLADE_DICT" VALUES ('1123598814738675202', '1123598814738675201', 'sex', '1', '男', '1', NULL, '0', '0'); INSERT INTO "BLADE_DICT" VALUES ('1123598814738675203', '1123598814738675201', 'sex', '2', '女', '2', NULL, '0', '0'); @@ -341,12 +342,16 @@ INSERT INTO "BLADE_DICT" VALUES ('1123598814738676225', '1123598814738676224', ' INSERT INTO "BLADE_DICT" VALUES ('1123598814738676226', '1123598814738676224', 'oss', '2', 'qiniu', '2', NULL, '0', '0'); INSERT INTO "BLADE_DICT" VALUES ('1123598814738676227', '1123598814738676224', 'oss', '3', 'ali', '3', NULL, '0', '0'); INSERT INTO "BLADE_DICT" VALUES ('1123598814738676228', '1123598814738676224', 'oss', '4', 'tencent', '4', NULL, '0', '0'); +INSERT INTO "BLADE_DICT" VALUES ('1123598814738677223', '1123598814738677220', 'sms', '3', 'ali', '3', NULL, '0', '0'); +INSERT INTO "BLADE_DICT" VALUES ('1123598814738677224', '1123598814738677220', 'sms', '4', 'tencent', '4', NULL, '0', '0'); +INSERT INTO "BLADE_DICT" VALUES ('1123598814738677221', '1123598814738677220', 'sms', '1', 'yunpian', '1', NULL, '0', '0'); +INSERT INTO "BLADE_DICT" VALUES ('1123598814738677222', '1123598814738677220', 'sms', '2', 'qiniu', '2', NULL, '0', '0'); COMMIT; -- ---------------------------- -- Table structure for BLADE_DICT_BIZ -- ---------------------------- --- DROP TABLE "BLADE_DICT_BIZ"; +DROP TABLE "BLADE_DICT_BIZ"; CREATE TABLE "BLADE_DICT_BIZ" ( "ID" NUMBER(20) NOT NULL , "TENANT_ID" NVARCHAR2(12) , @@ -357,7 +362,7 @@ CREATE TABLE "BLADE_DICT_BIZ" ( "SORT" NUMBER(11) , "REMARK" NVARCHAR2(255) , "IS_SEALED" NUMBER(11) , - "IS_DELETED" NUMBER(11) + "IS_DELETED" NUMBER(11) ) TABLESPACE "BLADEX" LOGGING @@ -365,8 +370,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -390,7 +395,7 @@ COMMENT ON TABLE "BLADE_DICT_BIZ" IS '数据源配置表'; -- ---------------------------- -- Table structure for BLADE_LOG_API -- ---------------------------- --- DROP TABLE "BLADE_LOG_API"; +DROP TABLE "BLADE_LOG_API"; CREATE TABLE "BLADE_LOG_API" ( "ID" NUMBER(20) NOT NULL , "TENANT_ID" NVARCHAR2(12) , @@ -409,7 +414,7 @@ CREATE TABLE "BLADE_LOG_API" ( "PARAMS" NCLOB , "TIME" NVARCHAR2(64) , "CREATE_BY" NVARCHAR2(64) , - "CREATE_TIME" DATE + "CREATE_TIME" DATE ) TABLESPACE "BLADEX" LOGGING @@ -417,8 +422,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -450,7 +455,7 @@ COMMENT ON TABLE "BLADE_LOG_API" IS '接口日志表'; -- ---------------------------- -- Table structure for BLADE_LOG_ERROR -- ---------------------------- --- DROP TABLE "BLADE_LOG_ERROR"; +DROP TABLE "BLADE_LOG_ERROR"; CREATE TABLE "BLADE_LOG_ERROR" ( "ID" NUMBER(20) NOT NULL , "TENANT_ID" NVARCHAR2(12) , @@ -471,7 +476,7 @@ CREATE TABLE "BLADE_LOG_ERROR" ( "METHOD_NAME" NVARCHAR2(255) , "PARAMS" NCLOB , "CREATE_BY" NVARCHAR2(64) , - "CREATE_TIME" DATE + "CREATE_TIME" DATE ) TABLESPACE "BLADEX" LOGGING @@ -479,8 +484,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -514,7 +519,7 @@ COMMENT ON TABLE "BLADE_LOG_ERROR" IS '错误日志表'; -- ---------------------------- -- Table structure for BLADE_LOG_USUAL -- ---------------------------- --- DROP TABLE "BLADE_LOG_USUAL"; +DROP TABLE "BLADE_LOG_USUAL"; CREATE TABLE "BLADE_LOG_USUAL" ( "ID" NUMBER(20) NOT NULL , "TENANT_ID" NVARCHAR2(12) , @@ -533,7 +538,7 @@ CREATE TABLE "BLADE_LOG_USUAL" ( "USER_AGENT" NVARCHAR2(1000) , "PARAMS" NCLOB , "CREATE_BY" NVARCHAR2(64) , - "CREATE_TIME" DATE + "CREATE_TIME" DATE ) TABLESPACE "BLADEX" LOGGING @@ -541,8 +546,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -574,7 +579,7 @@ COMMENT ON TABLE "BLADE_LOG_USUAL" IS '通用日志表'; -- ---------------------------- -- Table structure for BLADE_MENU -- ---------------------------- --- DROP TABLE "BLADE_MENU"; +DROP TABLE "BLADE_MENU"; CREATE TABLE "BLADE_MENU" ( "ID" NUMBER(20) NOT NULL , "PARENT_ID" NUMBER(20) , @@ -588,7 +593,7 @@ CREATE TABLE "BLADE_MENU" ( "ACTION" NUMBER(11) , "IS_OPEN" NUMBER(11) , "REMARK" NVARCHAR2(255) , - "IS_DELETED" NUMBER(11) + "IS_DELETED" NUMBER(11) ) TABLESPACE "BLADEX" LOGGING @@ -596,8 +601,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -624,6 +629,7 @@ COMMENT ON TABLE "BLADE_MENU" IS '菜单表'; -- ---------------------------- -- Records of BLADE_MENU -- ---------------------------- +INSERT INTO "BLADE_MENU" VALUES ('1164733389658962252', '1164733389658962251', 'sms_add', '新增', 'add', '/resource/sms/add', 'plus', '1', '2', '1', '1', NULL, '0'); INSERT INTO "BLADE_MENU" VALUES ('1123598815738675201', '0', 'desk', '工作台', 'menu', '/desk', 'desktop', '1', '1', '0', '1', NULL, '0'); INSERT INTO "BLADE_MENU" VALUES ('1123598815738675202', '1123598815738675201', 'notice', '通知公告', 'menu', '/desk/notice', NULL, '1', '1', '0', '1', NULL, '0'); INSERT INTO "BLADE_MENU" VALUES ('1123598815738675203', '0', 'system', '系统管理', 'menu', '/system', 'setting', '99', '1', '0', '1', NULL, '0'); @@ -694,7 +700,7 @@ INSERT INTO "BLADE_MENU" VALUES ('1164733379658963252', '1164733379658963251', ' INSERT INTO "BLADE_MENU" VALUES ('1164733379658963253', '1164733379658963251', 'dictbiz_edit', '修改', 'edit', '/system/dictbiz/edit', 'form', '2', '2', '2', '1', NULL, '0'); INSERT INTO "BLADE_MENU" VALUES ('1164733379658963254', '1164733379658963251', 'dictbiz_delete', '删除', 'delete', '/api/blade-system/dict-biz/remove', 'delete', '3', '2', '3', '1', NULL, '0'); INSERT INTO "BLADE_MENU" VALUES ('1164733379658963255', '1164733379658963251', 'dictbiz_view', '查看', 'view', '/system/dictbiz/view', 'file-text', '4', '2', '2', '1', NULL, '0'); -INSERT INTO "BLADE_MENU" VALUES ('1164733389658963251', '1123598815738675298', 'xxljob', '任务调度', 'menu', 'http://localhost:7009/xxl-job-admin', NULL, '2', '1', '0', '2', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1164733389658963251', '1123598815738675298', 'xxljob', '任务调度', 'menu', 'http://localhost:7009/xxl-job-admin', NULL, '3', '1', '0', '2', NULL, '0'); INSERT INTO "BLADE_MENU" VALUES ('1123598815738675260', '1123598815738675256', 'tenant_view', '查看', 'view', '/system/tenant/view', 'file-text', '4', '2', '2', '1', NULL, '0'); INSERT INTO "BLADE_MENU" VALUES ('1123598815738675261', '1123598815738675203', 'client', '应用管理', 'menu', '/system/client', NULL, '8', '1', '0', '1', NULL, '0'); INSERT INTO "BLADE_MENU" VALUES ('1123598815738675262', '1123598815738675261', 'client_add', '新增', 'add', '/system/client/add', 'plus', '1', '2', '1', '1', NULL, '0'); @@ -755,12 +761,17 @@ INSERT INTO "BLADE_MENU" VALUES ('1161272593873321991', '1123598815738675217', ' INSERT INTO "BLADE_MENU" VALUES ('1161272593873321992', '1161272593873321991', 'datasource_add', '新增', 'add', '/tool/datasource/add', 'plus', '1', '2', '1', '1', NULL, '0'); INSERT INTO "BLADE_MENU" VALUES ('1161272593873321993', '1161272593873321991', 'datasource_edit', '修改', 'edit', '/tool/datasource/edit', 'form', '2', '2', '2', '2', NULL, '0'); INSERT INTO "BLADE_MENU" VALUES ('1161272593873321994', '1161272593873321991', 'datasource_delete', '删除', 'delete', '/api/blade-develop/datasource/remove', 'delete', '3', '2', '3', '3', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1164733389658962253', '1164733389658962251', 'sms_edit', '修改', 'edit', '/resource/sms/edit', 'form', '2', '2', '2', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1164733389658962254', '1164733389658962251', 'sms_delete', '删除', 'delete', '/api/blade-resource/sms/remove', 'delete', '3', '2', '3', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1164733389658962255', '1164733389658962251', 'sms_view', '查看', 'view', '/resource/sms/view', 'file-text', '4', '2', '2', '1', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1164733389658962256', '1164733389658962251', 'sms_enable', '启用', 'enable', '/api/blade-resource/sms/enable', 'key', '5', '2', '2', '2', NULL, '0'); +INSERT INTO "BLADE_MENU" VALUES ('1164733389658962251', '1123598815738675298', 'sms', '短信配置', 'menu', '/resource/sms', NULL, '2', '1', '0', '1', NULL, '0'); COMMIT; -- ---------------------------- -- Table structure for BLADE_NOTICE -- ---------------------------- --- DROP TABLE "BLADE_NOTICE"; +DROP TABLE "BLADE_NOTICE"; CREATE TABLE "BLADE_NOTICE" ( "ID" NUMBER(20) NOT NULL , "TENANT_ID" NVARCHAR2(12) , @@ -774,7 +785,7 @@ CREATE TABLE "BLADE_NOTICE" ( "UPDATE_USER" NUMBER(20) , "UPDATE_TIME" DATE , "STATUS" NUMBER(11) , - "IS_DELETED" NUMBER(11) + "IS_DELETED" NUMBER(11) ) TABLESPACE "BLADEX" LOGGING @@ -782,8 +793,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -818,7 +829,7 @@ COMMIT; -- ---------------------------- -- Table structure for BLADE_OSS -- ---------------------------- --- DROP TABLE "BLADE_OSS"; +DROP TABLE "BLADE_OSS"; CREATE TABLE "BLADE_OSS" ( "ID" NUMBER(20) NOT NULL , "TENANT_ID" NVARCHAR2(12) , @@ -837,7 +848,7 @@ CREATE TABLE "BLADE_OSS" ( "UPDATE_USER" NUMBER(20) , "UPDATE_TIME" DATE , "STATUS" NUMBER(11) , - "IS_DELETED" NUMBER(11) + "IS_DELETED" NUMBER(11) ) TABLESPACE "BLADEX" LOGGING @@ -845,8 +856,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -885,7 +896,7 @@ COMMIT; -- ---------------------------- -- Table structure for BLADE_PARAM -- ---------------------------- --- DROP TABLE "BLADE_PARAM"; +DROP TABLE "BLADE_PARAM"; CREATE TABLE "BLADE_PARAM" ( "ID" NUMBER(20) NOT NULL , "PARAM_NAME" NVARCHAR2(255) , @@ -898,7 +909,7 @@ CREATE TABLE "BLADE_PARAM" ( "UPDATE_USER" NUMBER(20) , "UPDATE_TIME" DATE , "STATUS" NUMBER(11) , - "IS_DELETED" NUMBER(11) + "IS_DELETED" NUMBER(11) ) TABLESPACE "BLADEX" LOGGING @@ -906,8 +917,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -940,7 +951,7 @@ COMMIT; -- ---------------------------- -- Table structure for BLADE_PROCESS_LEAVE -- ---------------------------- --- DROP TABLE "BLADE_PROCESS_LEAVE"; +DROP TABLE "BLADE_PROCESS_LEAVE"; CREATE TABLE "BLADE_PROCESS_LEAVE" ( "ID" NUMBER(20) NOT NULL , "PROCESS_DEFINITION_ID" NVARCHAR2(64) , @@ -956,7 +967,7 @@ CREATE TABLE "BLADE_PROCESS_LEAVE" ( "UPDATE_USER" NUMBER(20) , "UPDATE_TIME" DATE , "STATUS" NUMBER(11) , - "IS_DELETED" NUMBER(11) + "IS_DELETED" NUMBER(11) ) TABLESPACE "BLADEX" LOGGING @@ -964,8 +975,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -994,7 +1005,7 @@ COMMENT ON TABLE "BLADE_PROCESS_LEAVE" IS '流程请假业务表'; -- ---------------------------- -- Table structure for BLADE_ROLE -- ---------------------------- --- DROP TABLE "BLADE_ROLE"; +DROP TABLE "BLADE_ROLE"; CREATE TABLE "BLADE_ROLE" ( "ID" NUMBER(20) NOT NULL , "TENANT_ID" NVARCHAR2(12) , @@ -1002,7 +1013,7 @@ CREATE TABLE "BLADE_ROLE" ( "ROLE_NAME" NVARCHAR2(255) , "SORT" NUMBER(11) , "ROLE_ALIAS" NVARCHAR2(255) , - "IS_DELETED" NUMBER(11) + "IS_DELETED" NUMBER(11) ) TABLESPACE "BLADEX" LOGGING @@ -1010,8 +1021,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -1042,11 +1053,11 @@ COMMIT; -- ---------------------------- -- Table structure for BLADE_ROLE_MENU -- ---------------------------- --- DROP TABLE "BLADE_ROLE_MENU"; +DROP TABLE "BLADE_ROLE_MENU"; CREATE TABLE "BLADE_ROLE_MENU" ( "ID" NUMBER(20) NOT NULL , "MENU_ID" NUMBER(20) , - "ROLE_ID" NUMBER(20) + "ROLE_ID" NUMBER(20) ) TABLESPACE "BLADEX" LOGGING @@ -1054,8 +1065,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -1072,6 +1083,7 @@ COMMENT ON TABLE "BLADE_ROLE_MENU" IS '角色菜单关联表'; -- ---------------------------- -- Records of BLADE_ROLE_MENU -- ---------------------------- +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272893873222994', '1164733389658962254', '1123598816738675201'); INSERT INTO "BLADE_ROLE_MENU" VALUES ('1123598817738675363', '1123598815738675201', '1123598816738675202'); INSERT INTO "BLADE_ROLE_MENU" VALUES ('1123598817738675364', '1123598815738675202', '1123598816738675202'); INSERT INTO "BLADE_ROLE_MENU" VALUES ('1123598817738675365', '1123598815738675219', '1123598816738675202'); @@ -1302,17 +1314,22 @@ INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272793873322993', '116473337965896325 INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272793873322994', '1164733379658963254', '1123598816738675201'); INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272793873322995', '1164733379658963255', '1123598816738675201'); INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272893873322991', '1164733389658963251', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272893873222991', '1164733389658962251', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272893873222995', '1164733389658962255', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272893873222996', '1164733389658962256', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272893873222992', '1164733389658962252', '1123598816738675201'); +INSERT INTO "BLADE_ROLE_MENU" VALUES ('1161272893873222993', '1164733389658962253', '1123598816738675201'); COMMIT; -- ---------------------------- -- Table structure for BLADE_ROLE_SCOPE -- ---------------------------- --- DROP TABLE "BLADE_ROLE_SCOPE"; +DROP TABLE "BLADE_ROLE_SCOPE"; CREATE TABLE "BLADE_ROLE_SCOPE" ( "ID" NUMBER(20) NOT NULL , "SCOPE_CATEGORY" NUMBER(11) , "SCOPE_ID" NUMBER(20) , - "ROLE_ID" NUMBER(20) + "ROLE_ID" NUMBER(20) ) TABLESPACE "BLADEX" LOGGING @@ -1320,8 +1337,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -1339,7 +1356,7 @@ COMMENT ON TABLE "BLADE_ROLE_SCOPE" IS '角色数据权限关联表'; -- ---------------------------- -- Table structure for BLADE_SCOPE_API -- ---------------------------- --- DROP TABLE "BLADE_SCOPE_API"; +DROP TABLE "BLADE_SCOPE_API"; CREATE TABLE "BLADE_SCOPE_API" ( "ID" NUMBER(20) NOT NULL , "MENU_ID" NUMBER(20) , @@ -1354,7 +1371,7 @@ CREATE TABLE "BLADE_SCOPE_API" ( "UPDATE_USER" NUMBER(20) , "UPDATE_TIME" DATE , "STATUS" NUMBER(11) , - "IS_DELETED" NUMBER(11) + "IS_DELETED" NUMBER(11) ) TABLESPACE "BLADEX" LOGGING @@ -1362,8 +1379,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -1391,7 +1408,7 @@ COMMENT ON TABLE "BLADE_SCOPE_API" IS '接口权限表'; -- ---------------------------- -- Table structure for BLADE_SCOPE_DATA -- ---------------------------- --- DROP TABLE "BLADE_SCOPE_DATA"; +DROP TABLE "BLADE_SCOPE_DATA"; CREATE TABLE "BLADE_SCOPE_DATA" ( "ID" NUMBER(20) NOT NULL , "MENU_ID" NUMBER(20) , @@ -1409,7 +1426,7 @@ CREATE TABLE "BLADE_SCOPE_DATA" ( "UPDATE_USER" NUMBER(20) , "UPDATE_TIME" DATE , "STATUS" NUMBER(11) , - "IS_DELETED" NUMBER(11) + "IS_DELETED" NUMBER(11) ) TABLESPACE "BLADEX" LOGGING @@ -1417,8 +1434,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -1446,37 +1463,95 @@ COMMENT ON COLUMN "BLADE_SCOPE_DATA"."STATUS" IS '状态'; COMMENT ON COLUMN "BLADE_SCOPE_DATA"."IS_DELETED" IS '是否已删除'; COMMENT ON TABLE "BLADE_SCOPE_DATA" IS '数据权限表'; +-- ---------------------------- +-- Table structure for BLADE_SMS +-- ---------------------------- +DROP TABLE "BLADE_SMS"; +CREATE TABLE "BLADE_SMS" ( + "ID" NUMBER(20) NOT NULL , + "TENANT_ID" NVARCHAR2(12) , + "CATEGORY" NUMBER(11) , + "SMS_CODE" VARCHAR2(12 BYTE) , + "TEMPLATE_ID" VARCHAR2(64 BYTE) , + "ACCESS_KEY" NVARCHAR2(255) , + "SECRET_KEY" NVARCHAR2(255) , + "REGION_ID" NVARCHAR2(255) , + "SIGN_NAME" VARCHAR2(64 BYTE) , + "REMARK" NVARCHAR2(255) , + "CREATE_USER" NUMBER(20) , + "CREATE_DEPT" NUMBER(20) , + "CREATE_TIME" DATE , + "UPDATE_USER" NUMBER(20) , + "UPDATE_TIME" DATE , + "STATUS" NUMBER(11) , + "IS_DELETED" NUMBER(11) +) +TABLESPACE "BLADEX" +LOGGING +NOCOMPRESS +PCTFREE 10 +INITRANS 1 +STORAGE ( + INITIAL 65536 + NEXT 1048576 + MINEXTENTS 1 + MAXEXTENTS 2147483645 + BUFFER_POOL DEFAULT +) +PARALLEL 1 +NOCACHE +DISABLE ROW MOVEMENT +; +COMMENT ON COLUMN "BLADE_SMS"."ID" IS '主键'; +COMMENT ON COLUMN "BLADE_SMS"."TENANT_ID" IS '租户ID'; +COMMENT ON COLUMN "BLADE_SMS"."CATEGORY" IS '分类'; +COMMENT ON COLUMN "BLADE_SMS"."SMS_CODE" IS '资源编号'; +COMMENT ON COLUMN "BLADE_SMS"."TEMPLATE_ID" IS '模板ID'; +COMMENT ON COLUMN "BLADE_SMS"."ACCESS_KEY" IS 'accessKey'; +COMMENT ON COLUMN "BLADE_SMS"."SECRET_KEY" IS 'secretKey'; +COMMENT ON COLUMN "BLADE_SMS"."REGION_ID" IS 'regionId'; +COMMENT ON COLUMN "BLADE_SMS"."SIGN_NAME" IS '短信签名'; +COMMENT ON COLUMN "BLADE_SMS"."REMARK" IS '备注'; +COMMENT ON COLUMN "BLADE_SMS"."CREATE_USER" IS '创建人'; +COMMENT ON COLUMN "BLADE_SMS"."CREATE_DEPT" IS '创建部门'; +COMMENT ON COLUMN "BLADE_SMS"."CREATE_TIME" IS '创建时间'; +COMMENT ON COLUMN "BLADE_SMS"."UPDATE_USER" IS '修改人'; +COMMENT ON COLUMN "BLADE_SMS"."UPDATE_TIME" IS '修改时间'; +COMMENT ON COLUMN "BLADE_SMS"."STATUS" IS '状态'; +COMMENT ON COLUMN "BLADE_SMS"."IS_DELETED" IS '是否已删除'; +COMMENT ON TABLE "BLADE_SMS" IS '短信配置表'; + -- ---------------------------- -- Table structure for BLADE_TENANT -- ---------------------------- --- DROP TABLE "BLADE_TENANT"; +DROP TABLE "BLADE_TENANT"; CREATE TABLE "BLADE_TENANT" ( -"ID" NUMBER(20) NOT NULL , -"TENANT_ID" NVARCHAR2(12) , -"TENANT_NAME" NVARCHAR2(50) NOT NULL , -"DOMAIN" VARCHAR2(255 BYTE) , -"BACKGROUND_URL" VARCHAR2(1000 BYTE) , -"LINKMAN" NVARCHAR2(20) , -"CONTACT_NUMBER" NVARCHAR2(20) , -"ADDRESS" NVARCHAR2(255) , -"ACCOUNT_NUMBER" NUMBER DEFAULT -1 , -"EXPIRE_TIME" DATE , -"CREATE_USER" NUMBER(20) , -"CREATE_DEPT" NUMBER(20) , -"CREATE_TIME" DATE , -"UPDATE_USER" NUMBER(20) , -"UPDATE_TIME" DATE , -"STATUS" NUMBER(11) , -"IS_DELETED" NUMBER(11) + "ID" NUMBER(20) NOT NULL , + "TENANT_ID" NVARCHAR2(12) , + "TENANT_NAME" NVARCHAR2(50) NOT NULL , + "DOMAIN" VARCHAR2(255 BYTE) , + "BACKGROUND_URL" VARCHAR2(1000 BYTE) , + "LINKMAN" NVARCHAR2(20) , + "CONTACT_NUMBER" NVARCHAR2(20) , + "ADDRESS" NVARCHAR2(255) , + "ACCOUNT_NUMBER" NUMBER DEFAULT -1 , + "EXPIRE_TIME" DATE , + "CREATE_USER" NUMBER(20) , + "CREATE_DEPT" NUMBER(20) , + "CREATE_TIME" DATE , + "UPDATE_USER" NUMBER(20) , + "UPDATE_TIME" DATE , + "STATUS" NUMBER(11) , + "IS_DELETED" NUMBER(11) ) - TABLESPACE "BLADEX" - LOGGING +TABLESPACE "BLADEX" +LOGGING NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -1513,7 +1588,7 @@ COMMIT; -- ---------------------------- -- Table structure for BLADE_TOP_MENU -- ---------------------------- --- DROP TABLE "BLADE_TOP_MENU"; +DROP TABLE "BLADE_TOP_MENU"; CREATE TABLE "BLADE_TOP_MENU" ( "ID" NUMBER(20) NOT NULL , "TENANT_ID" NVARCHAR2(12) , @@ -1527,7 +1602,7 @@ CREATE TABLE "BLADE_TOP_MENU" ( "UPDATE_USER" NUMBER(20) , "UPDATE_TIME" DATE , "STATUS" NUMBER(11) , - "IS_DELETED" NUMBER(11) + "IS_DELETED" NUMBER(11) ) TABLESPACE "BLADEX" LOGGING @@ -1535,8 +1610,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -1563,11 +1638,11 @@ COMMENT ON TABLE "BLADE_TOP_MENU" IS '顶部菜单表'; -- ---------------------------- -- Table structure for BLADE_TOP_MENU_SETTING -- ---------------------------- --- DROP TABLE "BLADE_TOP_MENU_SETTING"; +DROP TABLE "BLADE_TOP_MENU_SETTING"; CREATE TABLE "BLADE_TOP_MENU_SETTING" ( "ID" NUMBER(20) NOT NULL , "TOP_MENU_ID" NUMBER(20) , - "MENU_ID" NUMBER(20) + "MENU_ID" NUMBER(20) ) TABLESPACE "BLADEX" LOGGING @@ -1575,8 +1650,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -1593,7 +1668,7 @@ COMMENT ON TABLE "BLADE_TOP_MENU_SETTING" IS '顶部菜单配置表'; -- ---------------------------- -- Table structure for BLADE_USER -- ---------------------------- --- DROP TABLE "BLADE_USER"; +DROP TABLE "BLADE_USER"; CREATE TABLE "BLADE_USER" ( "ID" NUMBER(20) NOT NULL , "TENANT_ID" NVARCHAR2(12) , @@ -1614,7 +1689,7 @@ CREATE TABLE "BLADE_USER" ( "UPDATE_USER" NUMBER(20) , "UPDATE_TIME" DATE , "STATUS" NUMBER(11) , - "IS_DELETED" NUMBER(11) + "IS_DELETED" NUMBER(11) ) TABLESPACE "BLADEX" LOGGING @@ -1622,8 +1697,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -1665,11 +1740,11 @@ COMMIT; -- ---------------------------- -- Table structure for BLADE_USER_DEPT -- ---------------------------- --- DROP TABLE "BLADE_USER_DEPT"; +DROP TABLE "BLADE_USER_DEPT"; CREATE TABLE "BLADE_USER_DEPT" ( "ID" NUMBER(20) NOT NULL , "USER_ID" NUMBER(20) , - "DEPT_ID" NUMBER(20) + "DEPT_ID" NUMBER(20) ) TABLESPACE "BLADEX" LOGGING @@ -1677,8 +1752,8 @@ NOCOMPRESS PCTFREE 10 INITRANS 1 STORAGE ( - INITIAL 65536 - NEXT 1048576 + INITIAL 65536 + NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 BUFFER_POOL DEFAULT @@ -1754,6 +1829,15 @@ ALTER TABLE "BLADE_CLIENT" ADD CONSTRAINT "SYS_C0020617" CHECK ("ACCESS_TOKEN_VA ALTER TABLE "BLADE_CLIENT" ADD CONSTRAINT "SYS_C0020618" CHECK ("REFRESH_TOKEN_VALIDITY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_CLIENT" ADD CONSTRAINT "SYS_C0020619" CHECK ("STATUS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_CLIENT" ADD CONSTRAINT "SYS_C0020620" CHECK ("IS_DELETED" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_CLIENT" ADD CONSTRAINT "SYS_C0022203" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_CLIENT" ADD CONSTRAINT "SYS_C0022204" CHECK ("CLIENT_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_CLIENT" ADD CONSTRAINT "SYS_C0022205" CHECK ("CLIENT_SECRET" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_CLIENT" ADD CONSTRAINT "SYS_C0022206" CHECK ("SCOPE" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_CLIENT" ADD CONSTRAINT "SYS_C0022207" CHECK ("AUTHORIZED_GRANT_TYPES" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_CLIENT" ADD CONSTRAINT "SYS_C0022208" CHECK ("ACCESS_TOKEN_VALIDITY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_CLIENT" ADD CONSTRAINT "SYS_C0022209" CHECK ("REFRESH_TOKEN_VALIDITY" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_CLIENT" ADD CONSTRAINT "SYS_C0022210" CHECK ("STATUS" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_CLIENT" ADD CONSTRAINT "SYS_C0022211" CHECK ("IS_DELETED" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_CODE @@ -1768,6 +1852,7 @@ ALTER TABLE "BLADE_CODE" ADD CONSTRAINT "SYS_C0017228" CHECK ("ID" IS NOT NULL) ALTER TABLE "BLADE_CODE" ADD CONSTRAINT "SYS_C0019306" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_CODE" ADD CONSTRAINT "SYS_C0019631" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_CODE" ADD CONSTRAINT "SYS_C0020621" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_CODE" ADD CONSTRAINT "SYS_C0022212" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_DATASOURCE @@ -1781,6 +1866,7 @@ ALTER TABLE "BLADE_DATASOURCE" ADD CONSTRAINT "SYS_C0017300" CHECK ("ID" IS NOT ALTER TABLE "BLADE_DATASOURCE" ADD CONSTRAINT "SYS_C0019307" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_DATASOURCE" ADD CONSTRAINT "SYS_C0019632" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_DATASOURCE" ADD CONSTRAINT "SYS_C0020622" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_DATASOURCE" ADD CONSTRAINT "SYS_C0022213" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_DEPT @@ -1795,6 +1881,7 @@ ALTER TABLE "BLADE_DEPT" ADD CONSTRAINT "SYS_C0017229" CHECK ("ID" IS NOT NULL) ALTER TABLE "BLADE_DEPT" ADD CONSTRAINT "SYS_C0019308" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_DEPT" ADD CONSTRAINT "SYS_C0019633" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_DEPT" ADD CONSTRAINT "SYS_C0020623" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_DEPT" ADD CONSTRAINT "SYS_C0022214" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_DICT @@ -1809,6 +1896,7 @@ ALTER TABLE "BLADE_DICT" ADD CONSTRAINT "SYS_C0017230" CHECK ("ID" IS NOT NULL) ALTER TABLE "BLADE_DICT" ADD CONSTRAINT "SYS_C0019309" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_DICT" ADD CONSTRAINT "SYS_C0019634" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_DICT" ADD CONSTRAINT "SYS_C0020624" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_DICT" ADD CONSTRAINT "SYS_C0022215" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_DICT_BIZ @@ -1821,6 +1909,7 @@ ALTER TABLE "BLADE_DICT_BIZ" ADD CONSTRAINT "SYS_C0019412" PRIMARY KEY ("ID"); ALTER TABLE "BLADE_DICT_BIZ" ADD CONSTRAINT "SYS_C0019411" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_DICT_BIZ" ADD CONSTRAINT "SYS_C0019635" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_DICT_BIZ" ADD CONSTRAINT "SYS_C0020625" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_DICT_BIZ" ADD CONSTRAINT "SYS_C0022216" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_LOG_API @@ -1835,6 +1924,7 @@ ALTER TABLE "BLADE_LOG_API" ADD CONSTRAINT "SYS_C0017231" CHECK ("ID" IS NOT NUL ALTER TABLE "BLADE_LOG_API" ADD CONSTRAINT "SYS_C0019310" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_LOG_API" ADD CONSTRAINT "SYS_C0019636" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_LOG_API" ADD CONSTRAINT "SYS_C0020626" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_LOG_API" ADD CONSTRAINT "SYS_C0022217" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_LOG_ERROR @@ -1849,6 +1939,7 @@ ALTER TABLE "BLADE_LOG_ERROR" ADD CONSTRAINT "SYS_C0017232" CHECK ("ID" IS NOT N ALTER TABLE "BLADE_LOG_ERROR" ADD CONSTRAINT "SYS_C0019311" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_LOG_ERROR" ADD CONSTRAINT "SYS_C0019637" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_LOG_ERROR" ADD CONSTRAINT "SYS_C0020627" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_LOG_ERROR" ADD CONSTRAINT "SYS_C0022218" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_LOG_USUAL @@ -1863,6 +1954,7 @@ ALTER TABLE "BLADE_LOG_USUAL" ADD CONSTRAINT "SYS_C0017233" CHECK ("ID" IS NOT N ALTER TABLE "BLADE_LOG_USUAL" ADD CONSTRAINT "SYS_C0019312" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_LOG_USUAL" ADD CONSTRAINT "SYS_C0019638" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_LOG_USUAL" ADD CONSTRAINT "SYS_C0020628" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_LOG_USUAL" ADD CONSTRAINT "SYS_C0022219" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_MENU @@ -1877,6 +1969,7 @@ ALTER TABLE "BLADE_MENU" ADD CONSTRAINT "SYS_C0017234" CHECK ("ID" IS NOT NULL) ALTER TABLE "BLADE_MENU" ADD CONSTRAINT "SYS_C0019313" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_MENU" ADD CONSTRAINT "SYS_C0019639" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_MENU" ADD CONSTRAINT "SYS_C0020629" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_MENU" ADD CONSTRAINT "SYS_C0022220" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_NOTICE @@ -1891,6 +1984,7 @@ ALTER TABLE "BLADE_NOTICE" ADD CONSTRAINT "SYS_C0017235" CHECK ("ID" IS NOT NULL ALTER TABLE "BLADE_NOTICE" ADD CONSTRAINT "SYS_C0019314" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_NOTICE" ADD CONSTRAINT "SYS_C0019640" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_NOTICE" ADD CONSTRAINT "SYS_C0020630" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_NOTICE" ADD CONSTRAINT "SYS_C0022221" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_OSS @@ -1905,6 +1999,7 @@ ALTER TABLE "BLADE_OSS" ADD CONSTRAINT "SYS_C0017236" CHECK ("ID" IS NOT NULL) N ALTER TABLE "BLADE_OSS" ADD CONSTRAINT "SYS_C0019315" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_OSS" ADD CONSTRAINT "SYS_C0019641" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_OSS" ADD CONSTRAINT "SYS_C0020631" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_OSS" ADD CONSTRAINT "SYS_C0022222" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_PARAM @@ -1919,6 +2014,7 @@ ALTER TABLE "BLADE_PARAM" ADD CONSTRAINT "SYS_C0017237" CHECK ("ID" IS NOT NULL) ALTER TABLE "BLADE_PARAM" ADD CONSTRAINT "SYS_C0019316" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_PARAM" ADD CONSTRAINT "SYS_C0019642" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_PARAM" ADD CONSTRAINT "SYS_C0020632" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_PARAM" ADD CONSTRAINT "SYS_C0022223" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_PROCESS_LEAVE @@ -1933,6 +2029,7 @@ ALTER TABLE "BLADE_PROCESS_LEAVE" ADD CONSTRAINT "SYS_C0017238" CHECK ("ID" IS N ALTER TABLE "BLADE_PROCESS_LEAVE" ADD CONSTRAINT "SYS_C0019317" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_PROCESS_LEAVE" ADD CONSTRAINT "SYS_C0019643" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_PROCESS_LEAVE" ADD CONSTRAINT "SYS_C0020633" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_PROCESS_LEAVE" ADD CONSTRAINT "SYS_C0022224" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_ROLE @@ -1947,6 +2044,7 @@ ALTER TABLE "BLADE_ROLE" ADD CONSTRAINT "SYS_C0017239" CHECK ("ID" IS NOT NULL) ALTER TABLE "BLADE_ROLE" ADD CONSTRAINT "SYS_C0019318" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_ROLE" ADD CONSTRAINT "SYS_C0019644" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_ROLE" ADD CONSTRAINT "SYS_C0020634" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_ROLE" ADD CONSTRAINT "SYS_C0022225" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_ROLE_MENU @@ -1961,6 +2059,7 @@ ALTER TABLE "BLADE_ROLE_MENU" ADD CONSTRAINT "SYS_C0017240" CHECK ("ID" IS NOT N ALTER TABLE "BLADE_ROLE_MENU" ADD CONSTRAINT "SYS_C0019319" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_ROLE_MENU" ADD CONSTRAINT "SYS_C0019645" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_ROLE_MENU" ADD CONSTRAINT "SYS_C0020635" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_ROLE_MENU" ADD CONSTRAINT "SYS_C0022226" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_ROLE_SCOPE @@ -1975,6 +2074,7 @@ ALTER TABLE "BLADE_ROLE_SCOPE" ADD CONSTRAINT "SYS_C0017241" CHECK ("ID" IS NOT ALTER TABLE "BLADE_ROLE_SCOPE" ADD CONSTRAINT "SYS_C0019320" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_ROLE_SCOPE" ADD CONSTRAINT "SYS_C0019646" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_ROLE_SCOPE" ADD CONSTRAINT "SYS_C0020636" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_ROLE_SCOPE" ADD CONSTRAINT "SYS_C0022227" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_SCOPE_API @@ -1989,6 +2089,7 @@ ALTER TABLE "BLADE_SCOPE_API" ADD CONSTRAINT "SYS_C0017242" CHECK ("ID" IS NOT N ALTER TABLE "BLADE_SCOPE_API" ADD CONSTRAINT "SYS_C0019321" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_SCOPE_API" ADD CONSTRAINT "SYS_C0019647" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_SCOPE_API" ADD CONSTRAINT "SYS_C0020637" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_SCOPE_API" ADD CONSTRAINT "SYS_C0022228" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_SCOPE_DATA @@ -2003,6 +2104,17 @@ ALTER TABLE "BLADE_SCOPE_DATA" ADD CONSTRAINT "SYS_C0017243" CHECK ("ID" IS NOT ALTER TABLE "BLADE_SCOPE_DATA" ADD CONSTRAINT "SYS_C0019322" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_SCOPE_DATA" ADD CONSTRAINT "SYS_C0019648" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_SCOPE_DATA" ADD CONSTRAINT "SYS_C0020638" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_SCOPE_DATA" ADD CONSTRAINT "SYS_C0022229" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; + +-- ---------------------------- +-- Primary Key structure for table BLADE_SMS +-- ---------------------------- +ALTER TABLE "BLADE_SMS" ADD CONSTRAINT "SYS_C0022420" PRIMARY KEY ("ID"); + +-- ---------------------------- +-- Checks structure for table BLADE_SMS +-- ---------------------------- +ALTER TABLE "BLADE_SMS" ADD CONSTRAINT "SYS_C0022419" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_TENANT @@ -2022,6 +2134,8 @@ ALTER TABLE "BLADE_TENANT" ADD CONSTRAINT "SYS_C0019649" CHECK ("ID" IS NOT NULL ALTER TABLE "BLADE_TENANT" ADD CONSTRAINT "SYS_C0019650" CHECK ("TENANT_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_TENANT" ADD CONSTRAINT "SYS_C0020639" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_TENANT" ADD CONSTRAINT "SYS_C0020640" CHECK ("TENANT_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_TENANT" ADD CONSTRAINT "SYS_C0022230" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_TENANT" ADD CONSTRAINT "SYS_C0022231" CHECK ("TENANT_NAME" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_TOP_MENU @@ -2036,6 +2150,7 @@ ALTER TABLE "BLADE_TOP_MENU" ADD CONSTRAINT "SYS_C0017246" CHECK ("ID" IS NOT NU ALTER TABLE "BLADE_TOP_MENU" ADD CONSTRAINT "SYS_C0019325" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_TOP_MENU" ADD CONSTRAINT "SYS_C0019651" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_TOP_MENU" ADD CONSTRAINT "SYS_C0020641" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_TOP_MENU" ADD CONSTRAINT "SYS_C0022232" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_TOP_MENU_SETTING @@ -2050,6 +2165,7 @@ ALTER TABLE "BLADE_TOP_MENU_SETTING" ADD CONSTRAINT "SYS_C0017247" CHECK ("ID" I ALTER TABLE "BLADE_TOP_MENU_SETTING" ADD CONSTRAINT "SYS_C0019326" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_TOP_MENU_SETTING" ADD CONSTRAINT "SYS_C0019652" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_TOP_MENU_SETTING" ADD CONSTRAINT "SYS_C0020642" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_TOP_MENU_SETTING" ADD CONSTRAINT "SYS_C0022233" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_USER @@ -2064,6 +2180,7 @@ ALTER TABLE "BLADE_USER" ADD CONSTRAINT "SYS_C0017248" CHECK ("ID" IS NOT NULL) ALTER TABLE "BLADE_USER" ADD CONSTRAINT "SYS_C0019327" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_USER" ADD CONSTRAINT "SYS_C0019653" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_USER" ADD CONSTRAINT "SYS_C0020643" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_USER" ADD CONSTRAINT "SYS_C0022234" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; -- ---------------------------- -- Primary Key structure for table BLADE_USER_DEPT @@ -2075,3 +2192,4 @@ ALTER TABLE "BLADE_USER_DEPT" ADD CONSTRAINT "SYS_C0019771" PRIMARY KEY ("ID"); -- ---------------------------- ALTER TABLE "BLADE_USER_DEPT" ADD CONSTRAINT "SYS_C0019770" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; ALTER TABLE "BLADE_USER_DEPT" ADD CONSTRAINT "SYS_C0020644" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; +ALTER TABLE "BLADE_USER_DEPT" ADD CONSTRAINT "SYS_C0022235" CHECK ("ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE; diff --git a/doc/sql/postgresql/bladex-saber-postgresql.sql b/doc/sql/postgresql/bladex-saber-postgresql.sql index b9896a24..bcb850ad 100644 --- a/doc/sql/postgresql/bladex-saber-postgresql.sql +++ b/doc/sql/postgresql/bladex-saber-postgresql.sql @@ -12,7 +12,7 @@ Target Server Version : 110001 File Encoding : 65001 - Date: 02/01/2020 13:56:12 + Date: 22/02/2020 00:47:58 */ @@ -269,9 +269,14 @@ INSERT INTO "blade_dict" VALUES (1123598814738675241, 1123598814738675240, 'scop INSERT INTO "blade_dict" VALUES (1123598814738675242, 1123598814738675240, 'scope_category', '2', '接口权限', 2, NULL, 0, 0); INSERT INTO "blade_dict" VALUES (1123598814738676224, 0, 'oss', '-1', '对象存储类型', 6, NULL, 0, 0); INSERT INTO "blade_dict" VALUES (1123598814738676225, 1123598814738676224, 'oss', '1', 'minio', 1, NULL, 0, 0); -INSERT INTO "blade_dict" VALUES (1123598814738676226, 1123598814738676224, 'oss', '2', 'qiniu', 2, NULL, 0, 0); -INSERT INTO "blade_dict" VALUES (1123598814738676227, 1123598814738676224, 'oss', '3', 'ali', 3, NULL, 0, 0); -INSERT INTO "blade_dict" VALUES (1123598814738676228, 1123598814738676224, 'oss', '4', 'tencent', 4, NULL, 0, 0); +INSERT INTO "blade_dict" VALUES (1123598814738677220, 0, 'sms', '-1', '短信服务类型', 11, NULL, 0, 0); +INSERT INTO "blade_dict" VALUES (1123598814738676226, 1123598814738676224, 'oss', '2', '七牛云', 2, NULL, 0, 0); +INSERT INTO "blade_dict" VALUES (1123598814738677222, 1123598814738677220, 'sms', '2', '七牛云', 2, NULL, 0, 0); +INSERT INTO "blade_dict" VALUES (1123598814738677221, 1123598814738677220, 'sms', '1', '云片', 1, NULL, 0, 0); +INSERT INTO "blade_dict" VALUES (1123598814738676227, 1123598814738676224, 'oss', '3', '阿里云', 3, NULL, 0, 0); +INSERT INTO "blade_dict" VALUES (1123598814738677223, 1123598814738677220, 'sms', '3', '阿里云', 3, NULL, 0, 0); +INSERT INTO "blade_dict" VALUES (1123598814738677224, 1123598814738677220, 'sms', '4', '腾讯云', 4, NULL, 0, 0); +INSERT INTO "blade_dict" VALUES (1123598814738676228, 1123598814738676224, 'oss', '4', '腾讯云', 4, NULL, 0, 0); COMMIT; -- ---------------------------- @@ -613,7 +618,13 @@ INSERT INTO "blade_menu" VALUES (1164733379658963252, 1164733379658963251, 'dict INSERT INTO "blade_menu" VALUES (1164733379658963253, 1164733379658963251, 'dictbiz_edit', '修改', 'edit', '/system/dictbiz/edit', 'form', 2, 2, 2, 1, '', 0); INSERT INTO "blade_menu" VALUES (1164733379658963254, 1164733379658963251, 'dictbiz_delete', '删除', 'delete', '/api/blade-system/dict-biz/remove', 'delete', 3, 2, 3, 1, '', 0); INSERT INTO "blade_menu" VALUES (1164733379658963255, 1164733379658963251, 'dictbiz_view', '查看', 'view', '/system/dictbiz/view', 'file-text', 4, 2, 2, 1, '', 0); -INSERT INTO "blade_menu" VALUES (1164733389658963251, 1123598815738675298, 'xxljob', '任务调度', 'menu', 'http://localhost:7009/xxl-job-admin', 'iconfont iconicon_cspace', 2, 1, 0, 2, '', 0); +INSERT INTO "blade_menu" VALUES (1164733389658962251, 1123598815738675298, 'sms', '短信配置', 'menu', '/resource/sms', 'iconfont iconicon_message', 2, 1, 0, 1, NULL, 0); +INSERT INTO "blade_menu" VALUES (1164733389658962252, 1164733389658962251, 'sms_add', '新增', 'add', '/resource/sms/add', 'plus', 1, 2, 1, 1, NULL, 0); +INSERT INTO "blade_menu" VALUES (1164733389658962253, 1164733389658962251, 'sms_edit', '修改', 'edit', '/resource/sms/edit', 'form', 2, 2, 2, 1, NULL, 0); +INSERT INTO "blade_menu" VALUES (1164733389658962254, 1164733389658962251, 'sms_delete', '删除', 'delete', '/api/blade-resource/sms/remove', 'delete', 3, 2, 3, 1, NULL, 0); +INSERT INTO "blade_menu" VALUES (1164733389658962255, 1164733389658962251, 'sms_view', '查看', 'view', '/resource/sms/view', 'file-text', 4, 2, 2, 1, NULL, 0); +INSERT INTO "blade_menu" VALUES (1164733389658962256, 1164733389658962251, 'sms_enable', '启用', 'enable', '/api/blade-resource/sms/enable', 'key', 5, 2, 2, 2, NULL, 0); +INSERT INTO "blade_menu" VALUES (1164733389658963251, 1123598815738675298, 'xxljob', '任务调度', 'menu', 'http://localhost:7009/xxl-job-admin', 'iconfont iconicon_cspace', 3, 1, 0, 2, '', 0); COMMIT; -- ---------------------------- @@ -1076,6 +1087,12 @@ INSERT INTO "blade_role_menu" VALUES (1161272793873322993, 1164733379658963253, INSERT INTO "blade_role_menu" VALUES (1161272793873322994, 1164733379658963254, 1123598816738675201); INSERT INTO "blade_role_menu" VALUES (1161272793873322995, 1164733379658963255, 1123598816738675201); INSERT INTO "blade_role_menu" VALUES (1161272893873322991, 1164733389658963251, 1123598816738675201); +INSERT INTO "blade_role_menu" VALUES (1161272893873222991, 1164733389658962251, 1123598816738675201); +INSERT INTO "blade_role_menu" VALUES (1161272893873222992, 1164733389658962252, 1123598816738675201); +INSERT INTO "blade_role_menu" VALUES (1161272893873222993, 1164733389658962253, 1123598816738675201); +INSERT INTO "blade_role_menu" VALUES (1161272893873222994, 1164733389658962254, 1123598816738675201); +INSERT INTO "blade_role_menu" VALUES (1161272893873222995, 1164733389658962255, 1123598816738675201); +INSERT INTO "blade_role_menu" VALUES (1161272893873222996, 1164733389658962256, 1123598816738675201); COMMIT; -- ---------------------------- @@ -1175,6 +1192,49 @@ COMMENT ON COLUMN "blade_scope_data"."status" IS '状态'; COMMENT ON COLUMN "blade_scope_data"."is_deleted" IS '是否已删除'; COMMENT ON TABLE "blade_scope_data" IS '数据权限表'; +-- ---------------------------- +-- Table structure for blade_sms +-- ---------------------------- +DROP TABLE IF EXISTS "blade_sms"; +CREATE TABLE "blade_sms" ( + "id" int8 NOT NULL, + "tenant_id" varchar(12) COLLATE "pg_catalog"."default", + "category" int4, + "sms_code" varchar(12) COLLATE "pg_catalog"."default", + "template_id" varchar(64) COLLATE "pg_catalog"."default", + "access_key" varchar(255) COLLATE "pg_catalog"."default", + "secret_key" varchar(255) COLLATE "pg_catalog"."default", + "region_id" varchar(255) COLLATE "pg_catalog"."default", + "sign_name" varchar(64) COLLATE "pg_catalog"."default", + "remark" varchar(255) COLLATE "pg_catalog"."default", + "create_user" int8, + "create_dept" int8, + "create_time" timestamp(6), + "update_user" int8, + "update_time" timestamp(6), + "status" int4, + "is_deleted" int4 +) +; +COMMENT ON COLUMN "blade_sms"."id" IS '主键'; +COMMENT ON COLUMN "blade_sms"."tenant_id" IS '租户ID'; +COMMENT ON COLUMN "blade_sms"."category" IS '分类'; +COMMENT ON COLUMN "blade_sms"."sms_code" IS '资源编号'; +COMMENT ON COLUMN "blade_sms"."template_id" IS '模板ID'; +COMMENT ON COLUMN "blade_sms"."access_key" IS 'accessKey'; +COMMENT ON COLUMN "blade_sms"."secret_key" IS 'secretKey'; +COMMENT ON COLUMN "blade_sms"."region_id" IS 'regionId'; +COMMENT ON COLUMN "blade_sms"."sign_name" IS '短信签名'; +COMMENT ON COLUMN "blade_sms"."remark" IS '备注'; +COMMENT ON COLUMN "blade_sms"."create_user" IS '创建人'; +COMMENT ON COLUMN "blade_sms"."create_dept" IS '创建部门'; +COMMENT ON COLUMN "blade_sms"."create_time" IS '创建时间'; +COMMENT ON COLUMN "blade_sms"."update_user" IS '修改人'; +COMMENT ON COLUMN "blade_sms"."update_time" IS '修改时间'; +COMMENT ON COLUMN "blade_sms"."status" IS '状态'; +COMMENT ON COLUMN "blade_sms"."is_deleted" IS '是否已删除'; +COMMENT ON TABLE "blade_sms" IS '短信配置表'; + -- ---------------------------- -- Table structure for blade_tenant -- ---------------------------- @@ -1454,6 +1514,11 @@ ALTER TABLE "blade_scope_api" ADD CONSTRAINT "blade_scope_api_pkey" PRIMARY KEY -- ---------------------------- ALTER TABLE "blade_scope_data" ADD CONSTRAINT "blade_scope_data_pkey" PRIMARY KEY ("id"); +-- ---------------------------- +-- Primary Key structure for table blade_sms +-- ---------------------------- +ALTER TABLE "blade_sms" ADD CONSTRAINT "blade_sms_pkey" PRIMARY KEY ("id"); + -- ---------------------------- -- Primary Key structure for table blade_tenant -- ---------------------------- diff --git a/doc/sql/postgresql/bladex-sword-postgresql.sql b/doc/sql/postgresql/bladex-sword-postgresql.sql index f55689d8..f93914b3 100644 --- a/doc/sql/postgresql/bladex-sword-postgresql.sql +++ b/doc/sql/postgresql/bladex-sword-postgresql.sql @@ -12,7 +12,7 @@ Target Server Version : 110001 File Encoding : 65001 - Date: 02/01/2020 13:56:57 + Date: 22/02/2020 00:49:07 */ @@ -269,9 +269,14 @@ INSERT INTO "blade_dict" VALUES (1123598814738675241, 1123598814738675240, 'scop INSERT INTO "blade_dict" VALUES (1123598814738675242, 1123598814738675240, 'scope_category', '2', '接口权限', 2, NULL, 0, 0); INSERT INTO "blade_dict" VALUES (1123598814738676224, 0, 'oss', '-1', '对象存储类型', 6, NULL, 0, 0); INSERT INTO "blade_dict" VALUES (1123598814738676225, 1123598814738676224, 'oss', '1', 'minio', 1, NULL, 0, 0); -INSERT INTO "blade_dict" VALUES (1123598814738676226, 1123598814738676224, 'oss', '2', 'qiniu', 2, NULL, 0, 0); -INSERT INTO "blade_dict" VALUES (1123598814738676227, 1123598814738676224, 'oss', '3', 'ali', 3, NULL, 0, 0); -INSERT INTO "blade_dict" VALUES (1123598814738676228, 1123598814738676224, 'oss', '4', 'tencent', 4, NULL, 0, 0); +INSERT INTO "blade_dict" VALUES (1123598814738677220, 0, 'sms', '-1', '短信服务类型', 11, NULL, 0, 0); +INSERT INTO "blade_dict" VALUES (1123598814738676226, 1123598814738676224, 'oss', '2', '七牛云', 2, NULL, 0, 0); +INSERT INTO "blade_dict" VALUES (1123598814738676227, 1123598814738676224, 'oss', '3', '阿里云', 3, NULL, 0, 0); +INSERT INTO "blade_dict" VALUES (1123598814738677223, 1123598814738677220, 'sms', '3', '阿里云', 3, NULL, 0, 0); +INSERT INTO "blade_dict" VALUES (1123598814738677221, 1123598814738677220, 'sms', '1', '云片', 1, NULL, 0, 0); +INSERT INTO "blade_dict" VALUES (1123598814738677222, 1123598814738677220, 'sms', '2', '七牛云', 2, NULL, 0, 0); +INSERT INTO "blade_dict" VALUES (1123598814738677224, 1123598814738677220, 'sms', '4', '腾讯云', 4, NULL, 0, 0); +INSERT INTO "blade_dict" VALUES (1123598814738676228, 1123598814738676224, 'oss', '4', '腾讯云', 4, NULL, 0, 0); COMMIT; -- ---------------------------- @@ -611,7 +616,13 @@ INSERT INTO "blade_menu" VALUES (1164733379658963252, 1164733379658963251, 'dict INSERT INTO "blade_menu" VALUES (1164733379658963253, 1164733379658963251, 'dictbiz_edit', '修改', 'edit', '/system/dictbiz/edit', 'form', 2, 2, 2, 1, '', 0); INSERT INTO "blade_menu" VALUES (1164733379658963254, 1164733379658963251, 'dictbiz_delete', '删除', 'delete', '/api/blade-system/dict-biz/remove', 'delete', 3, 2, 3, 1, '', 0); INSERT INTO "blade_menu" VALUES (1164733379658963255, 1164733379658963251, 'dictbiz_view', '查看', 'view', '/system/dictbiz/view', 'file-text', 4, 2, 2, 1, '', 0); -INSERT INTO "blade_menu" VALUES (1164733389658963251, 1123598815738675298, 'xxljob', '任务调度', 'menu', 'http://localhost:7009/xxl-job-admin', '', 2, 1, 0, 2, '', 0); +INSERT INTO "blade_menu" VALUES (1164733389658962252, 1164733389658962251, 'sms_add', '新增', 'add', '/resource/sms/add', 'plus', 1, 2, 1, 1, NULL, 0); +INSERT INTO "blade_menu" VALUES (1164733389658962251, 1123598815738675298, 'sms', '短信配置', 'menu', '/resource/sms', '', 2, 1, 0, 1, NULL, 0); +INSERT INTO "blade_menu" VALUES (1164733389658962253, 1164733389658962251, 'sms_edit', '修改', 'edit', '/resource/sms/edit', 'form', 2, 2, 2, 1, NULL, 0); +INSERT INTO "blade_menu" VALUES (1164733389658962254, 1164733389658962251, 'sms_delete', '删除', 'delete', '/api/blade-resource/sms/remove', 'delete', 3, 2, 3, 1, NULL, 0); +INSERT INTO "blade_menu" VALUES (1164733389658962255, 1164733389658962251, 'sms_view', '查看', 'view', '/resource/sms/view', 'file-text', 4, 2, 2, 1, NULL, 0); +INSERT INTO "blade_menu" VALUES (1164733389658962256, 1164733389658962251, 'sms_enable', '启用', 'enable', '/api/blade-resource/sms/enable', 'key', 5, 2, 2, 2, NULL, 0); +INSERT INTO "blade_menu" VALUES (1164733389658963251, 1123598815738675298, 'xxljob', '任务调度', 'menu', 'http://localhost:7009/xxl-job-admin', '', 3, 1, 0, 2, '', 0); COMMIT; -- ---------------------------- @@ -1074,6 +1085,12 @@ INSERT INTO "blade_role_menu" VALUES (1161272793873322993, 1164733379658963253, INSERT INTO "blade_role_menu" VALUES (1161272793873322994, 1164733379658963254, 1123598816738675201); INSERT INTO "blade_role_menu" VALUES (1161272793873322995, 1164733379658963255, 1123598816738675201); INSERT INTO "blade_role_menu" VALUES (1161272893873322991, 1164733389658963251, 1123598816738675201); +INSERT INTO "blade_role_menu" VALUES (1161272893873222991, 1164733389658962251, 1123598816738675201); +INSERT INTO "blade_role_menu" VALUES (1161272893873222992, 1164733389658962252, 1123598816738675201); +INSERT INTO "blade_role_menu" VALUES (1161272893873222993, 1164733389658962253, 1123598816738675201); +INSERT INTO "blade_role_menu" VALUES (1161272893873222994, 1164733389658962254, 1123598816738675201); +INSERT INTO "blade_role_menu" VALUES (1161272893873222995, 1164733389658962255, 1123598816738675201); +INSERT INTO "blade_role_menu" VALUES (1161272893873222996, 1164733389658962256, 1123598816738675201); COMMIT; -- ---------------------------- @@ -1173,28 +1190,71 @@ COMMENT ON COLUMN "blade_scope_data"."status" IS '状态'; COMMENT ON COLUMN "blade_scope_data"."is_deleted" IS '是否已删除'; COMMENT ON TABLE "blade_scope_data" IS '数据权限表'; +-- ---------------------------- +-- Table structure for blade_sms +-- ---------------------------- +DROP TABLE IF EXISTS "blade_sms"; +CREATE TABLE "blade_sms" ( + "id" int8 NOT NULL, + "tenant_id" varchar(12) COLLATE "pg_catalog"."default", + "category" int4, + "sms_code" varchar(12) COLLATE "pg_catalog"."default", + "template_id" varchar(64) COLLATE "pg_catalog"."default", + "access_key" varchar(255) COLLATE "pg_catalog"."default", + "secret_key" varchar(255) COLLATE "pg_catalog"."default", + "region_id" varchar(255) COLLATE "pg_catalog"."default", + "sign_name" varchar(64) COLLATE "pg_catalog"."default", + "remark" varchar(255) COLLATE "pg_catalog"."default", + "create_user" int8, + "create_dept" int8, + "create_time" timestamp(6), + "update_user" int8, + "update_time" timestamp(6), + "status" int4, + "is_deleted" int4 +) +; +COMMENT ON COLUMN "blade_sms"."id" IS '主键'; +COMMENT ON COLUMN "blade_sms"."tenant_id" IS '租户ID'; +COMMENT ON COLUMN "blade_sms"."category" IS '分类'; +COMMENT ON COLUMN "blade_sms"."sms_code" IS '资源编号'; +COMMENT ON COLUMN "blade_sms"."template_id" IS '模板ID'; +COMMENT ON COLUMN "blade_sms"."access_key" IS 'accessKey'; +COMMENT ON COLUMN "blade_sms"."secret_key" IS 'secretKey'; +COMMENT ON COLUMN "blade_sms"."region_id" IS 'regionId'; +COMMENT ON COLUMN "blade_sms"."sign_name" IS '短信签名'; +COMMENT ON COLUMN "blade_sms"."remark" IS '备注'; +COMMENT ON COLUMN "blade_sms"."create_user" IS '创建人'; +COMMENT ON COLUMN "blade_sms"."create_dept" IS '创建部门'; +COMMENT ON COLUMN "blade_sms"."create_time" IS '创建时间'; +COMMENT ON COLUMN "blade_sms"."update_user" IS '修改人'; +COMMENT ON COLUMN "blade_sms"."update_time" IS '修改时间'; +COMMENT ON COLUMN "blade_sms"."status" IS '状态'; +COMMENT ON COLUMN "blade_sms"."is_deleted" IS '是否已删除'; +COMMENT ON TABLE "blade_sms" IS '短信配置表'; + -- ---------------------------- -- Table structure for blade_tenant -- ---------------------------- DROP TABLE IF EXISTS "blade_tenant"; CREATE TABLE "blade_tenant" ( -"id" int8 NOT NULL, -"tenant_id" varchar(12) COLLATE "pg_catalog"."default", -"tenant_name" varchar(50) COLLATE "pg_catalog"."default" NOT NULL, -"domain" varchar(255) COLLATE "pg_catalog"."default", -"background_url" varchar(1000) COLLATE "pg_catalog"."default", -"linkman" varchar(20) COLLATE "pg_catalog"."default", -"contact_number" varchar(20) COLLATE "pg_catalog"."default", -"address" varchar(255) COLLATE "pg_catalog"."default", -"account_number" int2 DEFAULT '-1'::integer, -"expire_time" timestamp(6), -"create_user" int8, -"create_dept" int8, -"create_time" timestamp(6), -"update_user" int8, -"update_time" timestamp(6), -"status" int4, -"is_deleted" int4 + "id" int8 NOT NULL, + "tenant_id" varchar(12) COLLATE "pg_catalog"."default", + "tenant_name" varchar(50) COLLATE "pg_catalog"."default" NOT NULL, + "domain" varchar(255) COLLATE "pg_catalog"."default", + "background_url" varchar(1000) COLLATE "pg_catalog"."default", + "linkman" varchar(20) COLLATE "pg_catalog"."default", + "contact_number" varchar(20) COLLATE "pg_catalog"."default", + "address" varchar(255) COLLATE "pg_catalog"."default", + "account_number" int2 DEFAULT '-1'::integer, + "expire_time" timestamp(6), + "create_user" int8, + "create_dept" int8, + "create_time" timestamp(6), + "update_user" int8, + "update_time" timestamp(6), + "status" int4, + "is_deleted" int4 ) ; COMMENT ON COLUMN "blade_tenant"."id" IS '主键'; @@ -1452,6 +1512,11 @@ ALTER TABLE "blade_scope_api" ADD CONSTRAINT "blade_scope_api_pkey" PRIMARY KEY -- ---------------------------- ALTER TABLE "blade_scope_data" ADD CONSTRAINT "blade_scope_data_pkey" PRIMARY KEY ("id"); +-- ---------------------------- +-- Primary Key structure for table blade_sms +-- ---------------------------- +ALTER TABLE "blade_sms" ADD CONSTRAINT "blade_sms_pkey" PRIMARY KEY ("id"); + -- ---------------------------- -- Primary Key structure for table blade_tenant -- ---------------------------- diff --git a/doc/sql/update/mysql-update-2.3.1~2.4.0.sql b/doc/sql/update/mysql-update-2.3.1~2.4.0.sql index 08f487b7..e7838a9c 100644 --- a/doc/sql/update/mysql-update-2.3.1~2.4.0.sql +++ b/doc/sql/update/mysql-update-2.3.1~2.4.0.sql @@ -1,5 +1,76 @@ -- ---------------------------- -- 增加资源编号字段 -- ---------------------------- -ALTER TABLE `bladex`.`blade_oss` +ALTER TABLE `blade_oss` ADD COLUMN `oss_code` varchar(32) NULL COMMENT '资源编号' AFTER `category`; + +-- ---------------------------- +-- 增加短信配置表 +-- ---------------------------- +CREATE TABLE `blade_sms` ( + `id` bigint(64) NOT NULL COMMENT '主键', + `tenant_id` varchar(12) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT '000000' COMMENT '租户ID', + `category` int(2) NULL DEFAULT NULL COMMENT '分类', + `sms_code` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '资源编号', + `template_id` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '模板ID', + `access_key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'accessKey', + `secret_key` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'secretKey', + `region_id` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT 'regionId', + `sign_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '短信签名', + `remark` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '备注', + `create_user` bigint(64) NULL DEFAULT NULL COMMENT '创建人', + `create_dept` bigint(64) NULL DEFAULT NULL COMMENT '创建部门', + `create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', + `update_user` bigint(64) NULL DEFAULT NULL COMMENT '修改人', + `update_time` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', + `status` int(2) NULL DEFAULT NULL COMMENT '状态', + `is_deleted` int(2) NULL DEFAULT 0 COMMENT '是否已删除', + PRIMARY KEY (`id`) +) COMMENT = '短信配置表'; + + +-- ---------------------------- +-- 增加短信配置菜单数据 +-- ---------------------------- +INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`) +VALUES ('1164733389658962251', '1123598815738675298', 'sms', '短信配置', 'menu', '/resource/sms', 'iconfont iconicon_message', 2, 1, 0, 1, NULL, 0); +INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`) +VALUES ('1164733389658962252', '1164733389658962251', 'sms_add', '新增', 'add', '/resource/sms/add', 'plus', 1, 2, 1, 1, NULL, 0); +INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`) +VALUES ('1164733389658962253', '1164733389658962251', 'sms_edit', '修改', 'edit', '/resource/sms/edit', 'form', 2, 2, 2, 1, NULL, 0); +INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`) +VALUES ('1164733389658962254', '1164733389658962251', 'sms_delete', '删除', 'delete', '/api/blade-resource/sms/remove', 'delete', 3, 2, 3, 1, NULL, 0); +INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`) +VALUES ('1164733389658962255', '1164733389658962251', 'sms_view', '查看', 'view', '/resource/sms/view', 'file-text', 4, 2, 2, 1, NULL, 0); +INSERT INTO `blade_menu`(`id`, `parent_id`, `code`, `name`, `alias`, `path`, `source`, `sort`, `category`, `action`, `is_open`, `remark`, `is_deleted`) +VALUES ('1164733389658962256', '1164733389658962251', 'sms_enable', '启用', 'enable', '/api/blade-resource/sms/enable', 'key', 5, 2, 2, 2, NULL, 0); + +-- ---------------------------- +-- 增加短信配置菜单权限数据 +-- ---------------------------- +INSERT INTO `blade_role_menu`(`id`,`menu_id`,`role_id`) +VALUES ('1161272893873222991', '1164733389658962251', '1123598816738675201'); +INSERT INTO `blade_role_menu`(`id`,`menu_id`,`role_id`) +VALUES ('1161272893873222992', '1164733389658962252', '1123598816738675201'); +INSERT INTO `blade_role_menu`(`id`,`menu_id`,`role_id`) +VALUES ('1161272893873222993', '1164733389658962253', '1123598816738675201'); +INSERT INTO `blade_role_menu`(`id`,`menu_id`,`role_id`) +VALUES ('1161272893873222994', '1164733389658962254', '1123598816738675201'); +INSERT INTO `blade_role_menu`(`id`,`menu_id`,`role_id`) +VALUES ('1161272893873222995', '1164733389658962255', '1123598816738675201'); +INSERT INTO `blade_role_menu`(`id`,`menu_id`,`role_id`) +VALUES ('1161272893873222996', '1164733389658962256', '1123598816738675201'); + +-- ---------------------------- +-- 增加短信配置字典数据 +-- ---------------------------- +INSERT INTO `blade_dict`(`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`) +VALUES (1123598814738677220, 0, 'sms', '-1', '短信服务类型', 11, NULL, 0, 0); +INSERT INTO `blade_dict`(`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`) +VALUES (1123598814738677221, 1123598814738677220, 'sms', '1', 'yunpian', 1, NULL, 0, 0); +INSERT INTO `blade_dict`(`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`) +VALUES (1123598814738677222, 1123598814738677220, 'sms', '2', 'qiniu', 2, NULL, 0, 0); +INSERT INTO `blade_dict`(`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`) +VALUES (1123598814738677223, 1123598814738677220, 'sms', '3', 'ali', 3, NULL, 0, 0); +INSERT INTO `blade_dict`(`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`) +VALUES (1123598814738677224, 1123598814738677220, 'sms', '4', 'tencent', 4, NULL, 0, 0); diff --git a/doc/sql/update/oracle-update-2.3.1~2.4.0.sql b/doc/sql/update/oracle-update-2.3.1~2.4.0.sql index 4c10f970..4c7dd0fd 100644 --- a/doc/sql/update/oracle-update-2.3.1~2.4.0.sql +++ b/doc/sql/update/oracle-update-2.3.1~2.4.0.sql @@ -5,3 +5,92 @@ ALTER TABLE "BLADEX"."BLADE_OSS" ADD ("OSS_CODE" VARCHAR2(32) ); COMMENT ON COLUMN "BLADEX"."BLADE_OSS"."OSS_CODE" IS '资源编号' + +-- ---------------------------- +-- 增加短信配置表 +-- ---------------------------- +CREATE TABLE "BLADEX"."BLADE_SMS" ( +"ID" NUMBER(20) NOT NULL , +"TENANT_ID" NVARCHAR2(12) , +"CATEGORY" NUMBER(11) , +"SMS_CODE" VARCHAR2(12) , +"TEMPLATE_ID" VARCHAR2(64) , +"ACCESS_KEY" NVARCHAR2(255) , +"SECRET_KEY" NVARCHAR2(255) , +"REGION_ID" NVARCHAR2(255) , +"SIGN_NAME" VARCHAR2(64) , +"REMARK" NVARCHAR2(255) , +"CREATE_USER" NUMBER(20) , +"CREATE_DEPT" NUMBER(20) , +"CREATE_TIME" DATE , +"UPDATE_USER" NUMBER(20) , +"UPDATE_TIME" DATE , +"STATUS" NUMBER(11) , +"IS_DELETED" NUMBER(11) , +PRIMARY KEY ("ID") +) +; +COMMENT ON COLUMN "BLADEX"."BLADE_SMS"."ID" IS '主键'; +COMMENT ON COLUMN "BLADEX"."BLADE_SMS"."TENANT_ID" IS '租户ID'; +COMMENT ON COLUMN "BLADEX"."BLADE_SMS"."CATEGORY" IS '分类'; +COMMENT ON COLUMN "BLADEX"."BLADE_SMS"."SMS_CODE" IS '资源编号'; +COMMENT ON COLUMN "BLADEX"."BLADE_SMS"."TEMPLATE_ID" IS '模板ID'; +COMMENT ON COLUMN "BLADEX"."BLADE_SMS"."ACCESS_KEY" IS 'accessKey'; +COMMENT ON COLUMN "BLADEX"."BLADE_SMS"."SECRET_KEY" IS 'secretKey'; +COMMENT ON COLUMN "BLADEX"."BLADE_SMS"."REGION_ID" IS 'regionId'; +COMMENT ON COLUMN "BLADEX"."BLADE_SMS"."SIGN_NAME" IS '短信签名'; +COMMENT ON COLUMN "BLADEX"."BLADE_SMS"."REMARK" IS '备注'; +COMMENT ON COLUMN "BLADEX"."BLADE_SMS"."CREATE_USER" IS '创建人'; +COMMENT ON COLUMN "BLADEX"."BLADE_SMS"."CREATE_DEPT" IS '创建部门'; +COMMENT ON COLUMN "BLADEX"."BLADE_SMS"."CREATE_TIME" IS '创建时间'; +COMMENT ON COLUMN "BLADEX"."BLADE_SMS"."UPDATE_USER" IS '修改人'; +COMMENT ON COLUMN "BLADEX"."BLADE_SMS"."UPDATE_TIME" IS '修改时间'; +COMMENT ON COLUMN "BLADEX"."BLADE_SMS"."STATUS" IS '状态'; +COMMENT ON COLUMN "BLADEX"."BLADE_SMS"."IS_DELETED" IS '是否已删除'; +COMMENT ON TABLE "BLADEX"."BLADE_SMS" IS '短信配置表'; + +-- ---------------------------- +-- 增加短信配置菜单数据 +-- ---------------------------- +INSERT INTO "BLADEX"."BLADE_MENU"("ID", "PARENT_ID", "CODE", "NAME", "ALIAS", "PATH", "SOURCE", "SORT", "CATEGORY", "ACTION", "IS_OPEN", "REMARK", "IS_DELETED") +VALUES ('1164733389658962251', '1123598815738675298', 'sms', '短信配置', 'menu', '/resource/sms', 'iconfont iconicon_message', 2, 1, 0, 1, NULL, 0); +INSERT INTO "BLADEX"."BLADE_MENU"("ID", "PARENT_ID", "CODE", "NAME", "ALIAS", "PATH", "SOURCE", "SORT", "CATEGORY", "ACTION", "IS_OPEN", "REMARK", "IS_DELETED") +VALUES ('1164733389658962252', '1164733389658962251', 'sms_add', '新增', 'add', '/resource/sms/add', 'plus', 1, 2, 1, 1, NULL, 0); +INSERT INTO "BLADEX"."BLADE_MENU"("ID", "PARENT_ID", "CODE", "NAME", "ALIAS", "PATH", "SOURCE", "SORT", "CATEGORY", "ACTION", "IS_OPEN", "REMARK", "IS_DELETED") +VALUES ('1164733389658962253', '1164733389658962251', 'sms_edit', '修改', 'edit', '/resource/sms/edit', 'form', 2, 2, 2, 1, NULL, 0); +INSERT INTO "BLADEX"."BLADE_MENU"("ID", "PARENT_ID", "CODE", "NAME", "ALIAS", "PATH", "SOURCE", "SORT", "CATEGORY", "ACTION", "IS_OPEN", "REMARK", "IS_DELETED") +VALUES ('1164733389658962254', '1164733389658962251', 'sms_delete', '删除', 'delete', '/api/blade-resource/sms/remove', 'delete', 3, 2, 3, 1, NULL, 0); +INSERT INTO "BLADEX"."BLADE_MENU"("ID", "PARENT_ID", "CODE", "NAME", "ALIAS", "PATH", "SOURCE", "SORT", "CATEGORY", "ACTION", "IS_OPEN", "REMARK", "IS_DELETED") +VALUES ('1164733389658962255', '1164733389658962251', 'sms_view', '查看', 'view', '/resource/sms/view', 'file-text', 4, 2, 2, 1, NULL, 0); +INSERT INTO "BLADEX"."BLADE_MENU"("ID", "PARENT_ID", "CODE", "NAME", "ALIAS", "PATH", "SOURCE", "SORT", "CATEGORY", "ACTION", "IS_OPEN", "REMARK", "IS_DELETED") +VALUES ('1164733389658962256', '1164733389658962251', 'sms_enable', '启用', 'enable', '/api/blade-resource/sms/enable', 'key', 5, 2, 2, 2, NULL, 0); + +-- ---------------------------- +-- 增加短信配置菜单权限数据 +-- ---------------------------- +INSERT INTO "BLADEX"."BLADE_ROLE_MENU"(ID,MENU_ID,ROLE_ID) +VALUES ('1161272893873222991', '1164733389658962251', '1123598816738675201'); +INSERT INTO "BLADEX"."BLADE_ROLE_MENU"(ID,MENU_ID,ROLE_ID) +VALUES ('1161272893873222992', '1164733389658962252', '1123598816738675201'); +INSERT INTO "BLADEX"."BLADE_ROLE_MENU"(ID,MENU_ID,ROLE_ID) +VALUES ('1161272893873222993', '1164733389658962253', '1123598816738675201'); +INSERT INTO "BLADEX"."BLADE_ROLE_MENU"(ID,MENU_ID,ROLE_ID) +VALUES ('1161272893873222994', '1164733389658962254', '1123598816738675201'); +INSERT INTO "BLADEX"."BLADE_ROLE_MENU"(ID,MENU_ID,ROLE_ID) +VALUES ('1161272893873222995', '1164733389658962255', '1123598816738675201'); +INSERT INTO "BLADEX"."BLADE_ROLE_MENU"(ID,MENU_ID,ROLE_ID) +VALUES ('1161272893873222996', '1164733389658962256', '1123598816738675201'); + +-- ---------------------------- +-- 增加短信配置字典数据 +-- ---------------------------- +INSERT INTO "BLADEX"."BLADE_DICT"("ID", "PARENT_ID", "CODE", "DICT_KEY", "DICT_VALUE", "SORT", "REMARK", "IS_SEALED", "IS_DELETED") +VALUES (1123598814738677220, 0, 'sms', '-1', '短信服务类型', 11, NULL, 0, 0); +INSERT INTO "BLADEX"."BLADE_DICT"("ID", "PARENT_ID", "CODE", "DICT_KEY", "DICT_VALUE", "SORT", "REMARK", "IS_SEALED", "IS_DELETED") +VALUES (1123598814738677221, 1123598814738677220, 'sms', '1', 'yunpian', 1, NULL, 0, 0); +INSERT INTO "BLADEX"."BLADE_DICT"("ID", "PARENT_ID", "CODE", "DICT_KEY", "DICT_VALUE", "SORT", "REMARK", "IS_SEALED", "IS_DELETED") +VALUES (1123598814738677222, 1123598814738677220, 'sms', '2', 'qiniu', 2, NULL, 0, 0); +INSERT INTO "BLADEX"."BLADE_DICT"("ID", "PARENT_ID", "CODE", "DICT_KEY", "DICT_VALUE", "SORT", "REMARK", "IS_SEALED", "IS_DELETED") +VALUES (1123598814738677223, 1123598814738677220, 'sms', '3', 'ali', 3, NULL, 0, 0); +INSERT INTO "BLADEX"."BLADE_DICT"("ID", "PARENT_ID", "CODE", "DICT_KEY", "DICT_VALUE", "SORT", "REMARK", "IS_SEALED", "IS_DELETED") +VALUES (1123598814738677224, 1123598814738677220, 'sms', '4', 'tencent', 4, NULL, 0, 0); diff --git a/doc/sql/update/postgresql-update-2.3.1~2.4.0.sql b/doc/sql/update/postgresql-update-2.3.1~2.4.0.sql index dedfbd8e..b3364fc0 100644 --- a/doc/sql/update/postgresql-update-2.3.1~2.4.0.sql +++ b/doc/sql/update/postgresql-update-2.3.1~2.4.0.sql @@ -5,3 +5,93 @@ ALTER TABLE "public"."blade_oss" ADD COLUMN "oss_code" varchar(32); COMMENT ON COLUMN "public"."blade_oss"."oss_code" IS '资源编号'; + +-- ---------------------------- +-- 增加短信配置表 +-- ---------------------------- +CREATE TABLE "public"."blade_sms" ( +"id" int8 NOT NULL, +"tenant_id" varchar(12) COLLATE "pg_catalog"."default", +"category" int4, +"sms_code" varchar(12), +"template_id" varchar(64), +"access_key" varchar(255) COLLATE "pg_catalog"."default", +"secret_key" varchar(255) COLLATE "pg_catalog"."default", +"region_id" varchar(255), +"sign_name" varchar(64), +"remark" varchar(255) COLLATE "pg_catalog"."default", +"create_user" int8, +"create_dept" int8, +"create_time" timestamp(6), +"update_user" int8, +"update_time" timestamp(6), +"status" int4, +"is_deleted" int4, +PRIMARY KEY ("id") +) +; + +COMMENT ON COLUMN "public"."blade_sms"."id" IS '主键'; +COMMENT ON COLUMN "public"."blade_sms"."tenant_id" IS '租户ID'; +COMMENT ON COLUMN "public"."blade_sms"."category" IS '分类'; +COMMENT ON COLUMN "public"."blade_sms"."sms_code" IS '资源编号'; +COMMENT ON COLUMN "public"."blade_sms"."template_id" IS '模板ID'; +COMMENT ON COLUMN "public"."blade_sms"."access_key" IS 'accessKey'; +COMMENT ON COLUMN "public"."blade_sms"."secret_key" IS 'secretKey'; +COMMENT ON COLUMN "public"."blade_sms"."region_id" IS 'regionId'; +COMMENT ON COLUMN "public"."blade_sms"."sign_name" IS '短信签名'; +COMMENT ON COLUMN "public"."blade_sms"."remark" IS '备注'; +COMMENT ON COLUMN "public"."blade_sms"."create_user" IS '创建人'; +COMMENT ON COLUMN "public"."blade_sms"."create_dept" IS '创建部门'; +COMMENT ON COLUMN "public"."blade_sms"."create_time" IS '创建时间'; +COMMENT ON COLUMN "public"."blade_sms"."update_user" IS '修改人'; +COMMENT ON COLUMN "public"."blade_sms"."update_time" IS '修改时间'; +COMMENT ON COLUMN "public"."blade_sms"."status" IS '状态'; +COMMENT ON COLUMN "public"."blade_sms"."is_deleted" IS '是否已删除'; +COMMENT ON TABLE "public"."blade_sms" IS '短信配置表'; + +-- ---------------------------- +-- 增加短信配置菜单数据 +-- ---------------------------- +INSERT INTO "blade_menu"("id", "parent_id", "code", "name", "alias", "path", "source", "sort", "category", "action", "is_open", "remark", "is_deleted") +VALUES ('1164733389658962251', '1123598815738675298', 'sms', '短信配置', 'menu', '/resource/sms', 'iconfont iconicon_message', 2, 1, 0, 1, NULL, 0); +INSERT INTO "blade_menu"("id", "parent_id", "code", "name", "alias", "path", "source", "sort", "category", "action", "is_open", "remark", "is_deleted") +VALUES ('1164733389658962252', '1164733389658962251', 'sms_add', '新增', 'add', '/resource/sms/add', 'plus', 1, 2, 1, 1, NULL, 0); +INSERT INTO "blade_menu"("id", "parent_id", "code", "name", "alias", "path", "source", "sort", "category", "action", "is_open", "remark", "is_deleted") +VALUES ('1164733389658962253', '1164733389658962251', 'sms_edit', '修改', 'edit', '/resource/sms/edit', 'form', 2, 2, 2, 1, NULL, 0); +INSERT INTO "blade_menu"("id", "parent_id", "code", "name", "alias", "path", "source", "sort", "category", "action", "is_open", "remark", "is_deleted") +VALUES ('1164733389658962254', '1164733389658962251', 'sms_delete', '删除', 'delete', '/api/blade-resource/sms/remove', 'delete', 3, 2, 3, 1, NULL, 0); +INSERT INTO "blade_menu"("id", "parent_id", "code", "name", "alias", "path", "source", "sort", "category", "action", "is_open", "remark", "is_deleted") +VALUES ('1164733389658962255', '1164733389658962251', 'sms_view', '查看', 'view', '/resource/sms/view', 'file-text', 4, 2, 2, 1, NULL, 0); +INSERT INTO "blade_menu"("id", "parent_id", "code", "name", "alias", "path", "source", "sort", "category", "action", "is_open", "remark", "is_deleted") +VALUES ('1164733389658962256', '1164733389658962251', 'sms_enable', '启用', 'enable', '/api/blade-resource/sms/enable', 'key', 5, 2, 2, 2, NULL, 0); + +-- ---------------------------- +-- 增加短信配置菜单权限数据 +-- ---------------------------- +INSERT INTO "blade_role_menu"("id","menu_id","role_id") +VALUES (1161272893873222991, 1164733389658962251, 1123598816738675201); +INSERT INTO "blade_role_menu"("id","menu_id","role_id") +VALUES (1161272893873222992, 1164733389658962252, 1123598816738675201); +INSERT INTO "blade_role_menu"("id","menu_id","role_id") +VALUES (1161272893873222993, 1164733389658962253, 1123598816738675201); +INSERT INTO "blade_role_menu"("id","menu_id","role_id") +VALUES (1161272893873222994, 1164733389658962254, 1123598816738675201); +INSERT INTO "blade_role_menu"("id","menu_id","role_id") +VALUES (1161272893873222995, 1164733389658962255, 1123598816738675201); +INSERT INTO "blade_role_menu"("id","menu_id","role_id") +VALUES (1161272893873222996, 1164733389658962256, 1123598816738675201); + +-- ---------------------------- +-- 增加短信配置字典数据 +-- ---------------------------- +INSERT INTO "blade_dict"("id", "parent_id", "code", "dict_key", "dict_value", "sort", "remark", "is_sealed", "is_deleted") +VALUES (1123598814738677220, 0, 'sms', '-1', '短信服务类型', 11, NULL, 0, 0); +INSERT INTO "blade_dict"("id", "parent_id", "code", "dict_key", "dict_value", "sort", "remark", "is_sealed", "is_deleted") +VALUES (1123598814738677221, 1123598814738677220, 'sms', '1', 'yunpian', 1, NULL, 0, 0); +INSERT INTO "blade_dict"("id", "parent_id", "code", "dict_key", "dict_value", "sort", "remark", "is_sealed", "is_deleted") +VALUES (1123598814738677222, 1123598814738677220, 'sms', '2', 'qiniu', 2, NULL, 0, 0); +INSERT INTO "blade_dict"("id", "parent_id", "code", "dict_key", "dict_value", "sort", "remark", "is_sealed", "is_deleted") +VALUES (1123598814738677223, 1123598814738677220, 'sms', '3', 'ali', 3, NULL, 0, 0); +INSERT INTO "blade_dict"("id", "parent_id", "code", "dict_key", "dict_value", "sort", "remark", "is_sealed", "is_deleted") +VALUES (1123598814738677224, 1123598814738677220, 'sms', '4', 'tencent', 4, NULL, 0, 0);