You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
624 B
38 lines
624 B
|
1 month ago
|
/**
|
||
|
|
* 游戏服务
|
||
|
|
* 处理租户相关的 API 请求
|
||
|
|
*/
|
||
|
|
|
||
|
|
import { request } from '@/utils/network/api';
|
||
|
|
|
||
|
|
/**
|
||
|
|
* API 响应接口
|
||
|
|
*/
|
||
|
|
interface ApiResponse<T = any> {
|
||
|
|
code: number;
|
||
|
|
message: string;
|
||
|
|
data: T;
|
||
|
|
}
|
||
|
|
|
||
|
|
/**
|
||
|
|
* tenant 服务类
|
||
|
|
*/
|
||
|
|
class GameService {
|
||
|
|
/**
|
||
|
|
* 获取首页数据
|
||
|
|
*/
|
||
|
|
getHomePageData(data?: Record<string, any>): Promise<ApiResponse> {
|
||
|
|
return request.post('/v2', data, {
|
||
|
|
headers: {
|
||
|
|
cmdId: 381119,
|
||
|
|
paramType: 1,
|
||
|
|
apiName: 'getHomePageData',
|
||
|
|
},
|
||
|
|
});
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
// 导出单例
|
||
|
|
export const gameService = new GameService();
|
||
|
|
export default gameService;
|