Skip to content

Commit

Permalink
feat: /ranking/in_organization /ranking/arena_in_organization
Browse files Browse the repository at this point in the history
  • Loading branch information
w8385 committed May 2, 2024
1 parent 8506757 commit 3e85bf0
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/operations/ranking/_barrel.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ import "./reverse_rival.tsp";
import "./rival.tsp";
import "./tier.tsp";
import "./organization.tsp";
import "./in_organization.tsp";
import "./arena_in_organization.tsp";
36 changes: 36 additions & 0 deletions src/operations/ranking/arena_in_organization.tsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using TypeSpec.Http;
using TypeSpec.OpenAPI;

namespace SolvedAC;

/**
* 해당 단체에 속한 사용자 중에서 아레나 레이팅이 높은 사용자가 먼저 오도록 정렬한 목록을 가져옵니다.
*
* @return
* 페이지네이션 가능한 사용자 목록을 반환합니다.
*/
@summary("아레나 레이팅 순 단체 내 랭킹 가져오기")
@tag("ranking")
@get
@route("/ranking/arena_in_organization")
op getArenaInOrganizationRankingByACRating(
/**
* 단체 ID
*/
@query
organizationId: uint32,

/**
* 페이지
*/
@query
page?: uint32,
): GetArenaInOrganizationRankingByACRating.Ok;

namespace GetArenaInOrganizationRankingByACRating {
@extension(XInternal, true)
model Ok {
@statusCode status: 200;
@body data: PaginatedList<User>;
}
}
36 changes: 36 additions & 0 deletions src/operations/ranking/in_organization.tsp
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
using TypeSpec.Http;
using TypeSpec.OpenAPI;

namespace SolvedAC;

/**
* 해당 단체에 속한 사용자 중에서 문제풀이 레이팅이 높은 사용자가 먼저 오도록 정렬한 목록을 가져옵니다.
*
* @return
* 페이지네이션 가능한 사용자 목록을 반환합니다.
*/
@summary("문제풀이 레이팅 순 단체 내 랭킹 가져오기")
@tag("ranking")
@get
@route("/ranking/in_organization")
op getInOrganizationRankingByACRating(
/**
* 단체 ID
*/
@query
organizationId: uint32,

/**
* 페이지
*/
@query
page?: uint32,
): GetInOrganizationRankingByACRating.Ok;

namespace GetInOrganizationRankingByACRating {
@extension(XInternal, true)
model Ok {
@statusCode status: 200;
@body data: PaginatedList<User>;
}
}

0 comments on commit 3e85bf0

Please sign in to comment.