基础命令重构

1. 移除命令中 bash 依赖
2. jd命令重命名为js
3. 修改默认初始目录
4. 移除冗余代码
This commit is contained in:
whyour
2021-03-25 23:44:57 +08:00
parent 43eab41579
commit 8906472ae0
17 changed files with 133 additions and 199 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ const sampleFile = path.join(rootPath, 'sample/config.sh.sample');
const crontabFile = path.join(rootPath, 'config/crontab.list');
const confBakDir = path.join(rootPath, 'config/bak/');
const authConfigFile = path.join(rootPath, 'config/auth.json');
const shareCodeDir = path.join(rootPath, 'log/jd_get_share_code/');
const shareCodeDir = path.join(rootPath, 'log/share_code/');
const diyFile = path.join(rootPath, 'config/diy.sh');
const logPath = path.join(rootPath, 'log/');
const authError = '错误的用户名密码,请重试';
-27
View File
@@ -1,27 +0,0 @@
export interface ICommon {
_id: string;
value: String;
name: String;
type: Number;
}
export interface ICommonInputDTO {
value: String;
name: String;
type: Number;
}
export enum ShareCodeType {
ddFactory = 1,
ddXw,
jxCfd,
jxFactory,
jxFactoryTuan,
jxNc,
jxStory,
jxCfdGroup,
jdZz,
jdZjdTuan,
didi,
jd818,
}
-7
View File
@@ -1,7 +0,0 @@
export interface IContent {
author: String;
paragraphs: [String];
title: String;
id: String;
created_at: Number;
}
-9
View File
@@ -1,9 +0,0 @@
import { Document, Model } from 'mongoose';
import { IContent } from '../../interfaces/IContent';
import { ICommon } from '../../interfaces/ICommon';
declare global {
namespace Models {
export type IContentModel = Model<IContent & Document>;
export type ICommonModel = Model<ICommon & Document>;
}
}