|
|
@@ -24,6 +24,7 @@ const _ = grpc.SupportPackageIsVersion7
|
|
|
type UserClient interface {
|
|
|
// 1、获取用户详情
|
|
|
GetUserInfo(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*UserInfo, error)
|
|
|
+ GetUserInfo1(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*UserInfo, error)
|
|
|
// 2、用户发送验证码
|
|
|
SendPhoneCode(ctx context.Context, in *common.SendPhoneCodeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
|
|
|
// 3、用户验证验证码
|
|
|
@@ -284,6 +285,15 @@ func (c *userClient) GetUserInfo(ctx context.Context, in *emptypb.Empty, opts ..
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
+func (c *userClient) GetUserInfo1(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*UserInfo, error) {
|
|
|
+ out := new(UserInfo)
|
|
|
+ err := c.cc.Invoke(ctx, "/api.user.User/GetUserInfo1", in, out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
func (c *userClient) SendPhoneCode(ctx context.Context, in *common.SendPhoneCodeRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) {
|
|
|
out := new(emptypb.Empty)
|
|
|
err := c.cc.Invoke(ctx, "/api.user.User/SendPhoneCode", in, out, opts...)
|
|
|
@@ -1352,6 +1362,7 @@ func (c *userClient) CronRemoveExpirationVip(ctx context.Context, in *emptypb.Em
|
|
|
type UserServer interface {
|
|
|
// 1、获取用户详情
|
|
|
GetUserInfo(context.Context, *emptypb.Empty) (*UserInfo, error)
|
|
|
+ GetUserInfo1(context.Context, *emptypb.Empty) (*UserInfo, error)
|
|
|
// 2、用户发送验证码
|
|
|
SendPhoneCode(context.Context, *common.SendPhoneCodeRequest) (*emptypb.Empty, error)
|
|
|
// 3、用户验证验证码
|
|
|
@@ -1603,6 +1614,9 @@ type UnimplementedUserServer struct {
|
|
|
func (UnimplementedUserServer) GetUserInfo(context.Context, *emptypb.Empty) (*UserInfo, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GetUserInfo not implemented")
|
|
|
}
|
|
|
+func (UnimplementedUserServer) GetUserInfo1(context.Context, *emptypb.Empty) (*UserInfo, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method GetUserInfo1 not implemented")
|
|
|
+}
|
|
|
func (UnimplementedUserServer) SendPhoneCode(context.Context, *common.SendPhoneCodeRequest) (*emptypb.Empty, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method SendPhoneCode not implemented")
|
|
|
}
|
|
|
@@ -1988,6 +2002,24 @@ func _User_GetUserInfo_Handler(srv interface{}, ctx context.Context, dec func(in
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
+func _User_GetUserInfo1_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(emptypb.Empty)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(UserServer).GetUserInfo1(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: "/api.user.User/GetUserInfo1",
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(UserServer).GetUserInfo1(ctx, req.(*emptypb.Empty))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
func _User_SendPhoneCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
in := new(common.SendPhoneCodeRequest)
|
|
|
if err := dec(in); err != nil {
|
|
|
@@ -4123,6 +4155,10 @@ var User_ServiceDesc = grpc.ServiceDesc{
|
|
|
MethodName: "GetUserInfo",
|
|
|
Handler: _User_GetUserInfo_Handler,
|
|
|
},
|
|
|
+ {
|
|
|
+ MethodName: "GetUserInfo1",
|
|
|
+ Handler: _User_GetUserInfo1_Handler,
|
|
|
+ },
|
|
|
{
|
|
|
MethodName: "SendPhoneCode",
|
|
|
Handler: _User_SendPhoneCode_Handler,
|