修复
This commit is contained in:
19
Web/src/services/Index/MallService.ts
Normal file
19
Web/src/services/Index/MallService.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
export class MallService {
|
||||
/**
|
||||
* 获取商城列表
|
||||
* GET /Mall/GetMall
|
||||
*/
|
||||
static async GetMall(type: string, page: number) {
|
||||
return await ApiService.Request("get", "/Mall/GetMall", { type, page });
|
||||
}
|
||||
|
||||
/**
|
||||
* 购买物品
|
||||
* POST /Mall/Buy
|
||||
* @param id body
|
||||
* @param count body
|
||||
*/
|
||||
static async Buy(id: string, count: number) {
|
||||
return await ApiService.Request("post", "/Mall/Buy", { id, count });
|
||||
}
|
||||
}
|
||||
43
Web/src/services/Index/MessageService.ts
Normal file
43
Web/src/services/Index/MessageService.ts
Normal file
@@ -0,0 +1,43 @@
|
||||
export class MessageService {
|
||||
/**
|
||||
* 获取消息
|
||||
* GET /Message/GetMessageData
|
||||
*/
|
||||
static async GetMessageData(type: number, page: number) {
|
||||
return await ApiService.Request("get", "/Message/GetMessageData", { type, page });
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取消息界面
|
||||
* GET /Message/GetReadInfo
|
||||
*/
|
||||
static async GetReadInfo(no: number) {
|
||||
return await ApiService.Request("get", "/Message/GetReadInfo", { no });
|
||||
}
|
||||
|
||||
/**
|
||||
* 发送消息
|
||||
* POST /Message/SendMsg
|
||||
* @param no body
|
||||
* @param sign body
|
||||
*/
|
||||
static async SendMsg(no: number, sign: string) {
|
||||
return await ApiService.Request("post", "/Message/SendMsg", { no, sign });
|
||||
}
|
||||
|
||||
/**
|
||||
* 聊天记录
|
||||
* GET /Message/MessageLog
|
||||
*/
|
||||
static async MessageLog(no: number, page: number) {
|
||||
return await ApiService.Request("get", "/Message/MessageLog", { no, page });
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除对话
|
||||
* GET /Message/DeleteMsg
|
||||
*/
|
||||
static async DeleteMsg(no: number) {
|
||||
return await ApiService.Request("get", "/Message/DeleteMsg", { no });
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user