diff --git a/app/http/entities/common.go b/app/http/entities/common.go new file mode 100644 index 0000000..e34775a --- /dev/null +++ b/app/http/entities/common.go @@ -0,0 +1,15 @@ +package entities + +type IdRequest struct { + Id int64 `json:"id"` +} + +type PageRequest struct { + Page int64 `json:"page"` + PageSize int64 `json:"pageSize"` +} + +type PageRsp struct { + Total int64 `json:"total"` + Data []interface{} `json:"data"` +}