mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-24 17:41:03 +01:00
25 lines
683 B
Go
25 lines
683 B
Go
package routes
|
|
|
|
type Response struct {
|
|
Status string `json:"status"`
|
|
Message string `json:"message"`
|
|
Data interface{} `json:"data"`
|
|
Error string `json:"error"`
|
|
}
|
|
|
|
type ListResponse struct {
|
|
Status string `json:"status"`
|
|
Message string `json:"message"`
|
|
Total int `json:"total"`
|
|
Data interface{} `json:"data"`
|
|
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"`
|
|
}
|