ALTER TABLE `isv_info`
    ADD COLUMN `notify_url` varchar(256) NULL COMMENT '回调接口';

CREATE TABLE `notify_info`
(
    `id`             bigint(20) unsigned NOT NULL AUTO_INCREMENT,
    `app_id`         varchar(64) NOT NULL COMMENT 'app_id',
    `api_name`       varchar(64) NOT NULL COMMENT 'api_name',
    `api_version`    varchar(16) NOT NULL COMMENT 'api_version',
    `notify_url` varchar(255) DEFAULT '' COMMENT '回调url',
    `last_send_time` datetime     DEFAULT NULL COMMENT '最近一次发送时间',
    `next_send_time` datetime     DEFAULT NULL COMMENT '下一次发送时间',
    `send_max`       int(11) DEFAULT NULL COMMENT '最大发送次数',
    `send_cnt`       int(11) DEFAULT NULL COMMENT '已发送次数',
    `content`        text COMMENT '发送内容',
    `notify_status`  tinyint(4) DEFAULT '1' COMMENT '状态,1-发送成功,2-发送失败,3-重试结束',
    `error_msg`      text COMMENT '失败原因',
    `result_content` text COMMENT '返回结果',
    `remark`         varchar(256) DEFAULT '' COMMENT '备注',
    `add_time`       datetime     DEFAULT CURRENT_TIMESTAMP,
    `update_time`    datetime     DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
    `add_by`         bigint(20) DEFAULT '0' COMMENT '创建人id',
    `update_by`      bigint(20) DEFAULT '0' COMMENT '修改人id',
    PRIMARY KEY (`id`),
    KEY              `idx_app_id` (`app_id`) USING BTREE
) ENGINE=InnoDB COMMENT='回调信息';

INSERT INTO `sys_resource` ( `menu_type`, `title`, `name`, `path`, `component`, `rank`, `redirect`, `icon`, `extra_icon`, `enter_transition`, `leave_transition`, `active_path`, `auths`, `frame_src`, `frame_loading`, `keep_alive`, `hidden_tag`, `fixed_tag`, `show_link`, `show_parent`, `parent_id`, `is_deleted`, `add_time`, `update_time`, `add_by`, `update_by`) VALUES
    (0, '回调管理', 'NotifyMgr', '/serve/notify', '', 99, '', 'ri:align-vertically', '', '', '', '', '', '', 0, 0, 0, 0, 1, 0, 1, 0, '2025-11-01 20:37:08', '2025-11-01 20:37:08', 1, 1);
