文档
测试
GET
/user/works/{competition_id}

接口描述

获取用户指定比赛作品, competition_id为 all 时返回所有比赛作品

Request Header

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

Response

参数名
类型
描述
必填
works
list
作品列表
必填
item0
dict
必填
works_id
string
作品id
必填
works_url
string
作品url
必填
belong
string
所属比赛id
必填
title
string
比赛标题
必填
state
int
作品状态(0-等待,1-下架,2-举报下架,3-其他,4-随手pk中,5-胜利,6-失败,10-初赛中,11-初赛淘汰,20-复赛中,21-复赛淘汰,30-决赛中,31-决赛淘汰,40-49-决赛前10名
必填
type
string
随手pk为photo/pose,否则为空
必填
has_retry
bool
是否重试过
必填
count
int
作品数量
必填
user_name
string
用户名
必填
portrait_url
用户头像URL,没有返回空字符串
必填