移動文件
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 {
|
|
||||||
|
|
||||||
}
|
|
||||||
0
.gitignore → 暫存/.gitignore
vendored
0
.gitignore → 暫存/.gitignore
vendored
0
deno.lock → 暫存/deno.lock
generated
0
deno.lock → 暫存/deno.lock
generated
5
暫存/server/data/User.ts
Normal file
5
暫存/server/data/User.ts
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
import { DatabaseSync } from "node:sqlite"
|
||||||
|
|
||||||
|
export default class User {
|
||||||
|
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user