potato/utils/request.go

20 lines
420 B
Go

/*
* @Date: 2021-03-22 23:46:49
* @LastEditors: viletyy
* @LastEditTime: 2021-03-22 23:47:53
* @FilePath: /potato/utils/request.go
*/
package utils
type PageInfo struct {
Page int `json:"page"`
PageSize int `json:"page_size"`
}
type SearchResult struct {
List interface{} `json:"list"`
Total int64 `json:"total"`
Page int `json:"page"`
PageSize int `json:"page_size"`
}