vip.proto 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. syntax = "proto3";
  2. package account.service.vip;
  3. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  4. option go_package = "model";
  5. option (gogoproto.goproto_enum_prefix_all) = false;
  6. option (gogoproto.goproto_getters_all) = false;
  7. option (gogoproto.unmarshaler_all) = true;
  8. option (gogoproto.marshaler_all) = true;
  9. option (gogoproto.sizer_all) = true;
  10. message VipInfo {
  11. VipInfoDB VipInfoDB = 1 [(gogoproto.embed) = true, (gogoproto.jsontag) = ""];
  12. int32 AutoRenewed = 2 [(gogoproto.jsontag) = "auto_renewed"];
  13. }
  14. message VipInfoDB {
  15. int64 ID = 1 [(gogoproto.jsontag) = "id"];
  16. int64 Mid = 2 [(gogoproto.jsontag) = "mid"];
  17. int32 VipType = 3 [(gogoproto.jsontag) = "vip_type"];
  18. int32 VipPayType = 4 [(gogoproto.jsontag) = "vip_pay_type"];
  19. int32 PayChannelID = 5 [(gogoproto.jsontag) = "pay_channel_id"];
  20. int32 VipStatus = 6 [(gogoproto.jsontag) = "vip_status"];
  21. int64 VipStartTime = 7 [(gogoproto.jsontag) = "vip_start_time", (gogoproto.casttype) = "go-common/library/time.Time"];
  22. int64 VipRecentTime = 8 [(gogoproto.jsontag) = "vip_recent_time", (gogoproto.casttype) = "go-common/library/time.Time"];
  23. int64 VipOverdueTime = 9 [(gogoproto.jsontag) = "vip_overdue_time", (gogoproto.casttype) = "go-common/library/time.Time"];
  24. int64 AnnualVipOverdueTime = 10 [(gogoproto.jsontag) = "annual_vip_overdue_time", (gogoproto.casttype) = "go-common/library/time.Time"];
  25. int64 Ctime = 11 [(gogoproto.jsontag) = "ctime", (gogoproto.casttype) = "go-common/library/time.Time"];
  26. int64 Mtime = 12 [(gogoproto.jsontag) = "mtime", (gogoproto.casttype) = "go-common/library/time.Time"];
  27. int64 IosOverdueTime = 13 [(gogoproto.jsontag) = "ios_overdue_time", (gogoproto.casttype) = "go-common/library/time.Time"];
  28. int64 Ver = 14 [(gogoproto.jsontag) = "ver"];
  29. }
  30. message VipPanelInfo {
  31. int32 Month = 1 [(gogoproto.jsontag) = "month"];
  32. string PdName = 2 [(gogoproto.jsontag) = "product_name"];
  33. string PdID = 3 [(gogoproto.jsontag) = "product_id"];
  34. int32 SubType = 4 [(gogoproto.jsontag) = "sub_type"];
  35. int32 SuitType = 5 [(gogoproto.jsontag) = "suit_type"];
  36. double OPrice = 6 [(gogoproto.jsontag) = "original_price"];
  37. double DPrice = 7 [(gogoproto.jsontag) = "discount_price"];
  38. string DRate = 8 [(gogoproto.jsontag) = "discount_rate"];
  39. string Remark = 9 [(gogoproto.jsontag) = "remark"];
  40. int32 Selected = 10 [(gogoproto.jsontag) = "selected"];
  41. int64 Id = 11 [(gogoproto.jsontag) = "id"];
  42. int32 Type = 12 [(gogoproto.jsontag) = "type"];
  43. }
  44. message OpenBindInfo {
  45. int64 Mid = 1 [(gogoproto.jsontag) = "mid"];
  46. int64 AppID = 2 [(gogoproto.jsontag) = "app_id"];
  47. string OutOpenID = 3 [(gogoproto.jsontag) = "out_open_id"];
  48. int32 State = 4 [(gogoproto.jsontag) = "state"];
  49. int64 Ver = 5 [(gogoproto.jsontag) = "ver"];
  50. int64 ID = 6 [(gogoproto.jsontag) = "-"];
  51. }
  52. message OpenInfo {
  53. int64 Mid = 1 [(gogoproto.jsontag) = "mid"];
  54. int64 AppID = 2 [(gogoproto.jsontag) = "app_id"];
  55. string OpenID = 3 [(gogoproto.jsontag) = "open_id"];
  56. }