type.go 364 B

123456789101112131415161718192021
  1. package dto
  2. import (
  3. "cold-delivery/common/model"
  4. "github.com/gin-gonic/gin"
  5. )
  6. type Index interface {
  7. Generate() Index
  8. Bind(ctx *gin.Context) error
  9. GetPageIndex() int
  10. GetPageSize() int
  11. GetNeedSearch() interface{}
  12. }
  13. type Control interface {
  14. Generate() Control
  15. Bind(ctx *gin.Context) error
  16. GenerateM() (model.ActiveRecord, error)
  17. GetId() interface{}
  18. }