✨ 完善基础架构,新增部分问题接口
This commit is contained in:
7
models/param/base.go
Normal file
7
models/param/base.go
Normal 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
6
models/param/problem.go
Normal file
@@ -0,0 +1,6 @@
|
||||
package param
|
||||
|
||||
type GetProblemList struct {
|
||||
page
|
||||
Keyword string `json:"keyword" form:"keyword"` // 问题关键字
|
||||
}
|
||||
Reference in New Issue
Block a user