1234567891011121314151617181920212223 |
- import request from '@/utils/request'
- const api = {
- getGamesCategory: 'api/games/category',
- getGamesList: 'api/games/list',
- getGamesDetail: 'api/games/gameDetail',
- enrollCreate: 'api/enroll/create',
- }
- // 分类
- export function getGamesCategory(data) {
- return request.get(api.getGamesCategory, data)
- }
- // 赛事列表
- export function getGamesList(data) {
- return request.get(api.getGamesList, data)
- }
- // 赛事详情
- export function getGamesDetail(data,options={load:false}) {
- return request.get(api.getGamesDetail, data,options)
- }
- // 赛事报名
- export function enrollCreate(data) {
- return request.post(api.enrollCreate, data)
- }
|