model.proto 496 B

12345678910111213141516171819
  1. // +bili:type=model
  2. syntax = "proto3";
  3. package passport.service.identify;
  4. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  5. option go_package = "model";
  6. // IdentifyInfo identify info
  7. message IdentifyInfo {
  8. // user mid
  9. int64 mid = 1 [(gogoproto.jsontag) = "mid"];
  10. // cookie csrf
  11. // when token reqest this field is empty
  12. string csrf = 2 [(gogoproto.jsontag) = "csrfToken"];
  13. // expire time(unix timestamp)
  14. int32 expires = 3 [(gogoproto.jsontag) = "expires"];
  15. }