Explorar o código

refactor(country-config): 删除国家配置模块及相关代码

xiongzhu hai 1 ano
pai
achega
ece4244d3b

+ 1 - 3
src/app.module.ts

@@ -24,7 +24,6 @@ import { CarrierIdModule } from './carrier-id/carrier-id.module'
 import { OperationLogModule } from './operation-log/operation-log.module'
 import { PayOrderModule } from './pay-order/pay-order.module'
 import { RedisModule } from '@liaoliaots/nestjs-redis'
-import { CountryConfigModule } from './country-config/country-config.module';
 
 @Module({
     imports: [
@@ -100,8 +99,7 @@ import { CountryConfigModule } from './country-config/country-config.module';
         OperaterConfigModule,
         CarrierIdModule,
         OperationLogModule,
-        PayOrderModule,
-        CountryConfigModule
+        PayOrderModule
     ],
     providers: [
         {

+ 0 - 4
src/country-config/country-config.controller.ts

@@ -1,4 +0,0 @@
-import { Controller } from '@nestjs/common';
-
-@Controller('country-config')
-export class CountryConfigController {}

+ 0 - 9
src/country-config/country-config.module.ts

@@ -1,9 +0,0 @@
-import { Module } from '@nestjs/common';
-import { CountryConfigController } from './country-config.controller';
-import { CountryConfigService } from './country-config.service';
-
-@Module({
-  controllers: [CountryConfigController],
-  providers: [CountryConfigService]
-})
-export class CountryConfigModule {}

+ 0 - 4
src/country-config/country-config.service.ts

@@ -1,4 +0,0 @@
-import { Injectable } from '@nestjs/common';
-
-@Injectable()
-export class CountryConfigService {}

+ 0 - 21
src/country-config/entities/dest-country-config.entity.ts

@@ -1,21 +0,0 @@
-import { JsonTransformer } from 'src/transformers/json.transformer'
-import { Column, PrimaryColumn } from 'typeorm'
-
-export class DestCountryConfig {
-    @PrimaryColumn({ length: 20 })
-    id: string
-
-    @Column({ type: 'text', transformer: new JsonTransformer() })
-    accept: string[]
-
-    @Column({ type: 'text', transformer: new JsonTransformer() })
-    reject: string[]
-
-    @Column()
-    useBackup: 'default' | 'true' | 'false'
-
-    @Column()
-    e2ee: 'default' | 'true' | 'false'
-
-    
-}