api.proto 470 B

12345678910111213141516171819202122232425262728
  1. // +bili:type=service
  2. // Code generated by warden.
  3. syntax = "proto3";
  4. package location.service;
  5. option go_package = "api";
  6. message InfoReply {
  7. string addr = 1;
  8. string country = 2;
  9. string province = 3;
  10. string city = 4;
  11. string isp = 5;
  12. double latitude = 6;
  13. double longitude = 7;
  14. int64 zone_id = 8;
  15. }
  16. message InfoReq {
  17. string addr = 2;
  18. }
  19. service Location {
  20. // Info get ip info.
  21. rpc Info(InfoReq) returns(InfoReply);
  22. }