token.proto 677 B

1234567891011121314151617181920
  1. syntax = "proto3";
  2. package model;
  3. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  4. // result of http access info.
  5. message accessInfo {
  6. int64 Mid = 1 [(gogoproto.jsontag) = "mid"];
  7. int64 AppID = 2 [(gogoproto.jsontag) = "appid"];
  8. string Token = 3 [(gogoproto.jsontag) = "access_key"];
  9. int64 CreateAt = 4 [(gogoproto.jsontag) = "create_at"];
  10. string UserID = 5 [(gogoproto.jsontag) = "userid"];
  11. string Name = 6 [(gogoproto.jsontag) = "uname"];
  12. int64 Expires = 7 [(gogoproto.jsontag) = "expires"];
  13. string Permission = 8 [(gogoproto.jsontag) = "permission"];
  14. }
  15. message renewInfo {
  16. int64 Expires = 1 [(gogoproto.jsontag) = "expires"];
  17. }