|
|
@@ -1,7 +1,7 @@
|
|
|
import { DataSource, Repository } from 'typeorm';
|
|
|
import { UserEntity } from '@d8d/core-module/user-module';
|
|
|
import { FileService } from '@d8d/core-module/file-module';
|
|
|
-import { SystemConfigService } from '@d8d/core-module/system-config-module';
|
|
|
+// import { SystemConfigService } from '@d8d/core-module/system-config-module';
|
|
|
import { JWTUtil, redisUtil } from '@d8d/shared-utils';
|
|
|
import axios from 'axios';
|
|
|
import process from 'node:process'
|
|
|
@@ -9,12 +9,12 @@ import process from 'node:process'
|
|
|
export class MiniAuthService {
|
|
|
private userRepository: Repository<UserEntity>;
|
|
|
private fileService: FileService;
|
|
|
- private systemConfigService: SystemConfigService;
|
|
|
+ // private systemConfigService: SystemConfigService;
|
|
|
|
|
|
constructor(dataSource: DataSource) {
|
|
|
this.userRepository = dataSource.getRepository(UserEntity);
|
|
|
this.fileService = new FileService(dataSource);
|
|
|
- this.systemConfigService = new SystemConfigService(dataSource);
|
|
|
+ // this.systemConfigService = new SystemConfigService(dataSource);
|
|
|
}
|
|
|
|
|
|
async miniLogin(code: string): Promise<{ token: string; user: UserEntity; isNewUser: boolean }> {
|