mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-27 17:50:53 +01:00
refactor: code cleanup
This commit is contained in:
@@ -17,26 +17,6 @@ type ListResponse struct {
|
||||
Error string `json:"error"`
|
||||
}
|
||||
|
||||
type ListRequestData struct {
|
||||
PageNum int `form:"page_num" json:"page_num"`
|
||||
PageSize int `form:"page_size" json:"page_size"`
|
||||
SortKey string `form:"sort_key" json:"sort_key"`
|
||||
Status string `form:"status" json:"status"`
|
||||
Keyword string `form:"keyword" json:"keyword"`
|
||||
}
|
||||
|
||||
type BatchRequestPayload struct {
|
||||
Ids []primitive.ObjectID `form:"ids" json:"ids"`
|
||||
}
|
||||
|
||||
type BatchRequestPayloadWithStringData struct {
|
||||
Ids []primitive.ObjectID `form:"ids" json:"ids"`
|
||||
Data string `form:"data" json:"data"`
|
||||
Fields []string `form:"fields" json:"fields"`
|
||||
}
|
||||
|
||||
type FileRequestPayload struct {
|
||||
Path string `json:"path" form:"path"`
|
||||
NewPath string `json:"new_path" form:"new_path"`
|
||||
Data string `json:"data" form:"data"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user