feat(wip): sendMessage getMessageHistory
This commit is contained in:
24
server/api/ChatApi.ts
Normal file
24
server/api/ChatApi.ts
Normal file
@@ -0,0 +1,24 @@
|
|||||||
|
import User from "../data/User.ts"
|
||||||
|
import BaseApi from "./BaseApi.ts"
|
||||||
|
|
||||||
|
export default class UserApi extends BaseApi {
|
||||||
|
override getName(): string {
|
||||||
|
return "Chat"
|
||||||
|
}
|
||||||
|
override onInit(): void {
|
||||||
|
this.registerEvent("Chat.sendMessage", (args) => {
|
||||||
|
|
||||||
|
return {
|
||||||
|
code: 501,
|
||||||
|
msg: "未實現",
|
||||||
|
}
|
||||||
|
})
|
||||||
|
this.registerEvent("Chat.getMessageHistory", (args) => {
|
||||||
|
|
||||||
|
return {
|
||||||
|
code: 501,
|
||||||
|
msg: "未實現",
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user