移動文件
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
import Config from "../config.ts"
|
||||
import User from "./User.ts";
|
||||
|
||||
abstract class BaseDataManager {
|
||||
declare name: string
|
||||
constructor(name: string) {
|
||||
this.init(name)
|
||||
this.onInit()
|
||||
}
|
||||
private init(name: string) {
|
||||
this.name = name
|
||||
|
||||
}
|
||||
abstract onInit(): void
|
||||
}
|
||||
|
||||
class UserDataManager extends BaseDataManager {
|
||||
static SINGLE_INSTANCE = new UserDataManager('users')
|
||||
override onInit(): void {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
export default class DataBaseManager {
|
||||
static getUserDataManager() {
|
||||
return UserDataManager.SINGLE_INSTANCE
|
||||
}
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
export default class User {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user