Compare commits
	
		
			4 Commits
		
	
	
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 7f9d917aff | |||
| 5e4f892cb4 | |||
| 152c51ad87 | |||
| e9827a5f54 | 
| @@ -82,6 +82,7 @@ type GetUserInfoResponse struct { | |||||||
| 	Name           string                 `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` | 	Name           string                 `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` | ||||||
| 	Phone          string                 `protobuf:"bytes,6,opt,name=phone,proto3" json:"phone,omitempty"` | 	Phone          string                 `protobuf:"bytes,6,opt,name=phone,proto3" json:"phone,omitempty"` | ||||||
| 	Email          string                 `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"` | 	Email          string                 `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"` | ||||||
|  | 	WxOpenId       string                 `protobuf:"bytes,8,opt,name=wx_open_id,json=wxOpenId,proto3" json:"wx_open_id,omitempty"` | ||||||
| 	unknownFields  protoimpl.UnknownFields | 	unknownFields  protoimpl.UnknownFields | ||||||
| 	sizeCache      protoimpl.SizeCache | 	sizeCache      protoimpl.SizeCache | ||||||
| } | } | ||||||
| @@ -165,6 +166,13 @@ func (x *GetUserInfoResponse) GetEmail() string { | |||||||
| 	return "" | 	return "" | ||||||
| } | } | ||||||
|  |  | ||||||
|  | func (x *GetUserInfoResponse) GetWxOpenId() string { | ||||||
|  | 	if x != nil { | ||||||
|  | 		return x.WxOpenId | ||||||
|  | 	} | ||||||
|  | 	return "" | ||||||
|  | } | ||||||
|  |  | ||||||
| var File_corestack_admin_v1_user_proto protoreflect.FileDescriptor | var File_corestack_admin_v1_user_proto protoreflect.FileDescriptor | ||||||
|  |  | ||||||
| const file_corestack_admin_v1_user_proto_rawDesc = "" + | const file_corestack_admin_v1_user_proto_rawDesc = "" + | ||||||
| @@ -172,7 +180,7 @@ const file_corestack_admin_v1_user_proto_rawDesc = "" + | |||||||
| 	"\x1dcorestack/admin/v1/user.proto\x12\x12corestack.admin.v1\"V\n" + | 	"\x1dcorestack/admin/v1/user.proto\x12\x12corestack.admin.v1\"V\n" + | ||||||
| 	"\x12GetUserInfoRequest\x12\x17\n" + | 	"\x12GetUserInfoRequest\x12\x17\n" + | ||||||
| 	"\auser_id\x18\x01 \x01(\tR\x06userId\x12'\n" + | 	"\auser_id\x18\x01 \x01(\tR\x06userId\x12'\n" + | ||||||
| 	"\x0finvitation_code\x18\x02 \x01(\tR\x0einvitationCode\"\xc8\x01\n" + | 	"\x0finvitation_code\x18\x02 \x01(\tR\x0einvitationCode\"\xe6\x01\n" + | ||||||
| 	"\x13GetUserInfoResponse\x12\x0e\n" + | 	"\x13GetUserInfoResponse\x12\x0e\n" + | ||||||
| 	"\x02id\x18\x01 \x01(\tR\x02id\x12\x16\n" + | 	"\x02id\x18\x01 \x01(\tR\x02id\x12\x16\n" + | ||||||
| 	"\x06avatar\x18\x02 \x01(\tR\x06avatar\x12'\n" + | 	"\x06avatar\x18\x02 \x01(\tR\x06avatar\x12'\n" + | ||||||
| @@ -180,7 +188,9 @@ const file_corestack_admin_v1_user_proto_rawDesc = "" + | |||||||
| 	"\vdescription\x18\x04 \x01(\tR\vdescription\x12\x12\n" + | 	"\vdescription\x18\x04 \x01(\tR\vdescription\x12\x12\n" + | ||||||
| 	"\x04name\x18\x05 \x01(\tR\x04name\x12\x14\n" + | 	"\x04name\x18\x05 \x01(\tR\x04name\x12\x14\n" + | ||||||
| 	"\x05phone\x18\x06 \x01(\tR\x05phone\x12\x14\n" + | 	"\x05phone\x18\x06 \x01(\tR\x05phone\x12\x14\n" + | ||||||
| 	"\x05email\x18\a \x01(\tR\x05emailB=Z;git.shenxianhe.cn/shenxianhe/sdk/corestack/admin/v1;adminv1b\x06proto3" | 	"\x05email\x18\a \x01(\tR\x05email\x12\x1c\n" + | ||||||
|  | 	"\n" + | ||||||
|  | 	"wx_open_id\x18\b \x01(\tR\bwxOpenIdB=Z;git.shenxianhe.cn/shenxianhe/sdk/corestack/admin/v1;adminv1b\x06proto3" | ||||||
|  |  | ||||||
| var ( | var ( | ||||||
| 	file_corestack_admin_v1_user_proto_rawDescOnce sync.Once | 	file_corestack_admin_v1_user_proto_rawDescOnce sync.Once | ||||||
|   | |||||||
							
								
								
									
										179
									
								
								corestack/user/v1/bind.pb.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										179
									
								
								corestack/user/v1/bind.pb.go
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,179 @@ | |||||||
|  | // Code generated by protoc-gen-go. DO NOT EDIT. | ||||||
|  | // versions: | ||||||
|  | // 	protoc-gen-go v1.36.7 | ||||||
|  | // 	protoc        (unknown) | ||||||
|  | // source: corestack/user/v1/bind.proto | ||||||
|  |  | ||||||
|  | package userv1 | ||||||
|  |  | ||||||
|  | import ( | ||||||
|  | 	protoreflect "google.golang.org/protobuf/reflect/protoreflect" | ||||||
|  | 	protoimpl "google.golang.org/protobuf/runtime/protoimpl" | ||||||
|  | 	reflect "reflect" | ||||||
|  | 	sync "sync" | ||||||
|  | 	unsafe "unsafe" | ||||||
|  | ) | ||||||
|  |  | ||||||
|  | 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 BindWxOpenIDRequest struct { | ||||||
|  | 	state         protoimpl.MessageState `protogen:"open.v1"` | ||||||
|  | 	AppId         string                 `protobuf:"bytes,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"` | ||||||
|  | 	Code          string                 `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` | ||||||
|  | 	unknownFields protoimpl.UnknownFields | ||||||
|  | 	sizeCache     protoimpl.SizeCache | ||||||
|  | } | ||||||
|  |  | ||||||
|  | func (x *BindWxOpenIDRequest) Reset() { | ||||||
|  | 	*x = BindWxOpenIDRequest{} | ||||||
|  | 	mi := &file_corestack_user_v1_bind_proto_msgTypes[0] | ||||||
|  | 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | ||||||
|  | 	ms.StoreMessageInfo(mi) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | func (x *BindWxOpenIDRequest) String() string { | ||||||
|  | 	return protoimpl.X.MessageStringOf(x) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | func (*BindWxOpenIDRequest) ProtoMessage() {} | ||||||
|  |  | ||||||
|  | func (x *BindWxOpenIDRequest) ProtoReflect() protoreflect.Message { | ||||||
|  | 	mi := &file_corestack_user_v1_bind_proto_msgTypes[0] | ||||||
|  | 	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 BindWxOpenIDRequest.ProtoReflect.Descriptor instead. | ||||||
|  | func (*BindWxOpenIDRequest) Descriptor() ([]byte, []int) { | ||||||
|  | 	return file_corestack_user_v1_bind_proto_rawDescGZIP(), []int{0} | ||||||
|  | } | ||||||
|  |  | ||||||
|  | func (x *BindWxOpenIDRequest) GetAppId() string { | ||||||
|  | 	if x != nil { | ||||||
|  | 		return x.AppId | ||||||
|  | 	} | ||||||
|  | 	return "" | ||||||
|  | } | ||||||
|  |  | ||||||
|  | func (x *BindWxOpenIDRequest) GetCode() string { | ||||||
|  | 	if x != nil { | ||||||
|  | 		return x.Code | ||||||
|  | 	} | ||||||
|  | 	return "" | ||||||
|  | } | ||||||
|  |  | ||||||
|  | type BindWxOpenIDResponse struct { | ||||||
|  | 	state         protoimpl.MessageState `protogen:"open.v1"` | ||||||
|  | 	WxOpenId      string                 `protobuf:"bytes,1,opt,name=wx_open_id,json=wxOpenId,proto3" json:"wx_open_id,omitempty"` | ||||||
|  | 	unknownFields protoimpl.UnknownFields | ||||||
|  | 	sizeCache     protoimpl.SizeCache | ||||||
|  | } | ||||||
|  |  | ||||||
|  | func (x *BindWxOpenIDResponse) Reset() { | ||||||
|  | 	*x = BindWxOpenIDResponse{} | ||||||
|  | 	mi := &file_corestack_user_v1_bind_proto_msgTypes[1] | ||||||
|  | 	ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) | ||||||
|  | 	ms.StoreMessageInfo(mi) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | func (x *BindWxOpenIDResponse) String() string { | ||||||
|  | 	return protoimpl.X.MessageStringOf(x) | ||||||
|  | } | ||||||
|  |  | ||||||
|  | func (*BindWxOpenIDResponse) ProtoMessage() {} | ||||||
|  |  | ||||||
|  | func (x *BindWxOpenIDResponse) ProtoReflect() protoreflect.Message { | ||||||
|  | 	mi := &file_corestack_user_v1_bind_proto_msgTypes[1] | ||||||
|  | 	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 BindWxOpenIDResponse.ProtoReflect.Descriptor instead. | ||||||
|  | func (*BindWxOpenIDResponse) Descriptor() ([]byte, []int) { | ||||||
|  | 	return file_corestack_user_v1_bind_proto_rawDescGZIP(), []int{1} | ||||||
|  | } | ||||||
|  |  | ||||||
|  | func (x *BindWxOpenIDResponse) GetWxOpenId() string { | ||||||
|  | 	if x != nil { | ||||||
|  | 		return x.WxOpenId | ||||||
|  | 	} | ||||||
|  | 	return "" | ||||||
|  | } | ||||||
|  |  | ||||||
|  | var File_corestack_user_v1_bind_proto protoreflect.FileDescriptor | ||||||
|  |  | ||||||
|  | const file_corestack_user_v1_bind_proto_rawDesc = "" + | ||||||
|  | 	"\n" + | ||||||
|  | 	"\x1ccorestack/user/v1/bind.proto\x12\x11corestack.user.v1\"@\n" + | ||||||
|  | 	"\x13BindWxOpenIDRequest\x12\x15\n" + | ||||||
|  | 	"\x06app_id\x18\x01 \x01(\tR\x05appId\x12\x12\n" + | ||||||
|  | 	"\x04code\x18\x02 \x01(\tR\x04code\"4\n" + | ||||||
|  | 	"\x14BindWxOpenIDResponse\x12\x1c\n" + | ||||||
|  | 	"\n" + | ||||||
|  | 	"wx_open_id\x18\x01 \x01(\tR\bwxOpenIdB;Z9git.shenxianhe.cn/shenxianhe/sdk/corestack/user/v1;userv1b\x06proto3" | ||||||
|  |  | ||||||
|  | var ( | ||||||
|  | 	file_corestack_user_v1_bind_proto_rawDescOnce sync.Once | ||||||
|  | 	file_corestack_user_v1_bind_proto_rawDescData []byte | ||||||
|  | ) | ||||||
|  |  | ||||||
|  | func file_corestack_user_v1_bind_proto_rawDescGZIP() []byte { | ||||||
|  | 	file_corestack_user_v1_bind_proto_rawDescOnce.Do(func() { | ||||||
|  | 		file_corestack_user_v1_bind_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_corestack_user_v1_bind_proto_rawDesc), len(file_corestack_user_v1_bind_proto_rawDesc))) | ||||||
|  | 	}) | ||||||
|  | 	return file_corestack_user_v1_bind_proto_rawDescData | ||||||
|  | } | ||||||
|  |  | ||||||
|  | var file_corestack_user_v1_bind_proto_msgTypes = make([]protoimpl.MessageInfo, 2) | ||||||
|  | var file_corestack_user_v1_bind_proto_goTypes = []any{ | ||||||
|  | 	(*BindWxOpenIDRequest)(nil),  // 0: corestack.user.v1.BindWxOpenIDRequest | ||||||
|  | 	(*BindWxOpenIDResponse)(nil), // 1: corestack.user.v1.BindWxOpenIDResponse | ||||||
|  | } | ||||||
|  | var file_corestack_user_v1_bind_proto_depIdxs = []int32{ | ||||||
|  | 	0, // [0:0] is the sub-list for method output_type | ||||||
|  | 	0, // [0:0] is the sub-list for method input_type | ||||||
|  | 	0, // [0:0] is the sub-list for extension type_name | ||||||
|  | 	0, // [0:0] is the sub-list for extension extendee | ||||||
|  | 	0, // [0:0] is the sub-list for field type_name | ||||||
|  | } | ||||||
|  |  | ||||||
|  | func init() { file_corestack_user_v1_bind_proto_init() } | ||||||
|  | func file_corestack_user_v1_bind_proto_init() { | ||||||
|  | 	if File_corestack_user_v1_bind_proto != nil { | ||||||
|  | 		return | ||||||
|  | 	} | ||||||
|  | 	type x struct{} | ||||||
|  | 	out := protoimpl.TypeBuilder{ | ||||||
|  | 		File: protoimpl.DescBuilder{ | ||||||
|  | 			GoPackagePath: reflect.TypeOf(x{}).PkgPath(), | ||||||
|  | 			RawDescriptor: unsafe.Slice(unsafe.StringData(file_corestack_user_v1_bind_proto_rawDesc), len(file_corestack_user_v1_bind_proto_rawDesc)), | ||||||
|  | 			NumEnums:      0, | ||||||
|  | 			NumMessages:   2, | ||||||
|  | 			NumExtensions: 0, | ||||||
|  | 			NumServices:   0, | ||||||
|  | 		}, | ||||||
|  | 		GoTypes:           file_corestack_user_v1_bind_proto_goTypes, | ||||||
|  | 		DependencyIndexes: file_corestack_user_v1_bind_proto_depIdxs, | ||||||
|  | 		MessageInfos:      file_corestack_user_v1_bind_proto_msgTypes, | ||||||
|  | 	}.Build() | ||||||
|  | 	File_corestack_user_v1_bind_proto = out.File | ||||||
|  | 	file_corestack_user_v1_bind_proto_goTypes = nil | ||||||
|  | 	file_corestack_user_v1_bind_proto_depIdxs = nil | ||||||
|  | } | ||||||
| @@ -24,14 +24,15 @@ var File_corestack_user_v1_service_proto protoreflect.FileDescriptor | |||||||
|  |  | ||||||
| const file_corestack_user_v1_service_proto_rawDesc = "" + | const file_corestack_user_v1_service_proto_rawDesc = "" + | ||||||
| 	"\n" + | 	"\n" + | ||||||
| 	"\x1fcorestack/user/v1/service.proto\x12\x11corestack.user.v1\x1a\x1ccorestack/user/v1/user.proto2\xcd\x04\n" + | 	"\x1fcorestack/user/v1/service.proto\x12\x11corestack.user.v1\x1a\x1ccorestack/user/v1/user.proto\x1a\x1ccorestack/user/v1/bind.proto2\xae\x05\n" + | ||||||
| 	"\vUserService\x12\\\n" + | 	"\vUserService\x12\\\n" + | ||||||
| 	"\vSetPassword\x12%.corestack.user.v1.SetPasswordRequest\x1a&.corestack.user.v1.SetPasswordResponse\x12P\n" + | 	"\vSetPassword\x12%.corestack.user.v1.SetPasswordRequest\x1a&.corestack.user.v1.SetPasswordResponse\x12P\n" + | ||||||
| 	"\aSetName\x12!.corestack.user.v1.SetNameRequest\x1a\".corestack.user.v1.SetNameResponse\x12q\n" + | 	"\aSetName\x12!.corestack.user.v1.SetNameRequest\x1a\".corestack.user.v1.SetNameResponse\x12q\n" + | ||||||
| 	"\x12GetAvatarUploadURL\x12,.corestack.user.v1.GetAvatarUploadURLRequest\x1a-.corestack.user.v1.GetAvatarUploadURLResponse\x12V\n" + | 	"\x12GetAvatarUploadURL\x12,.corestack.user.v1.GetAvatarUploadURLRequest\x1a-.corestack.user.v1.GetAvatarUploadURLResponse\x12V\n" + | ||||||
| 	"\tSetAvatar\x12#.corestack.user.v1.SetAvatarRequest\x1a$.corestack.user.v1.SetAvatarResponse\x12e\n" + | 	"\tSetAvatar\x12#.corestack.user.v1.SetAvatarRequest\x1a$.corestack.user.v1.SetAvatarResponse\x12e\n" + | ||||||
| 	"\x0eSetDescription\x12(.corestack.user.v1.SetDescriptionRequest\x1a).corestack.user.v1.SetDescriptionResponse\x12\\\n" + | 	"\x0eSetDescription\x12(.corestack.user.v1.SetDescriptionRequest\x1a).corestack.user.v1.SetDescriptionResponse\x12\\\n" + | ||||||
| 	"\vGetUserInfo\x12%.corestack.user.v1.GetUserInfoRequest\x1a&.corestack.user.v1.GetUserInfoResponseB;Z9git.shenxianhe.cn/shenxianhe/sdk/corestack/user/v1;userv1b\x06proto3" | 	"\vGetUserInfo\x12%.corestack.user.v1.GetUserInfoRequest\x1a&.corestack.user.v1.GetUserInfoResponse\x12_\n" + | ||||||
|  | 	"\fBindWxOpenID\x12&.corestack.user.v1.BindWxOpenIDRequest\x1a'.corestack.user.v1.BindWxOpenIDResponseB;Z9git.shenxianhe.cn/shenxianhe/sdk/corestack/user/v1;userv1b\x06proto3" | ||||||
|  |  | ||||||
| var file_corestack_user_v1_service_proto_goTypes = []any{ | var file_corestack_user_v1_service_proto_goTypes = []any{ | ||||||
| 	(*SetPasswordRequest)(nil),         // 0: corestack.user.v1.SetPasswordRequest | 	(*SetPasswordRequest)(nil),         // 0: corestack.user.v1.SetPasswordRequest | ||||||
| @@ -40,12 +41,14 @@ var file_corestack_user_v1_service_proto_goTypes = []any{ | |||||||
| 	(*SetAvatarRequest)(nil),           // 3: corestack.user.v1.SetAvatarRequest | 	(*SetAvatarRequest)(nil),           // 3: corestack.user.v1.SetAvatarRequest | ||||||
| 	(*SetDescriptionRequest)(nil),      // 4: corestack.user.v1.SetDescriptionRequest | 	(*SetDescriptionRequest)(nil),      // 4: corestack.user.v1.SetDescriptionRequest | ||||||
| 	(*GetUserInfoRequest)(nil),         // 5: corestack.user.v1.GetUserInfoRequest | 	(*GetUserInfoRequest)(nil),         // 5: corestack.user.v1.GetUserInfoRequest | ||||||
| 	(*SetPasswordResponse)(nil),        // 6: corestack.user.v1.SetPasswordResponse | 	(*BindWxOpenIDRequest)(nil),        // 6: corestack.user.v1.BindWxOpenIDRequest | ||||||
| 	(*SetNameResponse)(nil),            // 7: corestack.user.v1.SetNameResponse | 	(*SetPasswordResponse)(nil),        // 7: corestack.user.v1.SetPasswordResponse | ||||||
| 	(*GetAvatarUploadURLResponse)(nil), // 8: corestack.user.v1.GetAvatarUploadURLResponse | 	(*SetNameResponse)(nil),            // 8: corestack.user.v1.SetNameResponse | ||||||
| 	(*SetAvatarResponse)(nil),          // 9: corestack.user.v1.SetAvatarResponse | 	(*GetAvatarUploadURLResponse)(nil), // 9: corestack.user.v1.GetAvatarUploadURLResponse | ||||||
| 	(*SetDescriptionResponse)(nil),     // 10: corestack.user.v1.SetDescriptionResponse | 	(*SetAvatarResponse)(nil),          // 10: corestack.user.v1.SetAvatarResponse | ||||||
| 	(*GetUserInfoResponse)(nil),        // 11: corestack.user.v1.GetUserInfoResponse | 	(*SetDescriptionResponse)(nil),     // 11: corestack.user.v1.SetDescriptionResponse | ||||||
|  | 	(*GetUserInfoResponse)(nil),        // 12: corestack.user.v1.GetUserInfoResponse | ||||||
|  | 	(*BindWxOpenIDResponse)(nil),       // 13: corestack.user.v1.BindWxOpenIDResponse | ||||||
| } | } | ||||||
| var file_corestack_user_v1_service_proto_depIdxs = []int32{ | var file_corestack_user_v1_service_proto_depIdxs = []int32{ | ||||||
| 	0,  // 0: corestack.user.v1.UserService.SetPassword:input_type -> corestack.user.v1.SetPasswordRequest | 	0,  // 0: corestack.user.v1.UserService.SetPassword:input_type -> corestack.user.v1.SetPasswordRequest | ||||||
| @@ -54,14 +57,16 @@ var file_corestack_user_v1_service_proto_depIdxs = []int32{ | |||||||
| 	3,  // 3: corestack.user.v1.UserService.SetAvatar:input_type -> corestack.user.v1.SetAvatarRequest | 	3,  // 3: corestack.user.v1.UserService.SetAvatar:input_type -> corestack.user.v1.SetAvatarRequest | ||||||
| 	4,  // 4: corestack.user.v1.UserService.SetDescription:input_type -> corestack.user.v1.SetDescriptionRequest | 	4,  // 4: corestack.user.v1.UserService.SetDescription:input_type -> corestack.user.v1.SetDescriptionRequest | ||||||
| 	5,  // 5: corestack.user.v1.UserService.GetUserInfo:input_type -> corestack.user.v1.GetUserInfoRequest | 	5,  // 5: corestack.user.v1.UserService.GetUserInfo:input_type -> corestack.user.v1.GetUserInfoRequest | ||||||
| 	6,  // 6: corestack.user.v1.UserService.SetPassword:output_type -> corestack.user.v1.SetPasswordResponse | 	6,  // 6: corestack.user.v1.UserService.BindWxOpenID:input_type -> corestack.user.v1.BindWxOpenIDRequest | ||||||
| 	7,  // 7: corestack.user.v1.UserService.SetName:output_type -> corestack.user.v1.SetNameResponse | 	7,  // 7: corestack.user.v1.UserService.SetPassword:output_type -> corestack.user.v1.SetPasswordResponse | ||||||
| 	8,  // 8: corestack.user.v1.UserService.GetAvatarUploadURL:output_type -> corestack.user.v1.GetAvatarUploadURLResponse | 	8,  // 8: corestack.user.v1.UserService.SetName:output_type -> corestack.user.v1.SetNameResponse | ||||||
| 	9,  // 9: corestack.user.v1.UserService.SetAvatar:output_type -> corestack.user.v1.SetAvatarResponse | 	9,  // 9: corestack.user.v1.UserService.GetAvatarUploadURL:output_type -> corestack.user.v1.GetAvatarUploadURLResponse | ||||||
| 	10, // 10: corestack.user.v1.UserService.SetDescription:output_type -> corestack.user.v1.SetDescriptionResponse | 	10, // 10: corestack.user.v1.UserService.SetAvatar:output_type -> corestack.user.v1.SetAvatarResponse | ||||||
| 	11, // 11: corestack.user.v1.UserService.GetUserInfo:output_type -> corestack.user.v1.GetUserInfoResponse | 	11, // 11: corestack.user.v1.UserService.SetDescription:output_type -> corestack.user.v1.SetDescriptionResponse | ||||||
| 	6,  // [6:12] is the sub-list for method output_type | 	12, // 12: corestack.user.v1.UserService.GetUserInfo:output_type -> corestack.user.v1.GetUserInfoResponse | ||||||
| 	0,  // [0:6] is the sub-list for method input_type | 	13, // 13: corestack.user.v1.UserService.BindWxOpenID:output_type -> corestack.user.v1.BindWxOpenIDResponse | ||||||
|  | 	7,  // [7:14] is the sub-list for method output_type | ||||||
|  | 	0,  // [0:7] is the sub-list for method input_type | ||||||
| 	0,  // [0:0] is the sub-list for extension type_name | 	0,  // [0:0] is the sub-list for extension type_name | ||||||
| 	0,  // [0:0] is the sub-list for extension extendee | 	0,  // [0:0] is the sub-list for extension extendee | ||||||
| 	0,  // [0:0] is the sub-list for field type_name | 	0,  // [0:0] is the sub-list for field type_name | ||||||
| @@ -73,6 +78,7 @@ func file_corestack_user_v1_service_proto_init() { | |||||||
| 		return | 		return | ||||||
| 	} | 	} | ||||||
| 	file_corestack_user_v1_user_proto_init() | 	file_corestack_user_v1_user_proto_init() | ||||||
|  | 	file_corestack_user_v1_bind_proto_init() | ||||||
| 	type x struct{} | 	type x struct{} | ||||||
| 	out := protoimpl.TypeBuilder{ | 	out := protoimpl.TypeBuilder{ | ||||||
| 		File: protoimpl.DescBuilder{ | 		File: protoimpl.DescBuilder{ | ||||||
|   | |||||||
| @@ -499,6 +499,7 @@ type GetUserInfoResponse struct { | |||||||
| 	Name           string                 `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` | 	Name           string                 `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` | ||||||
| 	Phone          string                 `protobuf:"bytes,6,opt,name=phone,proto3" json:"phone,omitempty"` | 	Phone          string                 `protobuf:"bytes,6,opt,name=phone,proto3" json:"phone,omitempty"` | ||||||
| 	Email          string                 `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"` | 	Email          string                 `protobuf:"bytes,7,opt,name=email,proto3" json:"email,omitempty"` | ||||||
|  | 	WxOpenId       string                 `protobuf:"bytes,8,opt,name=wx_open_id,json=wxOpenId,proto3" json:"wx_open_id,omitempty"` | ||||||
| 	unknownFields  protoimpl.UnknownFields | 	unknownFields  protoimpl.UnknownFields | ||||||
| 	sizeCache      protoimpl.SizeCache | 	sizeCache      protoimpl.SizeCache | ||||||
| } | } | ||||||
| @@ -582,6 +583,13 @@ func (x *GetUserInfoResponse) GetEmail() string { | |||||||
| 	return "" | 	return "" | ||||||
| } | } | ||||||
|  |  | ||||||
|  | func (x *GetUserInfoResponse) GetWxOpenId() string { | ||||||
|  | 	if x != nil { | ||||||
|  | 		return x.WxOpenId | ||||||
|  | 	} | ||||||
|  | 	return "" | ||||||
|  | } | ||||||
|  |  | ||||||
| var File_corestack_user_v1_user_proto protoreflect.FileDescriptor | var File_corestack_user_v1_user_proto protoreflect.FileDescriptor | ||||||
|  |  | ||||||
| const file_corestack_user_v1_user_proto_rawDesc = "" + | const file_corestack_user_v1_user_proto_rawDesc = "" + | ||||||
| @@ -608,7 +616,7 @@ const file_corestack_user_v1_user_proto_rawDesc = "" + | |||||||
| 	"\x15SetDescriptionRequest\x12 \n" + | 	"\x15SetDescriptionRequest\x12 \n" + | ||||||
| 	"\vdescription\x18\x01 \x01(\tR\vdescription\"\x18\n" + | 	"\vdescription\x18\x01 \x01(\tR\vdescription\"\x18\n" + | ||||||
| 	"\x16SetDescriptionResponse\"\x14\n" + | 	"\x16SetDescriptionResponse\"\x14\n" + | ||||||
| 	"\x12GetUserInfoRequest\"\xc8\x01\n" + | 	"\x12GetUserInfoRequest\"\xe6\x01\n" + | ||||||
| 	"\x13GetUserInfoResponse\x12\x0e\n" + | 	"\x13GetUserInfoResponse\x12\x0e\n" + | ||||||
| 	"\x02id\x18\x01 \x01(\tR\x02id\x12\x16\n" + | 	"\x02id\x18\x01 \x01(\tR\x02id\x12\x16\n" + | ||||||
| 	"\x06avatar\x18\x02 \x01(\tR\x06avatar\x12'\n" + | 	"\x06avatar\x18\x02 \x01(\tR\x06avatar\x12'\n" + | ||||||
| @@ -616,7 +624,9 @@ const file_corestack_user_v1_user_proto_rawDesc = "" + | |||||||
| 	"\vdescription\x18\x04 \x01(\tR\vdescription\x12\x12\n" + | 	"\vdescription\x18\x04 \x01(\tR\vdescription\x12\x12\n" + | ||||||
| 	"\x04name\x18\x05 \x01(\tR\x04name\x12\x14\n" + | 	"\x04name\x18\x05 \x01(\tR\x04name\x12\x14\n" + | ||||||
| 	"\x05phone\x18\x06 \x01(\tR\x05phone\x12\x14\n" + | 	"\x05phone\x18\x06 \x01(\tR\x05phone\x12\x14\n" + | ||||||
| 	"\x05email\x18\a \x01(\tR\x05emailB;Z9git.shenxianhe.cn/shenxianhe/sdk/corestack/user/v1;userv1b\x06proto3" | 	"\x05email\x18\a \x01(\tR\x05email\x12\x1c\n" + | ||||||
|  | 	"\n" + | ||||||
|  | 	"wx_open_id\x18\b \x01(\tR\bwxOpenIdB;Z9git.shenxianhe.cn/shenxianhe/sdk/corestack/user/v1;userv1b\x06proto3" | ||||||
|  |  | ||||||
| var ( | var ( | ||||||
| 	file_corestack_user_v1_user_proto_rawDescOnce sync.Once | 	file_corestack_user_v1_user_proto_rawDescOnce sync.Once | ||||||
|   | |||||||
| @@ -47,6 +47,9 @@ const ( | |||||||
| 	UserServiceSetDescriptionProcedure = "/corestack.user.v1.UserService/SetDescription" | 	UserServiceSetDescriptionProcedure = "/corestack.user.v1.UserService/SetDescription" | ||||||
| 	// UserServiceGetUserInfoProcedure is the fully-qualified name of the UserService's GetUserInfo RPC. | 	// UserServiceGetUserInfoProcedure is the fully-qualified name of the UserService's GetUserInfo RPC. | ||||||
| 	UserServiceGetUserInfoProcedure = "/corestack.user.v1.UserService/GetUserInfo" | 	UserServiceGetUserInfoProcedure = "/corestack.user.v1.UserService/GetUserInfo" | ||||||
|  | 	// UserServiceBindWxOpenIDProcedure is the fully-qualified name of the UserService's BindWxOpenID | ||||||
|  | 	// RPC. | ||||||
|  | 	UserServiceBindWxOpenIDProcedure = "/corestack.user.v1.UserService/BindWxOpenID" | ||||||
| ) | ) | ||||||
|  |  | ||||||
| // UserServiceClient is a client for the corestack.user.v1.UserService service. | // UserServiceClient is a client for the corestack.user.v1.UserService service. | ||||||
| @@ -57,6 +60,7 @@ type UserServiceClient interface { | |||||||
| 	SetAvatar(context.Context, *connect.Request[v1.SetAvatarRequest]) (*connect.Response[v1.SetAvatarResponse], error) | 	SetAvatar(context.Context, *connect.Request[v1.SetAvatarRequest]) (*connect.Response[v1.SetAvatarResponse], error) | ||||||
| 	SetDescription(context.Context, *connect.Request[v1.SetDescriptionRequest]) (*connect.Response[v1.SetDescriptionResponse], error) | 	SetDescription(context.Context, *connect.Request[v1.SetDescriptionRequest]) (*connect.Response[v1.SetDescriptionResponse], error) | ||||||
| 	GetUserInfo(context.Context, *connect.Request[v1.GetUserInfoRequest]) (*connect.Response[v1.GetUserInfoResponse], error) | 	GetUserInfo(context.Context, *connect.Request[v1.GetUserInfoRequest]) (*connect.Response[v1.GetUserInfoResponse], error) | ||||||
|  | 	BindWxOpenID(context.Context, *connect.Request[v1.BindWxOpenIDRequest]) (*connect.Response[v1.BindWxOpenIDResponse], error) | ||||||
| } | } | ||||||
|  |  | ||||||
| // NewUserServiceClient constructs a client for the corestack.user.v1.UserService service. By | // NewUserServiceClient constructs a client for the corestack.user.v1.UserService service. By | ||||||
| @@ -106,6 +110,12 @@ func NewUserServiceClient(httpClient connect.HTTPClient, baseURL string, opts .. | |||||||
| 			connect.WithSchema(userServiceMethods.ByName("GetUserInfo")), | 			connect.WithSchema(userServiceMethods.ByName("GetUserInfo")), | ||||||
| 			connect.WithClientOptions(opts...), | 			connect.WithClientOptions(opts...), | ||||||
| 		), | 		), | ||||||
|  | 		bindWxOpenID: connect.NewClient[v1.BindWxOpenIDRequest, v1.BindWxOpenIDResponse]( | ||||||
|  | 			httpClient, | ||||||
|  | 			baseURL+UserServiceBindWxOpenIDProcedure, | ||||||
|  | 			connect.WithSchema(userServiceMethods.ByName("BindWxOpenID")), | ||||||
|  | 			connect.WithClientOptions(opts...), | ||||||
|  | 		), | ||||||
| 	} | 	} | ||||||
| } | } | ||||||
|  |  | ||||||
| @@ -117,6 +127,7 @@ type userServiceClient struct { | |||||||
| 	setAvatar          *connect.Client[v1.SetAvatarRequest, v1.SetAvatarResponse] | 	setAvatar          *connect.Client[v1.SetAvatarRequest, v1.SetAvatarResponse] | ||||||
| 	setDescription     *connect.Client[v1.SetDescriptionRequest, v1.SetDescriptionResponse] | 	setDescription     *connect.Client[v1.SetDescriptionRequest, v1.SetDescriptionResponse] | ||||||
| 	getUserInfo        *connect.Client[v1.GetUserInfoRequest, v1.GetUserInfoResponse] | 	getUserInfo        *connect.Client[v1.GetUserInfoRequest, v1.GetUserInfoResponse] | ||||||
|  | 	bindWxOpenID       *connect.Client[v1.BindWxOpenIDRequest, v1.BindWxOpenIDResponse] | ||||||
| } | } | ||||||
|  |  | ||||||
| // SetPassword calls corestack.user.v1.UserService.SetPassword. | // SetPassword calls corestack.user.v1.UserService.SetPassword. | ||||||
| @@ -149,6 +160,11 @@ func (c *userServiceClient) GetUserInfo(ctx context.Context, req *connect.Reques | |||||||
| 	return c.getUserInfo.CallUnary(ctx, req) | 	return c.getUserInfo.CallUnary(ctx, req) | ||||||
| } | } | ||||||
|  |  | ||||||
|  | // BindWxOpenID calls corestack.user.v1.UserService.BindWxOpenID. | ||||||
|  | func (c *userServiceClient) BindWxOpenID(ctx context.Context, req *connect.Request[v1.BindWxOpenIDRequest]) (*connect.Response[v1.BindWxOpenIDResponse], error) { | ||||||
|  | 	return c.bindWxOpenID.CallUnary(ctx, req) | ||||||
|  | } | ||||||
|  |  | ||||||
| // UserServiceHandler is an implementation of the corestack.user.v1.UserService service. | // UserServiceHandler is an implementation of the corestack.user.v1.UserService service. | ||||||
| type UserServiceHandler interface { | type UserServiceHandler interface { | ||||||
| 	SetPassword(context.Context, *connect.Request[v1.SetPasswordRequest]) (*connect.Response[v1.SetPasswordResponse], error) | 	SetPassword(context.Context, *connect.Request[v1.SetPasswordRequest]) (*connect.Response[v1.SetPasswordResponse], error) | ||||||
| @@ -157,6 +173,7 @@ type UserServiceHandler interface { | |||||||
| 	SetAvatar(context.Context, *connect.Request[v1.SetAvatarRequest]) (*connect.Response[v1.SetAvatarResponse], error) | 	SetAvatar(context.Context, *connect.Request[v1.SetAvatarRequest]) (*connect.Response[v1.SetAvatarResponse], error) | ||||||
| 	SetDescription(context.Context, *connect.Request[v1.SetDescriptionRequest]) (*connect.Response[v1.SetDescriptionResponse], error) | 	SetDescription(context.Context, *connect.Request[v1.SetDescriptionRequest]) (*connect.Response[v1.SetDescriptionResponse], error) | ||||||
| 	GetUserInfo(context.Context, *connect.Request[v1.GetUserInfoRequest]) (*connect.Response[v1.GetUserInfoResponse], error) | 	GetUserInfo(context.Context, *connect.Request[v1.GetUserInfoRequest]) (*connect.Response[v1.GetUserInfoResponse], error) | ||||||
|  | 	BindWxOpenID(context.Context, *connect.Request[v1.BindWxOpenIDRequest]) (*connect.Response[v1.BindWxOpenIDResponse], error) | ||||||
| } | } | ||||||
|  |  | ||||||
| // NewUserServiceHandler builds an HTTP handler from the service implementation. It returns the path | // NewUserServiceHandler builds an HTTP handler from the service implementation. It returns the path | ||||||
| @@ -202,6 +219,12 @@ func NewUserServiceHandler(svc UserServiceHandler, opts ...connect.HandlerOption | |||||||
| 		connect.WithSchema(userServiceMethods.ByName("GetUserInfo")), | 		connect.WithSchema(userServiceMethods.ByName("GetUserInfo")), | ||||||
| 		connect.WithHandlerOptions(opts...), | 		connect.WithHandlerOptions(opts...), | ||||||
| 	) | 	) | ||||||
|  | 	userServiceBindWxOpenIDHandler := connect.NewUnaryHandler( | ||||||
|  | 		UserServiceBindWxOpenIDProcedure, | ||||||
|  | 		svc.BindWxOpenID, | ||||||
|  | 		connect.WithSchema(userServiceMethods.ByName("BindWxOpenID")), | ||||||
|  | 		connect.WithHandlerOptions(opts...), | ||||||
|  | 	) | ||||||
| 	return "/corestack.user.v1.UserService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { | 	return "/corestack.user.v1.UserService/", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { | ||||||
| 		switch r.URL.Path { | 		switch r.URL.Path { | ||||||
| 		case UserServiceSetPasswordProcedure: | 		case UserServiceSetPasswordProcedure: | ||||||
| @@ -216,6 +239,8 @@ func NewUserServiceHandler(svc UserServiceHandler, opts ...connect.HandlerOption | |||||||
| 			userServiceSetDescriptionHandler.ServeHTTP(w, r) | 			userServiceSetDescriptionHandler.ServeHTTP(w, r) | ||||||
| 		case UserServiceGetUserInfoProcedure: | 		case UserServiceGetUserInfoProcedure: | ||||||
| 			userServiceGetUserInfoHandler.ServeHTTP(w, r) | 			userServiceGetUserInfoHandler.ServeHTTP(w, r) | ||||||
|  | 		case UserServiceBindWxOpenIDProcedure: | ||||||
|  | 			userServiceBindWxOpenIDHandler.ServeHTTP(w, r) | ||||||
| 		default: | 		default: | ||||||
| 			http.NotFound(w, r) | 			http.NotFound(w, r) | ||||||
| 		} | 		} | ||||||
| @@ -248,3 +273,7 @@ func (UnimplementedUserServiceHandler) SetDescription(context.Context, *connect. | |||||||
| func (UnimplementedUserServiceHandler) GetUserInfo(context.Context, *connect.Request[v1.GetUserInfoRequest]) (*connect.Response[v1.GetUserInfoResponse], error) { | func (UnimplementedUserServiceHandler) GetUserInfo(context.Context, *connect.Request[v1.GetUserInfoRequest]) (*connect.Response[v1.GetUserInfoResponse], error) { | ||||||
| 	return nil, connect.NewError(connect.CodeUnimplemented, errors.New("corestack.user.v1.UserService.GetUserInfo is not implemented")) | 	return nil, connect.NewError(connect.CodeUnimplemented, errors.New("corestack.user.v1.UserService.GetUserInfo is not implemented")) | ||||||
| } | } | ||||||
|  |  | ||||||
|  | func (UnimplementedUserServiceHandler) BindWxOpenID(context.Context, *connect.Request[v1.BindWxOpenIDRequest]) (*connect.Response[v1.BindWxOpenIDResponse], error) { | ||||||
|  | 	return nil, connect.NewError(connect.CodeUnimplemented, errors.New("corestack.user.v1.UserService.BindWxOpenID is not implemented")) | ||||||
|  | } | ||||||
|   | |||||||
							
								
								
									
										2
									
								
								go.mod
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								go.mod
									
									
									
									
									
								
							| @@ -4,5 +4,5 @@ go 1.25.0 | |||||||
|  |  | ||||||
| require ( | require ( | ||||||
| 	connectrpc.com/connect v1.18.1 | 	connectrpc.com/connect v1.18.1 | ||||||
| 	google.golang.org/protobuf v1.36.8 | 	google.golang.org/protobuf v1.36.9 | ||||||
| ) | ) | ||||||
|   | |||||||
							
								
								
									
										4
									
								
								go.sum
									
									
									
									
									
								
							
							
						
						
									
										4
									
								
								go.sum
									
									
									
									
									
								
							| @@ -6,5 +6,5 @@ golang.org/x/net v0.23.0 h1:7EYJ93RZ9vYSZAIb2x3lnuvqO5zneoD6IvWjuhfxjTs= | |||||||
| golang.org/x/net v0.23.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg= | golang.org/x/net v0.23.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg= | ||||||
| golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= | golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= | ||||||
| golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= | golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= | ||||||
| google.golang.org/protobuf v1.36.8 h1:xHScyCOEuuwZEc6UtSOvPbAT4zRh0xcNRYekJwfqyMc= | google.golang.org/protobuf v1.36.9 h1:w2gp2mA27hUeUzj9Ex9FBjsBm40zfaDtEWow293U7Iw= | ||||||
| google.golang.org/protobuf v1.36.8/go.mod h1:fuxRtAxBytpl4zzqUh6/eyUujkJdNiuEkXntxiD/uRU= | google.golang.org/protobuf v1.36.9/go.mod h1:fuxRtAxBytpl4zzqUh6/eyUujkJdNiuEkXntxiD/uRU= | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user