Create & Init Project...
This commit is contained in:
27
app/admin/main/workflow/model/common.go
Normal file
27
app/admin/main/workflow/model/common.go
Normal file
@ -0,0 +1,27 @@
|
||||
package model
|
||||
|
||||
// Page common page struct for list api
|
||||
type Page struct {
|
||||
Num int `json:"num"`
|
||||
Size int `json:"size"`
|
||||
Total int `json:"total"`
|
||||
}
|
||||
|
||||
// CommonResponse .
|
||||
type CommonResponse struct {
|
||||
Code int `json:"code"`
|
||||
Message string `json:"message"`
|
||||
TTL int `json:"ttl"`
|
||||
}
|
||||
|
||||
// CommonExtraDataResponse .
|
||||
type CommonExtraDataResponse struct {
|
||||
*CommonResponse
|
||||
Data map[string]interface{} `json:"data"` //map[gid]interface{}
|
||||
}
|
||||
|
||||
// SourceQueryResponse
|
||||
type SourceQueryResponse struct {
|
||||
*CommonResponse
|
||||
Data map[string]interface{} `json:"data"`
|
||||
}
|
Reference in New Issue
Block a user