|
@@ -1,9 +1,8 @@
|
|
import { Provide, Inject } from '@midwayjs/decorator';
|
|
import { Provide, Inject } from '@midwayjs/decorator';
|
|
-import { Config, InjectClient } from '@midwayjs/core';
|
|
|
|
|
|
+import { Config } from '@midwayjs/core';
|
|
import { FrameworkErrorEnum, ServiceError } from 'free-midway-component';
|
|
import { FrameworkErrorEnum, ServiceError } from 'free-midway-component';
|
|
import * as fs from 'node:fs';
|
|
import * as fs from 'node:fs';
|
|
import * as Path from 'node:path';
|
|
import * as Path from 'node:path';
|
|
-import { HttpServiceFactory, HttpService } from '@midwayjs/axios';
|
|
|
|
const moment = require('moment');
|
|
const moment = require('moment');
|
|
const sharp = require('sharp');
|
|
const sharp = require('sharp');
|
|
const sep = Path.sep;
|
|
const sep = Path.sep;
|
|
@@ -15,9 +14,6 @@ export class FileService {
|
|
@Config('export.file_type')
|
|
@Config('export.file_type')
|
|
file_type;
|
|
file_type;
|
|
|
|
|
|
- @InjectClient(HttpServiceFactory, 'Axios')
|
|
|
|
- Axios: HttpService;
|
|
|
|
-
|
|
|
|
@Inject()
|
|
@Inject()
|
|
ctx;
|
|
ctx;
|
|
|
|
|