api.proto 537 B

1234567891011121314151617181920212223242526272829303132
  1. syntax = "proto3";
  2. package main.manager.admin;
  3. import "github.com/gogo/protobuf/gogoproto/gogo.proto";
  4. option go_package = "api";
  5. // Permit
  6. service Permit {
  7. rpc Login(LoginReq) returns(LoginReply);
  8. rpc Permissions(PermissionReq) returns(PermissionReply);
  9. }
  10. message LoginReq {
  11. string mngsid = 1;
  12. string dsbsid = 2;
  13. }
  14. message LoginReply {
  15. string sid = 1;
  16. string username = 2;
  17. }
  18. message PermissionReq {
  19. string username = 1;
  20. }
  21. message PermissionReply {
  22. int64 uid = 1;
  23. repeated string perms = 2;
  24. }