新增message模块
This commit is contained in:
parent
a327315482
commit
2c38f66e2a
|
@ -0,0 +1,41 @@
|
|||
INSERT INTO sys_menu (pid, name, url, authority, type, open_style, icon, sort, version, deleted, creator, create_time, updater, update_time) VALUES (1, '短信服务', 'message/sms/index', NULL, 0, 0, 'icon-reloadtime', 0, 0, 0, 10000, now(), 10000, now());
|
||||
|
||||
SET @menuId = @@identity;
|
||||
INSERT INTO sys_menu (pid, name, url, authority, type, open_style, icon, sort, version, deleted, creator, create_time, updater, update_time) VALUES ((SELECT @menuId), '查看', '', 'schedule:page', 1, 0, '', 0, 0, 0, 10000, now(), 10000, now());
|
||||
INSERT INTO sys_menu (pid, name, url, authority, type, open_style, icon, sort, version, deleted, creator, create_time, updater, update_time) VALUES ((SELECT @menuId), '新增', '', 'schedule:save', 1, 0, '', 1, 0, 0, 10000, now(), 10000, now());
|
||||
INSERT INTO sys_menu (pid, name, url, authority, type, open_style, icon, sort, version, deleted, creator, create_time, updater, update_time) VALUES ((SELECT @menuId), '修改', '', 'schedule:update,schedule:info', 1, 0, '', 2, 0, 0, 10000, now(), 10000, now());
|
||||
INSERT INTO sys_menu (pid, name, url, authority, type, open_style, icon, sort, version, deleted, creator, create_time, updater, update_time) VALUES ((SELECT @menuId), '删除', '', 'schedule:delete', 1, 0, '', 3, 0, 0, 10000, now(), 10000, now());
|
||||
INSERT INTO sys_menu (pid, name, url, authority, type, open_style, icon, sort, version, deleted, creator, create_time, updater, update_time) VALUES ((SELECT @menuId), '立即运行', '', 'schedule:run', 1, 0, '', 2, 0, 0, 10000, now(), 10000, now());
|
||||
INSERT INTO sys_menu (pid, name, url, authority, type, open_style, icon, sort, version, deleted, creator, create_time, updater, update_time) VALUES ((SELECT @menuId), '日志', '', 'schedule:log', 1, 0, '', 4, 0, 0, 10000, now(), 10000, now());
|
||||
|
||||
|
||||
CREATE TABLE sms_platform
|
||||
(
|
||||
id bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||
platform tinyint COMMENT '平台类型 0:阿里云 1:腾讯云',
|
||||
sign_name varchar(50) NOT NULL COMMENT '短信签名',
|
||||
template_id varchar(50) NOT NULL COMMENT '短信模板',
|
||||
access_key varchar(100) COMMENT '密码',
|
||||
secret_key varchar(100) COMMENT '密码',
|
||||
status tinyint COMMENT '状态 0:禁用 1:启用',
|
||||
version int COMMENT '版本号',
|
||||
deleted tinyint COMMENT '删除标识 0:正常 1:已删除',
|
||||
creator bigint COMMENT '创建者',
|
||||
create_time datetime COMMENT '创建时间',
|
||||
updater bigint COMMENT '更新者',
|
||||
update_time datetime COMMENT '更新时间',
|
||||
primary key (id)
|
||||
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COMMENT ='短信平台';
|
||||
|
||||
|
||||
CREATE TABLE sms_log
|
||||
(
|
||||
id bigint NOT NULL AUTO_INCREMENT COMMENT 'id',
|
||||
platform_id bigint COMMENT '平台ID',
|
||||
platform tinyint COMMENT '平台类型',
|
||||
mobile varchar(20) NOT NULL COMMENT '手机号',
|
||||
status tinyint COMMENT '状态 0:失败 1:成功',
|
||||
params varchar(200) COMMENT '参数',
|
||||
create_time datetime COMMENT '创建时间',
|
||||
primary key (id)
|
||||
) ENGINE = InnoDB DEFAULT CHARSET = utf8mb4 COMMENT ='短信日志';
|
|
@ -0,0 +1,19 @@
|
|||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<parent>
|
||||
<groupId>net.maku</groupId>
|
||||
<artifactId>fast-boot-module</artifactId>
|
||||
<version>${revision}</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>fast-boot-message</artifactId>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>net.maku</groupId>
|
||||
<artifactId>fast-framework</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
<modules>
|
||||
<module>fast-boot-quartz</module>
|
||||
<module>fast-boot-message</module>
|
||||
</modules>
|
||||
|
||||
</project>
|
|
@ -21,24 +21,4 @@ public class RedisKeys {
|
|||
return "oauth:code:" + code;
|
||||
}
|
||||
|
||||
/**
|
||||
* 微信小程序授权key
|
||||
*
|
||||
* @param key
|
||||
* @return
|
||||
*/
|
||||
public static String getWxMpAuthKey(String key) {
|
||||
return "wx:mp:auth:" + key;
|
||||
}
|
||||
|
||||
/**
|
||||
* 微信小程序授权类型key
|
||||
*
|
||||
* @param key
|
||||
* @return
|
||||
*/
|
||||
public static String getWxMpAuthTypeKey(String key) {
|
||||
return "wx:mp:auth:type:" + key;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -21,6 +21,11 @@
|
|||
<!-- </dependency>-->
|
||||
<dependency>
|
||||
<groupId>net.maku</groupId>
|
||||
<artifactId>fast-boot-message</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>net.maku</groupId>
|
||||
<artifactId>fast-boot-system</artifactId>
|
||||
<version>${revision}</version>
|
||||
</dependency>
|
||||
|
|
|
@ -11,8 +11,8 @@ spring:
|
|||
username: fast
|
||||
password: 123456
|
||||
# driver-class-name: dm.jdbc.driver.DmDriver
|
||||
# url: jdbc:dm://192.168.101.28:5236/fast_boot?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true
|
||||
# username: fast
|
||||
# url: jdbc:dm://192.168.3.19:5236/fast_boot?useUnicode=true&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai&nullCatalogMeansCurrent=true
|
||||
# username: fast_boot
|
||||
# password: 12345678
|
||||
hikari:
|
||||
connection-timeout: 30000 # 等待连接池分配链接的最大时长(毫秒),超过这个时长还没有可用的连接则发生 SQLException,默认:30 秒
|
||||
|
|
Loading…
Reference in New Issue
Block a user