diff --git a/src/commandHandler.ts b/src/command-handler.ts similarity index 95% rename from src/commandHandler.ts rename to src/command-handler.ts index e08e8f3..ec70ac4 100644 --- a/src/commandHandler.ts +++ b/src/command-handler.ts @@ -1,7 +1,7 @@ import { Message, Room, Contact } from 'wechaty'; -import { InternJobProvider } from './providers/InternJobProvider'; -import { NGJobProvider } from './providers/NGJobProvider'; -import { FileSystemService } from './FileSystemService'; +import { InternJobProvider } from './providers/internship-job-provider'; +import { NGJobProvider } from './providers/new-graduate-job-provider'; +import { FileSystemService } from './file-system-service'; interface Command { name: string; diff --git a/src/FileSystemService.ts b/src/file-system-service.ts similarity index 100% rename from src/FileSystemService.ts rename to src/file-system-service.ts diff --git a/src/index.ts b/src/index.ts index 81fb4be..3d7c3bf 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,13 +2,13 @@ import { WechatyBuilder, Contact, Room, Message } from 'wechaty'; import { ContactImpl } from 'wechaty/impls'; import qrcodeTerminal from 'qrcode-terminal'; import { jobWxBotConfig } from '../package.json'; -import { InternJobProvider } from './providers/InternJobProvider'; -import { NGJobProvider } from './providers/NGJobProvider'; +import { InternJobProvider } from './providers/internship-job-provider'; +import { NGJobProvider } from './providers/new-graduate-job-provider'; import path from 'path'; import os from 'os'; import * as fs from 'fs'; import { TopicsLocal } from './types'; -import { CommandHandler } from './commandHandler'; +import { CommandHandler } from './command-handler'; const wechaty = WechatyBuilder.build(); let targetRooms: Room[] = []; diff --git a/src/providers/InternJobProvider.ts b/src/providers/internship-job-provider.ts similarity index 98% rename from src/providers/InternJobProvider.ts rename to src/providers/internship-job-provider.ts index 3f10e75..85641ff 100644 --- a/src/providers/InternJobProvider.ts +++ b/src/providers/internship-job-provider.ts @@ -1,6 +1,6 @@ import { Config } from '../config'; import { Job } from '../types'; -import { BaseJobProvider } from './BaseJobProvider'; +import { BaseJobProvider } from './job-provider-base'; /** * @class InternJobProvider diff --git a/src/providers/BaseJobProvider.ts b/src/providers/job-provider-base.ts similarity index 98% rename from src/providers/BaseJobProvider.ts rename to src/providers/job-provider-base.ts index 409bdb5..c71f43f 100644 --- a/src/providers/BaseJobProvider.ts +++ b/src/providers/job-provider-base.ts @@ -1,7 +1,7 @@ import axios from 'axios'; import { Config } from '../config'; import { Job, JobProvider } from '../types'; -import { FileSystemService } from '../FileSystemService'; +import { FileSystemService } from '../file-system-service'; export abstract class BaseJobProvider implements JobProvider { abstract readonly jobType: string; diff --git a/src/providers/NGJobProvider.ts b/src/providers/new-graduate-job-provider.ts similarity index 98% rename from src/providers/NGJobProvider.ts rename to src/providers/new-graduate-job-provider.ts index b97276a..9659a42 100644 --- a/src/providers/NGJobProvider.ts +++ b/src/providers/new-graduate-job-provider.ts @@ -1,6 +1,6 @@ import { Config } from '../config'; import { Job } from '../types'; -import { BaseJobProvider } from './BaseJobProvider'; +import { BaseJobProvider } from './job-provider-base'; /** * @class NGJobProvider