fix bugs
This commit is contained in:
@@ -61,5 +61,28 @@ export default {
|
||||
*/
|
||||
getCompetitionRules(competitionId) {
|
||||
return request.get('/martial/competition/rules', { competitionId })
|
||||
},
|
||||
|
||||
/**
|
||||
* 获取赛事附件列表
|
||||
* @param {Object} params { competitionId, type }
|
||||
* type: info-信息发布, rules-赛事规程, schedule-活动日程,
|
||||
* results-成绩, medals-奖牌榜, photos-图片直播
|
||||
* @returns {Promise}
|
||||
*/
|
||||
getAttachments(params = {}) {
|
||||
return request.get('/martial/competition/attachment/getByType', {
|
||||
competitionId: params.competitionId,
|
||||
attachmentType: params.type
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
* 获取赛事所有附件
|
||||
* @param {String|Number} competitionId 赛事ID
|
||||
* @returns {Promise}
|
||||
*/
|
||||
getAllAttachments(competitionId) {
|
||||
return request.get('/martial/competition/attachment/getByCompetition', { competitionId })
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user