This commit is contained in:
Putoo
2026-05-28 19:06:40 +08:00
parent 0d5443ef36
commit 69ae1e3174
39 changed files with 1742 additions and 31 deletions

View 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 });
}
}

View 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 });
}
}