Files
DP/AdminPanel/plugins/utils/cep/cepPath.ts
zuowei1216 1b19ff1b92 20251222
2025-12-22 21:06:29 +08:00

36 lines
929 B
TypeScript

import CSInterface, { SystemPath } from "./csinterface"
export class CEPPath {
constructor() {
}
static getUserData(): string {
const cs = new CSInterface()
return cs.getSystemPath(SystemPath.USER_DATA)
}
static getCommonFiles() {
const cs = new CSInterface()
return cs.getSystemPath(SystemPath.COMMON_FILES)
}
static getMyDocuments(): string {
const cs = new CSInterface()
return cs.getSystemPath(SystemPath.MY_DOCUMENTS)
}
static getApplication(): string {
const cs = new CSInterface()
return cs.getSystemPath(SystemPath.APPLICATION)
}
static getExtension(): string {
const cs = new CSInterface()
return cs.getSystemPath(SystemPath.EXTENSION)
}
static getHostApplication(): string {
const cs = new CSInterface()
return cs.getSystemPath(SystemPath.HOST_APPLICATION)
}
}