mirror of https://github.com/certd/certd
chore:
parent
7e482f798c
commit
a7e45dace0
|
@ -49,7 +49,7 @@ export const sysResources = [
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "邮箱设置",
|
title: "邮件服务器设置",
|
||||||
name: "EmailSetting",
|
name: "EmailSetting",
|
||||||
path: "/sys/settings/email",
|
path: "/sys/settings/email",
|
||||||
component: "/sys/settings/email/index.vue",
|
component: "/sys/settings/email/index.vue",
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<fs-page class="page-setting-email">
|
<fs-page class="page-setting-email">
|
||||||
<template #header>
|
<template #header>
|
||||||
<div class="title">
|
<div class="title">
|
||||||
邮件设置
|
邮件服务器设置
|
||||||
<span class="sub">设置邮件发送服务器</span>
|
<span class="sub">设置邮件发送服务器</span>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -0,0 +1,16 @@
|
||||||
|
CREATE TABLE `cd_open_key`
|
||||||
|
(
|
||||||
|
`id` bigint PRIMARY KEY AUTO_INCREMENT NOT NULL,
|
||||||
|
`user_id` bigint,
|
||||||
|
`key_id` varchar(50),
|
||||||
|
`key_secret` varchar(100),
|
||||||
|
`scope` varchar(50),
|
||||||
|
`disabled` boolean NOT NULL DEFAULT false,
|
||||||
|
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||||
|
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
CREATE INDEX `index_open_key_user_id` ON `cd_open_key` (`user_id`);
|
||||||
|
CREATE INDEX `index_open_key_key_id` ON `cd_open_key` (`key_id`);
|
|
@ -0,0 +1,16 @@
|
||||||
|
CREATE TABLE "cd_open_key"
|
||||||
|
(
|
||||||
|
"id" bigint PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY NOT NULL,
|
||||||
|
"user_id" bigint,
|
||||||
|
"key_id" varchar(50),
|
||||||
|
"key_secret" varchar(100),
|
||||||
|
"scope" varchar(50),
|
||||||
|
"disabled" boolean NOT NULL DEFAULT (false),
|
||||||
|
"create_time" timestamp NOT NULL DEFAULT (CURRENT_TIMESTAMP),
|
||||||
|
"update_time" timestamp NOT NULL DEFAULT (CURRENT_TIMESTAMP)
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
CREATE INDEX "index_open_key_user_id" ON "cd_open_key" ("user_id");
|
||||||
|
CREATE INDEX "index_open_key_key_id" ON "cd_open_key" ("key_id");
|
|
@ -131,11 +131,10 @@ export class CertInfoService extends BaseService<CertInfoEntity> {
|
||||||
pipelineId,
|
pipelineId,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
if (!found) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
const bean = new CertInfoEntity();
|
const bean = new CertInfoEntity();
|
||||||
bean.id = found.id;
|
if (found) {
|
||||||
|
bean.id = found.id;
|
||||||
|
}
|
||||||
const certInfo = certReader.toCertInfo();
|
const certInfo = certReader.toCertInfo();
|
||||||
bean.certInfo = JSON.stringify(certInfo);
|
bean.certInfo = JSON.stringify(certInfo);
|
||||||
bean.applyTime = new Date().getTime();
|
bean.applyTime = new Date().getTime();
|
||||||
|
|
Loading…
Reference in New Issue