res.go 436 B

123456789101112131415161718192021
  1. /*
  2. * @desc:返回响应公共参数
  3. * @company:云南奇讯科技有限公司
  4. * @Author: yixiaohu<yxh669@qq.com>
  5. * @Date: 2022/10/27 16:30
  6. */
  7. package common
  8. import "github.com/gogf/gf/v2/frame/g"
  9. // EmptyRes 不响应任何数据
  10. type EmptyRes struct {
  11. g.Meta `mime:"application/json"`
  12. }
  13. // ListRes 列表公共返回
  14. type ListRes struct {
  15. CurrentPage int `json:"currentPage"`
  16. Total interface{} `json:"total"`
  17. }