|
@@ -729,6 +729,86 @@ func (x *GetUserPermsResp) GetMemberType() string {
|
|
|
return ""
|
|
return ""
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+type LogoutReq struct {
|
|
|
|
|
+ state protoimpl.MessageState `protogen:"open.v1"`
|
|
|
|
|
+ AccessToken string `protobuf:"bytes,1,opt,name=accessToken,proto3" json:"accessToken,omitempty"`
|
|
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (x *LogoutReq) Reset() {
|
|
|
|
|
+ *x = LogoutReq{}
|
|
|
|
|
+ mi := &file_pb_perm_proto_msgTypes[11]
|
|
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (x *LogoutReq) String() string {
|
|
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (*LogoutReq) ProtoMessage() {}
|
|
|
|
|
+
|
|
|
|
|
+func (x *LogoutReq) ProtoReflect() protoreflect.Message {
|
|
|
|
|
+ mi := &file_pb_perm_proto_msgTypes[11]
|
|
|
|
|
+ if x != nil {
|
|
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
+ if ms.LoadMessageInfo() == nil {
|
|
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
|
|
+ }
|
|
|
|
|
+ return ms
|
|
|
|
|
+ }
|
|
|
|
|
+ return mi.MessageOf(x)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// Deprecated: Use LogoutReq.ProtoReflect.Descriptor instead.
|
|
|
|
|
+func (*LogoutReq) Descriptor() ([]byte, []int) {
|
|
|
|
|
+ return file_pb_perm_proto_rawDescGZIP(), []int{11}
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (x *LogoutReq) GetAccessToken() string {
|
|
|
|
|
+ if x != nil {
|
|
|
|
|
+ return x.AccessToken
|
|
|
|
|
+ }
|
|
|
|
|
+ return ""
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+type LogoutResp struct {
|
|
|
|
|
+ state protoimpl.MessageState `protogen:"open.v1"`
|
|
|
|
|
+ unknownFields protoimpl.UnknownFields
|
|
|
|
|
+ sizeCache protoimpl.SizeCache
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (x *LogoutResp) Reset() {
|
|
|
|
|
+ *x = LogoutResp{}
|
|
|
|
|
+ mi := &file_pb_perm_proto_msgTypes[12]
|
|
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (x *LogoutResp) String() string {
|
|
|
|
|
+ return protoimpl.X.MessageStringOf(x)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+func (*LogoutResp) ProtoMessage() {}
|
|
|
|
|
+
|
|
|
|
|
+func (x *LogoutResp) ProtoReflect() protoreflect.Message {
|
|
|
|
|
+ mi := &file_pb_perm_proto_msgTypes[12]
|
|
|
|
|
+ if x != nil {
|
|
|
|
|
+ ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
|
|
|
+ if ms.LoadMessageInfo() == nil {
|
|
|
|
|
+ ms.StoreMessageInfo(mi)
|
|
|
|
|
+ }
|
|
|
|
|
+ return ms
|
|
|
|
|
+ }
|
|
|
|
|
+ return mi.MessageOf(x)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+// Deprecated: Use LogoutResp.ProtoReflect.Descriptor instead.
|
|
|
|
|
+func (*LogoutResp) Descriptor() ([]byte, []int) {
|
|
|
|
|
+ return file_pb_perm_proto_rawDescGZIP(), []int{12}
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
var File_pb_perm_proto protoreflect.FileDescriptor
|
|
var File_pb_perm_proto protoreflect.FileDescriptor
|
|
|
|
|
|
|
|
const file_pb_perm_proto_rawDesc = "" +
|
|
const file_pb_perm_proto_rawDesc = "" +
|
|
@@ -789,13 +869,18 @@ const file_pb_perm_proto_rawDesc = "" +
|
|
|
"\x05perms\x18\x01 \x03(\tR\x05perms\x12\x1e\n" +
|
|
"\x05perms\x18\x01 \x03(\tR\x05perms\x12\x1e\n" +
|
|
|
"\n" +
|
|
"\n" +
|
|
|
"memberType\x18\x02 \x01(\tR\n" +
|
|
"memberType\x18\x02 \x01(\tR\n" +
|
|
|
- "memberType2\xa5\x02\n" +
|
|
|
|
|
|
|
+ "memberType\"-\n" +
|
|
|
|
|
+ "\tLogoutReq\x12 \n" +
|
|
|
|
|
+ "\vaccessToken\x18\x01 \x01(\tR\vaccessToken\"\f\n" +
|
|
|
|
|
+ "\n" +
|
|
|
|
|
+ "LogoutResp2\xce\x02\n" +
|
|
|
"\vPermService\x12B\n" +
|
|
"\vPermService\x12B\n" +
|
|
|
"\x0fSyncPermissions\x12\x16.pb.SyncPermissionsReq\x1a\x17.pb.SyncPermissionsResp\x12$\n" +
|
|
"\x0fSyncPermissions\x12\x16.pb.SyncPermissionsReq\x1a\x17.pb.SyncPermissionsResp\x12$\n" +
|
|
|
"\x05Login\x12\f.pb.LoginReq\x1a\r.pb.LoginResp\x129\n" +
|
|
"\x05Login\x12\f.pb.LoginReq\x1a\r.pb.LoginResp\x129\n" +
|
|
|
"\fRefreshToken\x12\x13.pb.RefreshTokenReq\x1a\x14.pb.RefreshTokenResp\x126\n" +
|
|
"\fRefreshToken\x12\x13.pb.RefreshTokenReq\x1a\x14.pb.RefreshTokenResp\x126\n" +
|
|
|
"\vVerifyToken\x12\x12.pb.VerifyTokenReq\x1a\x13.pb.VerifyTokenResp\x129\n" +
|
|
"\vVerifyToken\x12\x12.pb.VerifyTokenReq\x1a\x13.pb.VerifyTokenResp\x129\n" +
|
|
|
- "\fGetUserPerms\x12\x13.pb.GetUserPermsReq\x1a\x14.pb.GetUserPermsRespB\x1eZ\x1cgithub.com/xiaozi/permlib/pbb\x06proto3"
|
|
|
|
|
|
|
+ "\fGetUserPerms\x12\x13.pb.GetUserPermsReq\x1a\x14.pb.GetUserPermsResp\x12'\n" +
|
|
|
|
|
+ "\x06Logout\x12\r.pb.LogoutReq\x1a\x0e.pb.LogoutRespB\x1eZ\x1cgithub.com/xiaozi/permlib/pbb\x06proto3"
|
|
|
|
|
|
|
|
var (
|
|
var (
|
|
|
file_pb_perm_proto_rawDescOnce sync.Once
|
|
file_pb_perm_proto_rawDescOnce sync.Once
|
|
@@ -809,7 +894,7 @@ func file_pb_perm_proto_rawDescGZIP() []byte {
|
|
|
return file_pb_perm_proto_rawDescData
|
|
return file_pb_perm_proto_rawDescData
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-var file_pb_perm_proto_msgTypes = make([]protoimpl.MessageInfo, 11)
|
|
|
|
|
|
|
+var file_pb_perm_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
|
|
|
var file_pb_perm_proto_goTypes = []any{
|
|
var file_pb_perm_proto_goTypes = []any{
|
|
|
(*PermItem)(nil), // 0: pb.PermItem
|
|
(*PermItem)(nil), // 0: pb.PermItem
|
|
|
(*SyncPermissionsReq)(nil), // 1: pb.SyncPermissionsReq
|
|
(*SyncPermissionsReq)(nil), // 1: pb.SyncPermissionsReq
|
|
@@ -822,6 +907,8 @@ var file_pb_perm_proto_goTypes = []any{
|
|
|
(*VerifyTokenResp)(nil), // 8: pb.VerifyTokenResp
|
|
(*VerifyTokenResp)(nil), // 8: pb.VerifyTokenResp
|
|
|
(*GetUserPermsReq)(nil), // 9: pb.GetUserPermsReq
|
|
(*GetUserPermsReq)(nil), // 9: pb.GetUserPermsReq
|
|
|
(*GetUserPermsResp)(nil), // 10: pb.GetUserPermsResp
|
|
(*GetUserPermsResp)(nil), // 10: pb.GetUserPermsResp
|
|
|
|
|
+ (*LogoutReq)(nil), // 11: pb.LogoutReq
|
|
|
|
|
+ (*LogoutResp)(nil), // 12: pb.LogoutResp
|
|
|
}
|
|
}
|
|
|
var file_pb_perm_proto_depIdxs = []int32{
|
|
var file_pb_perm_proto_depIdxs = []int32{
|
|
|
0, // 0: pb.SyncPermissionsReq.perms:type_name -> pb.PermItem
|
|
0, // 0: pb.SyncPermissionsReq.perms:type_name -> pb.PermItem
|
|
@@ -830,13 +917,15 @@ var file_pb_perm_proto_depIdxs = []int32{
|
|
|
5, // 3: pb.PermService.RefreshToken:input_type -> pb.RefreshTokenReq
|
|
5, // 3: pb.PermService.RefreshToken:input_type -> pb.RefreshTokenReq
|
|
|
7, // 4: pb.PermService.VerifyToken:input_type -> pb.VerifyTokenReq
|
|
7, // 4: pb.PermService.VerifyToken:input_type -> pb.VerifyTokenReq
|
|
|
9, // 5: pb.PermService.GetUserPerms:input_type -> pb.GetUserPermsReq
|
|
9, // 5: pb.PermService.GetUserPerms:input_type -> pb.GetUserPermsReq
|
|
|
- 2, // 6: pb.PermService.SyncPermissions:output_type -> pb.SyncPermissionsResp
|
|
|
|
|
- 4, // 7: pb.PermService.Login:output_type -> pb.LoginResp
|
|
|
|
|
- 6, // 8: pb.PermService.RefreshToken:output_type -> pb.RefreshTokenResp
|
|
|
|
|
- 8, // 9: pb.PermService.VerifyToken:output_type -> pb.VerifyTokenResp
|
|
|
|
|
- 10, // 10: pb.PermService.GetUserPerms:output_type -> pb.GetUserPermsResp
|
|
|
|
|
- 6, // [6:11] is the sub-list for method output_type
|
|
|
|
|
- 1, // [1:6] is the sub-list for method input_type
|
|
|
|
|
|
|
+ 11, // 6: pb.PermService.Logout:input_type -> pb.LogoutReq
|
|
|
|
|
+ 2, // 7: pb.PermService.SyncPermissions:output_type -> pb.SyncPermissionsResp
|
|
|
|
|
+ 4, // 8: pb.PermService.Login:output_type -> pb.LoginResp
|
|
|
|
|
+ 6, // 9: pb.PermService.RefreshToken:output_type -> pb.RefreshTokenResp
|
|
|
|
|
+ 8, // 10: pb.PermService.VerifyToken:output_type -> pb.VerifyTokenResp
|
|
|
|
|
+ 10, // 11: pb.PermService.GetUserPerms:output_type -> pb.GetUserPermsResp
|
|
|
|
|
+ 12, // 12: pb.PermService.Logout:output_type -> pb.LogoutResp
|
|
|
|
|
+ 7, // [7:13] is the sub-list for method output_type
|
|
|
|
|
+ 1, // [1:7] is the sub-list for method input_type
|
|
|
1, // [1:1] is the sub-list for extension type_name
|
|
1, // [1:1] is the sub-list for extension type_name
|
|
|
1, // [1:1] is the sub-list for extension extendee
|
|
1, // [1:1] is the sub-list for extension extendee
|
|
|
0, // [0:1] is the sub-list for field type_name
|
|
0, // [0:1] is the sub-list for field type_name
|
|
@@ -853,7 +942,7 @@ func file_pb_perm_proto_init() {
|
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_pb_perm_proto_rawDesc), len(file_pb_perm_proto_rawDesc)),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_pb_perm_proto_rawDesc), len(file_pb_perm_proto_rawDesc)),
|
|
|
NumEnums: 0,
|
|
NumEnums: 0,
|
|
|
- NumMessages: 11,
|
|
|
|
|
|
|
+ NumMessages: 13,
|
|
|
NumExtensions: 0,
|
|
NumExtensions: 0,
|
|
|
NumServices: 1,
|
|
NumServices: 1,
|
|
|
},
|
|
},
|