order.go 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. package v1
  2. import (
  3. "property-company-gateway/param/base"
  4. v1 "property-company-gateway/pb/v1"
  5. )
  6. // 套餐订单相关
  7. type CompanyPackageListQuery struct {
  8. GardenId int64 `form:"garden_id" json:"garden_id"`
  9. Page int64 `form:"page" json:"page"`
  10. PageSize int64 `form:"page_size" json:"page_size"`
  11. Status int32 `form:"status" json:"status"`
  12. }
  13. type CompanyPackageListRequest struct {
  14. base.Header
  15. CompanyPackageListQuery
  16. }
  17. type CompanyPackageListResponse struct {
  18. base.Result
  19. Data v1.CompanyPackageListReply `json:"data"`
  20. }
  21. type PackageOrderAddBody struct {
  22. PackageId int64 `form:"package_id" json:"package_id"`
  23. // 单价*周期得出的总价
  24. Amount int64 `form:"amount" json:"amount"`
  25. // 周期年
  26. Period int64 `form:"period" json:"period"`
  27. }
  28. type PackageOrderAddRequest struct {
  29. base.Header
  30. PackageOrderAddBody
  31. }
  32. type PackageOrderAddResponse struct {
  33. base.Result
  34. Data v1.PackageOrderAddReply `json:"data"`
  35. }
  36. type PackageOrderAddRenewBody struct {
  37. GardenId int64 `form:"garden_id" json:"garden_id"`
  38. PackageId int64 `form:"package_id" json:"package_id"`
  39. Amount int64 `form:"amount" json:"amount"`
  40. Period int64 `form:"period" json:"period"`
  41. }
  42. type PackageOrderAddRenewRequest struct {
  43. base.Header
  44. PackageOrderAddRenewBody
  45. }
  46. type PackageOrderAddRenewResponse struct {
  47. base.Result
  48. Data v1.PackageOrderAddReply `json:"data"`
  49. }