feat: user get mobile
CI / changes (push) Successful in 1m30s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 1s
CI / bff (push) Successful in 26s
CI / chore (push) Successful in 1s
CI / equipment (push) Successful in 0s
CI / express (push) Successful in 0s
CI / factory (push) Successful in 0s
CI / message (push) Successful in 0s
CI / order (push) Successful in 0s
CI / payment (push) Successful in 0s
CI / percutaneous (push) Successful in 0s
CI / product (push) Successful in 1s
CI / record (push) Successful in 0s
CI / sale (push) Successful in 0s
CI / support (push) Successful in 1s
CI / task (push) Successful in 0s
CI / user (push) Successful in 28s
CI / water (push) Successful in 1s
CI / wecom (push) Successful in 0s
CI / changes (push) Successful in 1m30s
CI / ad (push) Successful in 0s
CI / admin (push) Successful in 1s
CI / bff (push) Successful in 26s
CI / chore (push) Successful in 1s
CI / equipment (push) Successful in 0s
CI / express (push) Successful in 0s
CI / factory (push) Successful in 0s
CI / message (push) Successful in 0s
CI / order (push) Successful in 0s
CI / payment (push) Successful in 0s
CI / percutaneous (push) Successful in 0s
CI / product (push) Successful in 1s
CI / record (push) Successful in 0s
CI / sale (push) Successful in 0s
CI / support (push) Successful in 1s
CI / task (push) Successful in 0s
CI / user (push) Successful in 28s
CI / water (push) Successful in 1s
CI / wecom (push) Successful in 0s
This commit is contained in:
@@ -27,6 +27,7 @@ const (
|
||||
User_Update_FullMethodName = "/user.User/Update"
|
||||
User_Password_FullMethodName = "/user.User/Password"
|
||||
User_GetOpenid_FullMethodName = "/user.User/GetOpenid"
|
||||
User_BindMobile_FullMethodName = "/user.User/BindMobile"
|
||||
User_Client_FullMethodName = "/user.User/Client"
|
||||
User_UserItems_FullMethodName = "/user.User/UserItems"
|
||||
User_UserStatus_FullMethodName = "/user.User/UserStatus"
|
||||
@@ -54,6 +55,7 @@ type UserClient interface {
|
||||
Update(ctx context.Context, in *UpdateReq, opts ...grpc.CallOption) (*Response, error)
|
||||
Password(ctx context.Context, in *PasswordReq, opts ...grpc.CallOption) (*Response, error)
|
||||
GetOpenid(ctx context.Context, in *GetOpenidReq, opts ...grpc.CallOption) (*Response, error)
|
||||
BindMobile(ctx context.Context, in *BindMobileReq, opts ...grpc.CallOption) (*Response, error)
|
||||
Client(ctx context.Context, in *ClientReq, opts ...grpc.CallOption) (*Response, error)
|
||||
UserItems(ctx context.Context, in *UserItemsReq, opts ...grpc.CallOption) (*Response, error)
|
||||
UserStatus(ctx context.Context, in *UserStatusReq, opts ...grpc.CallOption) (*Response, error)
|
||||
@@ -157,6 +159,16 @@ func (c *userClient) GetOpenid(ctx context.Context, in *GetOpenidReq, opts ...gr
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *userClient) BindMobile(ctx context.Context, in *BindMobileReq, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
err := c.cc.Invoke(ctx, User_BindMobile_FullMethodName, in, out, cOpts...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return out, nil
|
||||
}
|
||||
|
||||
func (c *userClient) Client(ctx context.Context, in *ClientReq, opts ...grpc.CallOption) (*Response, error) {
|
||||
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
||||
out := new(Response)
|
||||
@@ -299,6 +311,7 @@ type UserServer interface {
|
||||
Update(context.Context, *UpdateReq) (*Response, error)
|
||||
Password(context.Context, *PasswordReq) (*Response, error)
|
||||
GetOpenid(context.Context, *GetOpenidReq) (*Response, error)
|
||||
BindMobile(context.Context, *BindMobileReq) (*Response, error)
|
||||
Client(context.Context, *ClientReq) (*Response, error)
|
||||
UserItems(context.Context, *UserItemsReq) (*Response, error)
|
||||
UserStatus(context.Context, *UserStatusReq) (*Response, error)
|
||||
@@ -346,6 +359,9 @@ func (UnimplementedUserServer) Password(context.Context, *PasswordReq) (*Respons
|
||||
func (UnimplementedUserServer) GetOpenid(context.Context, *GetOpenidReq) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method GetOpenid not implemented")
|
||||
}
|
||||
func (UnimplementedUserServer) BindMobile(context.Context, *BindMobileReq) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method BindMobile not implemented")
|
||||
}
|
||||
func (UnimplementedUserServer) Client(context.Context, *ClientReq) (*Response, error) {
|
||||
return nil, status.Error(codes.Unimplemented, "method Client not implemented")
|
||||
}
|
||||
@@ -550,6 +566,24 @@ func _User_GetOpenid_Handler(srv interface{}, ctx context.Context, dec func(inte
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _User_BindMobile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(BindMobileReq)
|
||||
if err := dec(in); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if interceptor == nil {
|
||||
return srv.(UserServer).BindMobile(ctx, in)
|
||||
}
|
||||
info := &grpc.UnaryServerInfo{
|
||||
Server: srv,
|
||||
FullMethod: User_BindMobile_FullMethodName,
|
||||
}
|
||||
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
||||
return srv.(UserServer).BindMobile(ctx, req.(*BindMobileReq))
|
||||
}
|
||||
return interceptor(ctx, in, info, handler)
|
||||
}
|
||||
|
||||
func _User_Client_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
||||
in := new(ClientReq)
|
||||
if err := dec(in); err != nil {
|
||||
@@ -823,6 +857,10 @@ var User_ServiceDesc = grpc.ServiceDesc{
|
||||
MethodName: "GetOpenid",
|
||||
Handler: _User_GetOpenid_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "BindMobile",
|
||||
Handler: _User_BindMobile_Handler,
|
||||
},
|
||||
{
|
||||
MethodName: "Client",
|
||||
Handler: _User_Client_Handler,
|
||||
|
||||
Reference in New Issue
Block a user