1111
This commit is contained in:
19
Web/src/services/Index/ChatService.ts
Normal file
19
Web/src/services/Index/ChatService.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
export class ChatService {
|
||||
/**
|
||||
* 获取公聊信息
|
||||
* GET /Chat/Chat/GetChatData
|
||||
*/
|
||||
static async GetChatData(type: number, page: number) {
|
||||
return await ApiService.Request("get", "/Chat/Chat/GetChatData", { type, page });
|
||||
}
|
||||
|
||||
/**
|
||||
* 发言
|
||||
* POST /Chat/Chat/SendChat
|
||||
* @param type body
|
||||
* @param sign body
|
||||
*/
|
||||
static async SendChat(type: number, sign: string) {
|
||||
return await ApiService.Request("post", "/Chat/Chat/SendChat", { type, sign });
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user