// Code generated by protoc-gen-go. DO NOT EDIT. // versions: // protoc-gen-go v1.31.0 // protoc v4.25.0 // source: proto/common_service.proto package authorization_service import ( protoreflect "google.golang.org/protobuf/reflect/protoreflect" protoimpl "google.golang.org/protobuf/runtime/protoimpl" reflect "reflect" sync "sync" ) const ( // Verify that this generated code is sufficiently up-to-date. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) // Verify that runtime/protoimpl is sufficiently up-to-date. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) ) // ------------ 登录 ------------ type AdminLoginRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` } func (x *AdminLoginRequest) Reset() { *x = AdminLoginRequest{} if protoimpl.UnsafeEnabled { mi := &file_proto_common_service_proto_msgTypes[0] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *AdminLoginRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*AdminLoginRequest) ProtoMessage() {} func (x *AdminLoginRequest) ProtoReflect() protoreflect.Message { mi := &file_proto_common_service_proto_msgTypes[0] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use AdminLoginRequest.ProtoReflect.Descriptor instead. func (*AdminLoginRequest) Descriptor() ([]byte, []int) { return file_proto_common_service_proto_rawDescGZIP(), []int{0} } func (x *AdminLoginRequest) GetUsername() string { if x != nil { return x.Username } return "" } func (x *AdminLoginRequest) GetPassword() string { if x != nil { return x.Password } return "" } type AdminLoginResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields User *AdminUser `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` Token string `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"` } func (x *AdminLoginResponse) Reset() { *x = AdminLoginResponse{} if protoimpl.UnsafeEnabled { mi := &file_proto_common_service_proto_msgTypes[1] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *AdminLoginResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*AdminLoginResponse) ProtoMessage() {} func (x *AdminLoginResponse) ProtoReflect() protoreflect.Message { mi := &file_proto_common_service_proto_msgTypes[1] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use AdminLoginResponse.ProtoReflect.Descriptor instead. func (*AdminLoginResponse) Descriptor() ([]byte, []int) { return file_proto_common_service_proto_rawDescGZIP(), []int{1} } func (x *AdminLoginResponse) GetUser() *AdminUser { if x != nil { return x.User } return nil } func (x *AdminLoginResponse) GetToken() string { if x != nil { return x.Token } return "" } // ------------ 退出 ------------ type AdminLogoutRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } func (x *AdminLogoutRequest) Reset() { *x = AdminLogoutRequest{} if protoimpl.UnsafeEnabled { mi := &file_proto_common_service_proto_msgTypes[2] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *AdminLogoutRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*AdminLogoutRequest) ProtoMessage() {} func (x *AdminLogoutRequest) ProtoReflect() protoreflect.Message { mi := &file_proto_common_service_proto_msgTypes[2] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use AdminLogoutRequest.ProtoReflect.Descriptor instead. func (*AdminLogoutRequest) Descriptor() ([]byte, []int) { return file_proto_common_service_proto_rawDescGZIP(), []int{2} } type AdminLogoutResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } func (x *AdminLogoutResponse) Reset() { *x = AdminLogoutResponse{} if protoimpl.UnsafeEnabled { mi := &file_proto_common_service_proto_msgTypes[3] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *AdminLogoutResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*AdminLogoutResponse) ProtoMessage() {} func (x *AdminLogoutResponse) ProtoReflect() protoreflect.Message { mi := &file_proto_common_service_proto_msgTypes[3] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use AdminLogoutResponse.ProtoReflect.Descriptor instead. func (*AdminLogoutResponse) Descriptor() ([]byte, []int) { return file_proto_common_service_proto_rawDescGZIP(), []int{3} } // ------------ 个人信息 ------------ type AdminProfileRequest struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields } func (x *AdminProfileRequest) Reset() { *x = AdminProfileRequest{} if protoimpl.UnsafeEnabled { mi := &file_proto_common_service_proto_msgTypes[4] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *AdminProfileRequest) String() string { return protoimpl.X.MessageStringOf(x) } func (*AdminProfileRequest) ProtoMessage() {} func (x *AdminProfileRequest) ProtoReflect() protoreflect.Message { mi := &file_proto_common_service_proto_msgTypes[4] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use AdminProfileRequest.ProtoReflect.Descriptor instead. func (*AdminProfileRequest) Descriptor() ([]byte, []int) { return file_proto_common_service_proto_rawDescGZIP(), []int{4} } type AdminProfileResponse struct { state protoimpl.MessageState sizeCache protoimpl.SizeCache unknownFields protoimpl.UnknownFields User *AdminUser `protobuf:"bytes,1,opt,name=user,proto3" json:"user,omitempty"` } func (x *AdminProfileResponse) Reset() { *x = AdminProfileResponse{} if protoimpl.UnsafeEnabled { mi := &file_proto_common_service_proto_msgTypes[5] ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) ms.StoreMessageInfo(mi) } } func (x *AdminProfileResponse) String() string { return protoimpl.X.MessageStringOf(x) } func (*AdminProfileResponse) ProtoMessage() {} func (x *AdminProfileResponse) ProtoReflect() protoreflect.Message { mi := &file_proto_common_service_proto_msgTypes[5] if protoimpl.UnsafeEnabled && x != nil { ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) if ms.LoadMessageInfo() == nil { ms.StoreMessageInfo(mi) } return ms } return mi.MessageOf(x) } // Deprecated: Use AdminProfileResponse.ProtoReflect.Descriptor instead. func (*AdminProfileResponse) Descriptor() ([]byte, []int) { return file_proto_common_service_proto_rawDescGZIP(), []int{5} } func (x *AdminProfileResponse) GetUser() *AdminUser { if x != nil { return x.User } return nil } var File_proto_common_service_proto protoreflect.FileDescriptor var file_proto_common_service_proto_rawDesc = []byte{ 0x0a, 0x1a, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x1a, 0x18, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x4b, 0x0a, 0x11, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x1a, 0x0a, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x75, 0x73, 0x65, 0x72, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x70, 0x61, 0x73, 0x73, 0x77, 0x6f, 0x72, 0x64, 0x22, 0x57, 0x0a, 0x12, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x12, 0x14, 0x0a, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x74, 0x6f, 0x6b, 0x65, 0x6e, 0x22, 0x14, 0x0a, 0x12, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x6f, 0x67, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x15, 0x0a, 0x13, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x6f, 0x67, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x15, 0x0a, 0x13, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x22, 0x43, 0x0a, 0x14, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x2b, 0x0a, 0x04, 0x75, 0x73, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x62, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x55, 0x73, 0x65, 0x72, 0x52, 0x04, 0x75, 0x73, 0x65, 0x72, 0x32, 0x97, 0x02, 0x0a, 0x0d, 0x43, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x53, 0x0a, 0x0a, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x12, 0x21, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x22, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x6f, 0x67, 0x69, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x56, 0x0a, 0x0b, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x6f, 0x67, 0x6f, 0x75, 0x74, 0x12, 0x22, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x6f, 0x67, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x23, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x4c, 0x6f, 0x67, 0x6f, 0x75, 0x74, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x59, 0x0a, 0x0c, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x12, 0x23, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x24, 0x2e, 0x63, 0x6f, 0x6d, 0x6d, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x2e, 0x41, 0x64, 0x6d, 0x69, 0x6e, 0x50, 0x72, 0x6f, 0x66, 0x69, 0x6c, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x42, 0x1f, 0x5a, 0x1d, 0x2e, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x3b, 0x61, 0x75, 0x74, 0x68, 0x6f, 0x72, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x73, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, } var ( file_proto_common_service_proto_rawDescOnce sync.Once file_proto_common_service_proto_rawDescData = file_proto_common_service_proto_rawDesc ) func file_proto_common_service_proto_rawDescGZIP() []byte { file_proto_common_service_proto_rawDescOnce.Do(func() { file_proto_common_service_proto_rawDescData = protoimpl.X.CompressGZIP(file_proto_common_service_proto_rawDescData) }) return file_proto_common_service_proto_rawDescData } var file_proto_common_service_proto_msgTypes = make([]protoimpl.MessageInfo, 6) var file_proto_common_service_proto_goTypes = []interface{}{ (*AdminLoginRequest)(nil), // 0: common_service.AdminLoginRequest (*AdminLoginResponse)(nil), // 1: common_service.AdminLoginResponse (*AdminLogoutRequest)(nil), // 2: common_service.AdminLogoutRequest (*AdminLogoutResponse)(nil), // 3: common_service.AdminLogoutResponse (*AdminProfileRequest)(nil), // 4: common_service.AdminProfileRequest (*AdminProfileResponse)(nil), // 5: common_service.AdminProfileResponse (*AdminUser)(nil), // 6: base_service.AdminUser } var file_proto_common_service_proto_depIdxs = []int32{ 6, // 0: common_service.AdminLoginResponse.user:type_name -> base_service.AdminUser 6, // 1: common_service.AdminProfileResponse.user:type_name -> base_service.AdminUser 0, // 2: common_service.CommonService.AdminLogin:input_type -> common_service.AdminLoginRequest 2, // 3: common_service.CommonService.AdminLogout:input_type -> common_service.AdminLogoutRequest 4, // 4: common_service.CommonService.AdminProfile:input_type -> common_service.AdminProfileRequest 1, // 5: common_service.CommonService.AdminLogin:output_type -> common_service.AdminLoginResponse 3, // 6: common_service.CommonService.AdminLogout:output_type -> common_service.AdminLogoutResponse 5, // 7: common_service.CommonService.AdminProfile:output_type -> common_service.AdminProfileResponse 5, // [5:8] is the sub-list for method output_type 2, // [2:5] is the sub-list for method input_type 2, // [2:2] is the sub-list for extension type_name 2, // [2:2] is the sub-list for extension extendee 0, // [0:2] is the sub-list for field type_name } func init() { file_proto_common_service_proto_init() } func file_proto_common_service_proto_init() { if File_proto_common_service_proto != nil { return } file_proto_base_service_proto_init() if !protoimpl.UnsafeEnabled { file_proto_common_service_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AdminLoginRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_proto_common_service_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AdminLoginResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_proto_common_service_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AdminLogoutRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_proto_common_service_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AdminLogoutResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_proto_common_service_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AdminProfileRequest); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } file_proto_common_service_proto_msgTypes[5].Exporter = func(v interface{}, i int) interface{} { switch v := v.(*AdminProfileResponse); i { case 0: return &v.state case 1: return &v.sizeCache case 2: return &v.unknownFields default: return nil } } } type x struct{} out := protoimpl.TypeBuilder{ File: protoimpl.DescBuilder{ GoPackagePath: reflect.TypeOf(x{}).PkgPath(), RawDescriptor: file_proto_common_service_proto_rawDesc, NumEnums: 0, NumMessages: 6, NumExtensions: 0, NumServices: 1, }, GoTypes: file_proto_common_service_proto_goTypes, DependencyIndexes: file_proto_common_service_proto_depIdxs, MessageInfos: file_proto_common_service_proto_msgTypes, }.Build() File_proto_common_service_proto = out.File file_proto_common_service_proto_rawDesc = nil file_proto_common_service_proto_goTypes = nil file_proto_common_service_proto_depIdxs = nil }