完善基础架构,新增部分问题接口

This commit is contained in:
2022-05-26 00:39:39 +08:00
parent 761c24efbf
commit 326118eefb
16 changed files with 251 additions and 4 deletions

7
models/param/base.go Normal file
View File

@@ -0,0 +1,7 @@
package param
// 分页通用参数
type page struct {
Current int `json:"current" form:"current" binding:"required"` // 页码
Size int `json:"size" form:"size" binding:"required"` // 每页数量
}

6
models/param/problem.go Normal file
View File

@@ -0,0 +1,6 @@
package param
type GetProblemList struct {
page
Keyword string `json:"keyword" form:"keyword"` // 问题关键字
}