api.proto 976 B

12345678910111213141516171819202122232425
  1. syntax = "proto3";
  2. package account.service.member.v1;
  3. option go_package = "v1";
  4. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  5. // +bili:deepcopy-gen:structs=go-common/app/tool/gengo/cmd/deepcopy-gen/examples/model.MemberBase
  6. message BaseInfoReply {
  7. int64 mid = 1 [ (gogoproto.jsontag) = "mid" ];
  8. string name = 2 [ (gogoproto.jsontag) = "name" ];
  9. int64 sex = 3 [ (gogoproto.jsontag) = "sex" ];
  10. string face = 4 [ (gogoproto.jsontag) = "face" ];
  11. string sign = 5 [ (gogoproto.jsontag) = "sign" ];
  12. int64 rank = 6 [ (gogoproto.jsontag) = "rank" ];
  13. int64 birthday = 7 [
  14. (gogoproto.jsontag) = "birthday",
  15. (gogoproto.casttype) = "go-common/library/time.Time"
  16. ];
  17. }
  18. // +bili:deepcopy-gen:structs=go-common/app/tool/gengo/cmd/deepcopy-gen/examples/model.Names
  19. message NamesReply { map<int64, string> names = 1; }
  20. // +bili:deepcopy-gen:structs=go-common/app/tool/gengo/cmd/deepcopy-gen/examples/model.Mids
  21. message MidsReply { repeated int64 mids = 1; }