series.go 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. package v1
  2. import (
  3. "adm-gateway/param/base"
  4. v1 "adm-gateway/pb/v1"
  5. )
  6. type GetSeriesListQuery struct {
  7. BrandName string `form:"brand_name" json:"brand_name"`
  8. BrandId string `form:"brand_id" json:"brand_id"`
  9. SeriesName string `form:"series_name" json:"series_name"`
  10. SeriesId string `form:"series_id" json:"series_id"`
  11. HasImg int32 `form:"has_img" json:"has_img"`
  12. Status int32 `form:"status" json:"status"`
  13. Page int32 `form:"page" json:"page"`
  14. PageSize int32 `form:"page_size" json:"page_size"`
  15. OldSeriesName string `form:"old_series_name" json:"old_series_name"`
  16. }
  17. type GetSeriesListRequest struct {
  18. base.Header
  19. GetSeriesListQuery
  20. }
  21. type GetSeriesListResponse struct {
  22. base.Result
  23. Data *v1.SeriesListReply `json:"data"`
  24. }
  25. type UpdateSeriesBody struct {
  26. ID int64 `form:"id" json:"id"`
  27. SeriesName string `form:"series_name" json:"series_name"`
  28. Maker string `form:"maker" json:"maker"`
  29. Status int64 `form:"status" json:"status"`
  30. HasImg int64 `form:"has_img" json:"has_img"`
  31. OldSeriesName string `form:"old_series_name" json:"old_series_name"`
  32. }
  33. type UpdateSeriesRequest struct {
  34. base.Header
  35. UpdateSeriesBody
  36. }