|
|
@@ -3,6 +3,7 @@ import { Upload } from '@aws-sdk/lib-storage'
|
|
|
import { PassThrough, Readable } from 'stream'
|
|
|
import { WritableStreamBuffer } from 'stream-buffers'
|
|
|
import * as path from 'path'
|
|
|
+import { Logger } from '@nestjs/common'
|
|
|
|
|
|
export async function uploadUml(plantUml) {
|
|
|
const s3 = new S3Client({
|
|
|
@@ -56,6 +57,8 @@ export async function uploadUml(plantUml) {
|
|
|
}
|
|
|
|
|
|
export async function uploadDoc(title, content) {
|
|
|
+ Logger.log(`title: ${title}`, '生成docx')
|
|
|
+ Logger.log(`content: ${content}`, '生成docx')
|
|
|
const s3 = new S3Client({
|
|
|
region: process.env.ALIYUN_OSS_REGION,
|
|
|
endpoint: `https://${process.env.ALIYUN_OSS_ENDPOINT}`,
|