pull/265/head
xiaojunnuo 2024-12-02 18:15:27 +08:00
parent 70210f567a
commit 58dd5e2750
3 changed files with 33 additions and 1 deletions

View File

@ -144,6 +144,9 @@ export function createAxiosService({ logger }: { logger: Logger }) {
} else { } else {
logger.info('http response status:', response?.status); logger.info('http response status:', response?.status);
} }
if (response?.config?.returnResponse) {
return response;
}
return response.data; return response.data;
}, },
(error: any) => { (error: any) => {

View File

@ -93,7 +93,7 @@
"socks-proxy-agent": "^8.0.4", "socks-proxy-agent": "^8.0.4",
"strip-ansi": "^7.1.0", "strip-ansi": "^7.1.0",
"svg-captcha": "^1.4.0", "svg-captcha": "^1.4.0",
"tencentcloud-sdk-nodejs": "^4.0.44", "tencentcloud-sdk-nodejs": "^4.0.983",
"typeorm": "^0.3.20", "typeorm": "^0.3.20",
"uuid": "^10.0.0" "uuid": "^10.0.0"
}, },

View File

@ -0,0 +1,29 @@
import { Column, PrimaryGeneratedColumn } from 'typeorm';
/**
*/
// @Entity('cd_site_info')
export class SiteInfoEntity {
@PrimaryGeneratedColumn()
id: number;
@Column({ name: 'user_id', comment: '用户id' })
userId: number;
@Column({ comment: '站点名称', length: 100 })
name: string;
@Column({ comment: '域名', length: 100 })
domain: string;
@Column({ name: 'cert_info', comment: '证书详情', length: 1000 })
certInfo: string;
@Column({ name: 'cert_status', comment: '证书状态', length: 100 })
certStatus: string;
@Column({ name: 'cert_valid_to', comment: '证书到期时间', length: 100 })
certValidTo: Date;
@Column({ name: 'last_time', comment: '上次检查时间' })
lastTime: Date;
@Column({ name: 'pipeline_id', comment: '关联流水线id' })
pipelineId: number;
@Column({ name: 'create_time', comment: '创建时间', default: () => 'CURRENT_TIMESTAMP' })
createTime: Date;
@Column({ name: 'update_time', comment: '修改时间', default: () => 'CURRENT_TIMESTAMP' })
updateTime: Date;
}