|
|
@@ -135,8 +135,9 @@ type ApiClient interface {
|
|
|
ActionQuery(ctx context.Context, in *StandardRequest, opts ...grpc.CallOption) (*StandardReply, error)
|
|
|
// 用户微信登陆
|
|
|
GenVerifyImageByWinXin(ctx context.Context, in *GenVerifyImageRequest, opts ...grpc.CallOption) (*GenVerifyImageReply, error)
|
|
|
- GenPhoneVerifyCode(ctx context.Context, in *GenPhoneVerifyCodeRequest, opts ...grpc.CallOption) (*DefaultReply, error)
|
|
|
+ GenPhoneVerifyCodeByWeiXin(ctx context.Context, in *GenPhoneVerifyCodeRequestWX, opts ...grpc.CallOption) (*StandardReply, error)
|
|
|
CheckVerifyCode(ctx context.Context, in *CheckVerifyCodeRequest, opts ...grpc.CallOption) (*DefaultReply, error)
|
|
|
+ WeiXinSignIn(ctx context.Context, in *WeiXinSignInRequest, opts ...grpc.CallOption) (*SignInReply, error)
|
|
|
}
|
|
|
|
|
|
type apiClient struct {
|
|
|
@@ -1110,9 +1111,9 @@ func (c *apiClient) GenVerifyImageByWinXin(ctx context.Context, in *GenVerifyIma
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
-func (c *apiClient) GenPhoneVerifyCode(ctx context.Context, in *GenPhoneVerifyCodeRequest, opts ...grpc.CallOption) (*DefaultReply, error) {
|
|
|
- out := new(DefaultReply)
|
|
|
- err := c.cc.Invoke(ctx, "/base.Api/GenPhoneVerifyCode", in, out, opts...)
|
|
|
+func (c *apiClient) GenPhoneVerifyCodeByWeiXin(ctx context.Context, in *GenPhoneVerifyCodeRequestWX, opts ...grpc.CallOption) (*StandardReply, error) {
|
|
|
+ out := new(StandardReply)
|
|
|
+ err := c.cc.Invoke(ctx, "/base.Api/GenPhoneVerifyCodeByWeiXin", in, out, opts...)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
@@ -1128,6 +1129,15 @@ func (c *apiClient) CheckVerifyCode(ctx context.Context, in *CheckVerifyCodeRequ
|
|
|
return out, nil
|
|
|
}
|
|
|
|
|
|
+func (c *apiClient) WeiXinSignIn(ctx context.Context, in *WeiXinSignInRequest, opts ...grpc.CallOption) (*SignInReply, error) {
|
|
|
+ out := new(SignInReply)
|
|
|
+ err := c.cc.Invoke(ctx, "/base.Api/WeiXinSignIn", in, out, opts...)
|
|
|
+ if err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ return out, nil
|
|
|
+}
|
|
|
+
|
|
|
// ApiServer is the server API for Api service.
|
|
|
// All implementations must embed UnimplementedApiServer
|
|
|
// for forward compatibility
|
|
|
@@ -1249,8 +1259,9 @@ type ApiServer interface {
|
|
|
ActionQuery(context.Context, *StandardRequest) (*StandardReply, error)
|
|
|
// 用户微信登陆
|
|
|
GenVerifyImageByWinXin(context.Context, *GenVerifyImageRequest) (*GenVerifyImageReply, error)
|
|
|
- GenPhoneVerifyCode(context.Context, *GenPhoneVerifyCodeRequest) (*DefaultReply, error)
|
|
|
+ GenPhoneVerifyCodeByWeiXin(context.Context, *GenPhoneVerifyCodeRequestWX) (*StandardReply, error)
|
|
|
CheckVerifyCode(context.Context, *CheckVerifyCodeRequest) (*DefaultReply, error)
|
|
|
+ WeiXinSignIn(context.Context, *WeiXinSignInRequest) (*SignInReply, error)
|
|
|
mustEmbedUnimplementedApiServer()
|
|
|
}
|
|
|
|
|
|
@@ -1579,12 +1590,15 @@ func (UnimplementedApiServer) ActionQuery(context.Context, *StandardRequest) (*S
|
|
|
func (UnimplementedApiServer) GenVerifyImageByWinXin(context.Context, *GenVerifyImageRequest) (*GenVerifyImageReply, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method GenVerifyImageByWinXin not implemented")
|
|
|
}
|
|
|
-func (UnimplementedApiServer) GenPhoneVerifyCode(context.Context, *GenPhoneVerifyCodeRequest) (*DefaultReply, error) {
|
|
|
- return nil, status.Errorf(codes.Unimplemented, "method GenPhoneVerifyCode not implemented")
|
|
|
+func (UnimplementedApiServer) GenPhoneVerifyCodeByWeiXin(context.Context, *GenPhoneVerifyCodeRequestWX) (*StandardReply, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method GenPhoneVerifyCodeByWeiXin not implemented")
|
|
|
}
|
|
|
func (UnimplementedApiServer) CheckVerifyCode(context.Context, *CheckVerifyCodeRequest) (*DefaultReply, error) {
|
|
|
return nil, status.Errorf(codes.Unimplemented, "method CheckVerifyCode not implemented")
|
|
|
}
|
|
|
+func (UnimplementedApiServer) WeiXinSignIn(context.Context, *WeiXinSignInRequest) (*SignInReply, error) {
|
|
|
+ return nil, status.Errorf(codes.Unimplemented, "method WeiXinSignIn not implemented")
|
|
|
+}
|
|
|
func (UnimplementedApiServer) mustEmbedUnimplementedApiServer() {}
|
|
|
|
|
|
// UnsafeApiServer may be embedded to opt out of forward compatibility for this service.
|
|
|
@@ -3524,20 +3538,20 @@ func _Api_GenVerifyImageByWinXin_Handler(srv interface{}, ctx context.Context, d
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
-func _Api_GenPhoneVerifyCode_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
- in := new(GenPhoneVerifyCodeRequest)
|
|
|
+func _Api_GenPhoneVerifyCodeByWeiXin_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(GenPhoneVerifyCodeRequestWX)
|
|
|
if err := dec(in); err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
if interceptor == nil {
|
|
|
- return srv.(ApiServer).GenPhoneVerifyCode(ctx, in)
|
|
|
+ return srv.(ApiServer).GenPhoneVerifyCodeByWeiXin(ctx, in)
|
|
|
}
|
|
|
info := &grpc.UnaryServerInfo{
|
|
|
Server: srv,
|
|
|
- FullMethod: "/base.Api/GenPhoneVerifyCode",
|
|
|
+ FullMethod: "/base.Api/GenPhoneVerifyCodeByWeiXin",
|
|
|
}
|
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
- return srv.(ApiServer).GenPhoneVerifyCode(ctx, req.(*GenPhoneVerifyCodeRequest))
|
|
|
+ return srv.(ApiServer).GenPhoneVerifyCodeByWeiXin(ctx, req.(*GenPhoneVerifyCodeRequestWX))
|
|
|
}
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
@@ -3560,6 +3574,24 @@ func _Api_CheckVerifyCode_Handler(srv interface{}, ctx context.Context, dec func
|
|
|
return interceptor(ctx, in, info, handler)
|
|
|
}
|
|
|
|
|
|
+func _Api_WeiXinSignIn_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
|
+ in := new(WeiXinSignInRequest)
|
|
|
+ if err := dec(in); err != nil {
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
+ if interceptor == nil {
|
|
|
+ return srv.(ApiServer).WeiXinSignIn(ctx, in)
|
|
|
+ }
|
|
|
+ info := &grpc.UnaryServerInfo{
|
|
|
+ Server: srv,
|
|
|
+ FullMethod: "/base.Api/WeiXinSignIn",
|
|
|
+ }
|
|
|
+ handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
|
+ return srv.(ApiServer).WeiXinSignIn(ctx, req.(*WeiXinSignInRequest))
|
|
|
+ }
|
|
|
+ return interceptor(ctx, in, info, handler)
|
|
|
+}
|
|
|
+
|
|
|
// Api_ServiceDesc is the grpc.ServiceDesc for Api service.
|
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
|
// and not to be introspected or modified (even as a copy)
|
|
|
@@ -3996,13 +4028,17 @@ var Api_ServiceDesc = grpc.ServiceDesc{
|
|
|
Handler: _Api_GenVerifyImageByWinXin_Handler,
|
|
|
},
|
|
|
{
|
|
|
- MethodName: "GenPhoneVerifyCode",
|
|
|
- Handler: _Api_GenPhoneVerifyCode_Handler,
|
|
|
+ MethodName: "GenPhoneVerifyCodeByWeiXin",
|
|
|
+ Handler: _Api_GenPhoneVerifyCodeByWeiXin_Handler,
|
|
|
},
|
|
|
{
|
|
|
MethodName: "CheckVerifyCode",
|
|
|
Handler: _Api_CheckVerifyCode_Handler,
|
|
|
},
|
|
|
+ {
|
|
|
+ MethodName: "WeiXinSignIn",
|
|
|
+ Handler: _Api_WeiXinSignIn_Handler,
|
|
|
+ },
|
|
|
},
|
|
|
Streams: []grpc.StreamDesc{},
|
|
|
Metadata: "base.proto",
|