| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- // 引入工具函数
- import request from '@/common/request'
- // 热门游戏(有参数)
- export const getGameHot = (params:any) => {
- return request({
- url: '/game/hot',
- method: 'get',
- params
- })
- }
- export const getIndexGameHot = () => {
- return request({
- url: '/game/hot',
- method: 'get'
- })
- }
- // 游戏推荐(有参数)
- export const getGameRecommand = (params:any) => {
- return request({
- url: '/game/recommand',
- method: 'get',
- params
- })
- }
- export const getIndexGameRecommand = () => {
- return request({
- url: '/game/recommand',
- method: 'get'
- })
- }
- // 游戏列表
- export const getGameList = (params:any) => {
- return request({
- url: '/game/list',
- method: 'get',
- params
- })
- }
- export const getGameLis = () => {
- return request({
- url: '/game/list',
- method: 'get'
- })
- }
- // 用户登录
- export const getUserLogin = (data:any) => {
- return request({
- url: '/user/login',
- method: 'post',
- data
- })
- }
- // 我的游戏
- export const getMineGame = (params:any) => {
- return request({
- url: '/game/mine',
- method: 'get',
- params
- })
- }
- // 游戏标签
- export const getGameTag = () => {
- return request({
- url: '/game/tag',
- method: 'get',
- })
- }
- // 游戏类型
- export const getGameType = () => {
- return request({
- url: '/game/type',
- method: 'get',
- })
- }
|