🎨 优化问题列表接口

This commit is contained in:
2022-06-02 16:21:08 +08:00
parent 6945e6db93
commit 991165125f
2 changed files with 3 additions and 5 deletions

View File

@@ -13,7 +13,7 @@ func ProblemService() *problemService {
}
// GetList 获取题目列表
func (problemService) GetList(p param.GetProblemList) (records entity.ProblemBasic, count int64, err error) {
func (problemService) GetList(p param.GetProblemList) (records []entity.ProblemBasic, count int64, err error) {
sel := client.MySQL.Scopes(page(p.Current, p.Size)).Preload("ProblemCategories").Preload("ProblemCategories.CategoryBasic")
if p.Keyword != "" {