🎨 优化问题列表接口
This commit is contained in:
@@ -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 != "" {
|
||||
|
||||
Reference in New Issue
Block a user