消息推送

This commit is contained in:
liupopo
2023-03-18 19:01:48 +08:00
parent a1abdfe8a7
commit 209666c00f
21 changed files with 714 additions and 52 deletions

View File

@@ -28,9 +28,13 @@ CREATE TABLE `push_cids` (
`getuiCid` varchar(100) NOT NULL COMMENT '个推的ClientID',
`userPhone` varchar(100) DEFAULT NULL COMMENT '用户手机号',
`userId` bigint(32) DEFAULT NULL COMMENT '用户ID',
`store_id` int(11) DEFAULT 1 COMMENT '用户ID',
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
ALTER TABLE mallplus1.push_cids ADD store_id INT DEFAULT 1 NULL;
CREATE TABLE `sys_message_task` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
@@ -38,7 +42,13 @@ CREATE TABLE `sys_message_task` (
`code` varchar(60) DEFAULT '系统消息' COMMENT '消息编码',
`params` varchar(5000) DEFAULT NULL COMMENT '参数',
`content` text COMMENT '内容',
`sendtime` date NOT NULL COMMENT '发送时间',
`sendtime` datetime NOT NULL COMMENT '发送时间',
`status` tinyint(3) unsigned NOT NULL DEFAULT '0' COMMENT '0未发送1已发送',
`store_id` int(11) DEFAULT 1 COMMENT '用户ID',
PRIMARY KEY (`id`) USING BTREE
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='定时消息';
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='定时消息';
INSERT INTO sys_permission (pid, name, value, icon, type, uri, status, create_time, sort)
VALUES (43, '定时消息', 'ums:UmsMember:read', 'product-list', 1, 'sysMessageTask', 1, now() , 0)