mirror of
https://github.com/chaitin/MonkeyCode.git
synced 2026-02-09 02:03:26 +08:00
@@ -434,6 +434,12 @@
|
||||
"description": "每页多少条记录",
|
||||
"name": "size",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "工作模式",
|
||||
"name": "work_mode",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
@@ -553,6 +559,12 @@
|
||||
"description": "每页多少条记录",
|
||||
"name": "size",
|
||||
"in": "query"
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"description": "工作模式",
|
||||
"name": "work_mode",
|
||||
"in": "query"
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
|
||||
@@ -28,6 +28,7 @@ type ListRecordReq struct {
|
||||
*web.Pagination
|
||||
Author string `json:"author" query:"author"` // 作者
|
||||
Language string `json:"language" query:"language"` // 语言
|
||||
WorkMode string `json:"work_mode" query:"work_mode"` // 工作模式
|
||||
IsAccept *bool `json:"is_accept" query:"is_accept"` // 是否接受筛选
|
||||
}
|
||||
|
||||
|
||||
@@ -98,6 +98,10 @@ func filterTask(q *db.TaskQuery, req domain.ListRecordReq) {
|
||||
)
|
||||
})
|
||||
}
|
||||
|
||||
if req.WorkMode != "" {
|
||||
q.Where(task.WorkMode(req.WorkMode))
|
||||
}
|
||||
}
|
||||
|
||||
// ListCompletionRecord implements domain.BillingRepo.
|
||||
|
||||
Reference in New Issue
Block a user