api.proto 804 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. syntax = "proto3";
  2. // use {app_id}.{version} as package name
  3. package vipinfo.service.v1;
  4. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  5. option go_package = "v1";
  6. message InfoReply {
  7. ModelInfo res = 1;
  8. }
  9. message InfoReq {
  10. int64 mid = 2;
  11. }
  12. message InfosReply {
  13. map<int64, ModelInfo> res = 1;
  14. }
  15. message InfosReq {
  16. repeated int64 mids = 2;
  17. }
  18. message ModelInfo {
  19. int32 type = 1 [(gogoproto.jsontag) = "type"];
  20. int32 status = 2 [(gogoproto.jsontag) = "status"];
  21. int64 due_date = 3 [(gogoproto.jsontag) = "due_date"];
  22. int32 vip_pay_type = 4 [(gogoproto.jsontag) = "vip_pay_type"];
  23. }
  24. service VipInfo {
  25. // Info get vipinfo by mid.
  26. rpc Info(InfoReq) returns(InfoReply);
  27. // Infos get vipinfos by mids
  28. rpc Infos(InfosReq) returns(InfosReply);
  29. }