文档
测试

works_detail

GET
/competition/works_detail/{works_id}

接口描述

获取比赛pgc作品

Request Header

参数名
类型
描述
必填
X-Avatoon-Token
string
用户访问token
必填

Response

参数名
类型
描述
必填
works_url
string
作品url
必填
belong
string
所属比赛id
必填
battles
list
参与的pk列表,不包括未结束的pk
必填
item0
dict
必填
battle_id
string
battle id
必填
opponent_url
string
对手作品url,为空说明对手被下架
必填
win
int
赢得票数
必填
lose
int
失败票数
必填
section
int
比赛阶段 1-初赛,2-复赛,3-决赛,5-随手pk
必填
opponent_name
string
对手用户名
必填
opponent_portrait
string
对手头像url
必填
title
string
比赛标题
必填
description
string
比赛描述
必填
reward
dict
奖励
必填
type
string
随手pk为photo/pose,否则为空
必填
state
int
作品状态(0-等待,1-下架,2-举报下架,3-其他,4-随手pk中,5-胜利,6-失败,10-初赛中,11-初赛淘汰,20-复赛中,21-复赛淘汰,30-决赛中,31-决赛淘汰,40-49-决赛前10名
必填
has_retry
bool
是否重试过
必填