luogu-api-docs

团队 API

获取团队

请求 GET /team/:id
响应主体 application/json (LentilleDataResponse<TeamData>)

列出加入的团队

请求 GET /user/mine/team
响应主体 application/json (LentilleDataResponse<UserTeamsData>)

列出团队成员

请求 GET /team/:id/member
响应主体 application/json (LentilleDataResponse<TeamMembersData>)

列出团队题目

请求 GET /team/:id/problem
参数 TeamProblemListParams
响应主体 application/json (LentilleDataResponse<TeamProblemsData>)

列出团队题单

请求 GET /team/:id/training
参数 { page?: number }
响应主体 application/json (LentilleDataResponse<TeamProblemSetsData>)

列出团队比赛

请求 GET /team/:id/contest
参数 { page?: number }
响应主体 application/json (LentilleDataResponse<TeamContestsData>)

加入团队

请求 POST /api/team/join/:id
请求主体 application/json ({ applyMessage?: string })
响应主体 application/json ({})

退出团队

请求 POST /api/team/exit/:id
响应主体 application/json ({})

创建团队

请求 POST /api/team/create
请求主体 application/json ({ name: string })
响应主体 application/json ({ teamId: number })

编辑团队

请求 POST /api/team/edit/:id
请求主体 application/json ({ settings: { description: string; joinPermission: number } })
响应主体 application/json ({})

转让团队

请求 POST /api/team/setMaster/:id
请求主体 application/json ({ uid: number })
响应主体 application/json ({})

更新公告

请求 POST /api/team/editNotice/:id
请求主体 application/json ({ notice: string })
响应主体 application/json ({})

管理成员

请求 POST /api/team/editMember/:id
请求主体 application/json (ManageTeamMemberRequest)
响应主体 application/json (TeamMember)

审核成员

请求 POST /api/team/review/:id
请求主体 application/json ({ uid: number; reviewResult: "apply" | "refuse" | "ban" })
响应主体 application/json ({})

移除成员

请求 POST /api/team/kick/:id
请求主体 application/json ({ uid: number })
响应主体 application/json ({})