msg_package.go 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. package v1
  2. import (
  3. "property-system-gateway/param/base"
  4. "property-system-gateway/pb/v1"
  5. )
  6. type MsgPackageListQuery struct {
  7. Page int64 `form:"page" json:"page"`
  8. PageSize int64 `form:"page_size" json:"page_size"`
  9. }
  10. type MsgPackageListRequest struct {
  11. base.Header
  12. MsgPackageListQuery
  13. }
  14. type MsgPackageListResponse struct {
  15. base.Result
  16. Data v1.MsgPackageListReply `json:"data"`
  17. }
  18. type MsgPackageOrderAddBody struct {
  19. // 套餐id
  20. PackageId int64 `form:"package_id" json:"package_id"`
  21. // 套餐总价 price*package_count
  22. Amount int64 `form:"amount" json:"amount"`
  23. // 套餐个数
  24. PackageCount int64 `form:"package_count" json:"package_count"`
  25. }
  26. type MsgPackageOrderAddRequest struct {
  27. base.Header
  28. MsgPackageOrderAddBody
  29. }
  30. type MsgPackageOrderAddResponse struct {
  31. base.Result
  32. Data v1.MsgPackageOrderAddReply `json:"data"`
  33. }
  34. type MsgPackageOrderListQuery struct {
  35. Page int64 `form:"page" json:"page"`
  36. PageSize int64 `form:"page_size" json:"page_size"`
  37. Status int32 `form:"status" json:"status"`
  38. }
  39. type MsgPackageOrderListRequest struct {
  40. base.Header
  41. MsgPackageOrderListQuery
  42. }
  43. type MsgPackageOrderListResponse struct {
  44. base.Result
  45. Data v1.MsgPackageOrderListReply `json:"data"`
  46. }