refactor: 优化eslint配置,提升代码质量 (#1341)
* feat: 统一并标准化eslint * lint: napcat.webui * lint: napcat.webui * lint: napcat.core * build: fix * lint: napcat.webui * refactor: 重构eslint * Update README.md
This commit is contained in:
651 files changed
+37978
-37584
No files matched your search
@@ -1,43 +1,43 @@
|
||||
import { GeneralCallResult } from './common';
|
||||
enum ProxyType {
|
||||
CLOSE = 0,
|
||||
HTTP = 1,
|
||||
SOCKET = 2
|
||||
CLOSE = 0,
|
||||
HTTP = 1,
|
||||
SOCKET = 2,
|
||||
}
|
||||
export interface NodeIKernelMSFService {
|
||||
getServerTime(): string;
|
||||
setNetworkProxy(param: {
|
||||
userName: string,
|
||||
userPwd: string,
|
||||
address: string,
|
||||
port: number,
|
||||
proxyType: ProxyType,
|
||||
domain: string,
|
||||
isSocket: boolean
|
||||
}): Promise<GeneralCallResult>;
|
||||
getNetworkProxy(): Promise<{
|
||||
userName: string,
|
||||
userPwd: string,
|
||||
address: string,
|
||||
port: number,
|
||||
proxyType: ProxyType,
|
||||
domain: string,
|
||||
isSocket: boolean
|
||||
}>;
|
||||
//http
|
||||
// userName: '',
|
||||
// userPwd: '',
|
||||
// address: '127.0.0.1',
|
||||
// port: 5666,
|
||||
// proxyType: 1,
|
||||
// domain: '',
|
||||
// isSocket: false
|
||||
//socket
|
||||
// userName: '',
|
||||
// userPwd: '',
|
||||
// address: '127.0.0.1',
|
||||
// port: 5667,
|
||||
// proxyType: 2,
|
||||
// domain: '',
|
||||
// isSocket: true
|
||||
}
|
||||
getServerTime(): string;
|
||||
setNetworkProxy(param: {
|
||||
userName: string,
|
||||
userPwd: string,
|
||||
address: string,
|
||||
port: number,
|
||||
proxyType: ProxyType,
|
||||
domain: string,
|
||||
isSocket: boolean
|
||||
}): Promise<GeneralCallResult>;
|
||||
getNetworkProxy(): Promise<{
|
||||
userName: string,
|
||||
userPwd: string,
|
||||
address: string,
|
||||
port: number,
|
||||
proxyType: ProxyType,
|
||||
domain: string,
|
||||
isSocket: boolean
|
||||
}>;
|
||||
// http
|
||||
// userName: '',
|
||||
// userPwd: '',
|
||||
// address: '127.0.0.1',
|
||||
// port: 5666,
|
||||
// proxyType: 1,
|
||||
// domain: '',
|
||||
// isSocket: false
|
||||
// socket
|
||||
// userName: '',
|
||||
// userPwd: '',
|
||||
// address: '127.0.0.1',
|
||||
// port: 5667,
|
||||
// proxyType: 2,
|
||||
// domain: '',
|
||||
// isSocket: true
|
||||
}
|
||||
Reference in new issue
Block a user