feat(tester): extend ListProblems endpoint

This commit is contained in:
Vyacheslav1557 2025-03-02 13:41:24 +05:00
parent 81d7aa2366
commit 251772a049
8 changed files with 76 additions and 4 deletions

View file

@ -16,3 +16,12 @@ type Problem struct {
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
}
type ProblemListItem struct {
Id int32 `db:"id"`
Title string `db:"title"`
MemoryLimit int32 `db:"memory_limit"`
TimeLimit int32 `db:"time_limit"`
CreatedAt time.Time `db:"created_at"`
UpdatedAt time.Time `db:"updated_at"`
}