540 lines
21 KiB
Go
540 lines
21 KiB
Go
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
|
|
// versions:
|
|
// - protoc-gen-go-grpc v1.6.2
|
|
// - protoc v3.19.4
|
|
// source: user/user.proto
|
|
|
|
package user
|
|
|
|
import (
|
|
context "context"
|
|
grpc "google.golang.org/grpc"
|
|
codes "google.golang.org/grpc/codes"
|
|
status "google.golang.org/grpc/status"
|
|
)
|
|
|
|
// This is a compile-time assertion to ensure that this generated file
|
|
// is compatible with the grpc package it is being compiled against.
|
|
// Requires gRPC-Go v1.64.0 or later.
|
|
const _ = grpc.SupportPackageIsVersion9
|
|
|
|
const (
|
|
User_Login_FullMethodName = "/user.User/Login"
|
|
User_Info_FullMethodName = "/user.User/Info"
|
|
User_Client_FullMethodName = "/user.User/Client"
|
|
User_UserItems_FullMethodName = "/user.User/UserItems"
|
|
User_UserStatus_FullMethodName = "/user.User/UserStatus"
|
|
User_InternalCreate_FullMethodName = "/user.User/InternalCreate"
|
|
User_InternalCheckCreate_FullMethodName = "/user.User/InternalCheckCreate"
|
|
User_InternalCheckUpdate_FullMethodName = "/user.User/InternalCheckUpdate"
|
|
User_InternalUpdate_FullMethodName = "/user.User/InternalUpdate"
|
|
User_InternalUsersByIds_FullMethodName = "/user.User/InternalUsersByIds"
|
|
User_InternalUpdateMobile_FullMethodName = "/user.User/InternalUpdateMobile"
|
|
User_InternalRevokeBizClient_FullMethodName = "/user.User/InternalRevokeBizClient"
|
|
)
|
|
|
|
// UserClient is the client API for User service.
|
|
//
|
|
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
|
|
type UserClient interface {
|
|
Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*Response, error)
|
|
Info(ctx context.Context, in *InfoReq, 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)
|
|
InternalCreate(ctx context.Context, in *InternalCreateReq, opts ...grpc.CallOption) (*InternalCreateData, error)
|
|
InternalCheckCreate(ctx context.Context, in *InternalCheckCreateReq, opts ...grpc.CallOption) (*InternalCheckCreateData, error)
|
|
InternalCheckUpdate(ctx context.Context, in *InternalCheckUpdateReq, opts ...grpc.CallOption) (*InternalCheckUpdateData, error)
|
|
InternalUpdate(ctx context.Context, in *InternalUpdateReq, opts ...grpc.CallOption) (*InternalUpdateData, error)
|
|
InternalUsersByIds(ctx context.Context, in *InternalUsersByIdsReq, opts ...grpc.CallOption) (*InternalUsersByIdsData, error)
|
|
InternalUpdateMobile(ctx context.Context, in *InternalUpdateMobileReq, opts ...grpc.CallOption) (*InternalUpdateMobileData, error)
|
|
InternalRevokeBizClient(ctx context.Context, in *InternalRevokeBizClientReq, opts ...grpc.CallOption) (*InternalRevokeBizClientData, error)
|
|
}
|
|
|
|
type userClient struct {
|
|
cc grpc.ClientConnInterface
|
|
}
|
|
|
|
func NewUserClient(cc grpc.ClientConnInterface) UserClient {
|
|
return &userClient{cc}
|
|
}
|
|
|
|
func (c *userClient) Login(ctx context.Context, in *LoginReq, opts ...grpc.CallOption) (*Response, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(Response)
|
|
err := c.cc.Invoke(ctx, User_Login_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *userClient) Info(ctx context.Context, in *InfoReq, opts ...grpc.CallOption) (*Response, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(Response)
|
|
err := c.cc.Invoke(ctx, User_Info_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)
|
|
err := c.cc.Invoke(ctx, User_Client_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *userClient) UserItems(ctx context.Context, in *UserItemsReq, opts ...grpc.CallOption) (*Response, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(Response)
|
|
err := c.cc.Invoke(ctx, User_UserItems_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *userClient) UserStatus(ctx context.Context, in *UserStatusReq, opts ...grpc.CallOption) (*Response, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(Response)
|
|
err := c.cc.Invoke(ctx, User_UserStatus_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *userClient) InternalCreate(ctx context.Context, in *InternalCreateReq, opts ...grpc.CallOption) (*InternalCreateData, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(InternalCreateData)
|
|
err := c.cc.Invoke(ctx, User_InternalCreate_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *userClient) InternalCheckCreate(ctx context.Context, in *InternalCheckCreateReq, opts ...grpc.CallOption) (*InternalCheckCreateData, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(InternalCheckCreateData)
|
|
err := c.cc.Invoke(ctx, User_InternalCheckCreate_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *userClient) InternalCheckUpdate(ctx context.Context, in *InternalCheckUpdateReq, opts ...grpc.CallOption) (*InternalCheckUpdateData, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(InternalCheckUpdateData)
|
|
err := c.cc.Invoke(ctx, User_InternalCheckUpdate_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *userClient) InternalUpdate(ctx context.Context, in *InternalUpdateReq, opts ...grpc.CallOption) (*InternalUpdateData, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(InternalUpdateData)
|
|
err := c.cc.Invoke(ctx, User_InternalUpdate_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *userClient) InternalUsersByIds(ctx context.Context, in *InternalUsersByIdsReq, opts ...grpc.CallOption) (*InternalUsersByIdsData, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(InternalUsersByIdsData)
|
|
err := c.cc.Invoke(ctx, User_InternalUsersByIds_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *userClient) InternalUpdateMobile(ctx context.Context, in *InternalUpdateMobileReq, opts ...grpc.CallOption) (*InternalUpdateMobileData, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(InternalUpdateMobileData)
|
|
err := c.cc.Invoke(ctx, User_InternalUpdateMobile_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
func (c *userClient) InternalRevokeBizClient(ctx context.Context, in *InternalRevokeBizClientReq, opts ...grpc.CallOption) (*InternalRevokeBizClientData, error) {
|
|
cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...)
|
|
out := new(InternalRevokeBizClientData)
|
|
err := c.cc.Invoke(ctx, User_InternalRevokeBizClient_FullMethodName, in, out, cOpts...)
|
|
if err != nil {
|
|
return nil, err
|
|
}
|
|
return out, nil
|
|
}
|
|
|
|
// UserServer is the server API for User service.
|
|
// All implementations must embed UnimplementedUserServer
|
|
// for forward compatibility.
|
|
type UserServer interface {
|
|
Login(context.Context, *LoginReq) (*Response, error)
|
|
Info(context.Context, *InfoReq) (*Response, error)
|
|
Client(context.Context, *ClientReq) (*Response, error)
|
|
UserItems(context.Context, *UserItemsReq) (*Response, error)
|
|
UserStatus(context.Context, *UserStatusReq) (*Response, error)
|
|
InternalCreate(context.Context, *InternalCreateReq) (*InternalCreateData, error)
|
|
InternalCheckCreate(context.Context, *InternalCheckCreateReq) (*InternalCheckCreateData, error)
|
|
InternalCheckUpdate(context.Context, *InternalCheckUpdateReq) (*InternalCheckUpdateData, error)
|
|
InternalUpdate(context.Context, *InternalUpdateReq) (*InternalUpdateData, error)
|
|
InternalUsersByIds(context.Context, *InternalUsersByIdsReq) (*InternalUsersByIdsData, error)
|
|
InternalUpdateMobile(context.Context, *InternalUpdateMobileReq) (*InternalUpdateMobileData, error)
|
|
InternalRevokeBizClient(context.Context, *InternalRevokeBizClientReq) (*InternalRevokeBizClientData, error)
|
|
mustEmbedUnimplementedUserServer()
|
|
}
|
|
|
|
// UnimplementedUserServer must be embedded to have
|
|
// forward compatible implementations.
|
|
//
|
|
// NOTE: this should be embedded by value instead of pointer to avoid a nil
|
|
// pointer dereference when methods are called.
|
|
type UnimplementedUserServer struct{}
|
|
|
|
func (UnimplementedUserServer) Login(context.Context, *LoginReq) (*Response, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method Login not implemented")
|
|
}
|
|
func (UnimplementedUserServer) Info(context.Context, *InfoReq) (*Response, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method Info not implemented")
|
|
}
|
|
func (UnimplementedUserServer) Client(context.Context, *ClientReq) (*Response, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method Client not implemented")
|
|
}
|
|
func (UnimplementedUserServer) UserItems(context.Context, *UserItemsReq) (*Response, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method UserItems not implemented")
|
|
}
|
|
func (UnimplementedUserServer) UserStatus(context.Context, *UserStatusReq) (*Response, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method UserStatus not implemented")
|
|
}
|
|
func (UnimplementedUserServer) InternalCreate(context.Context, *InternalCreateReq) (*InternalCreateData, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method InternalCreate not implemented")
|
|
}
|
|
func (UnimplementedUserServer) InternalCheckCreate(context.Context, *InternalCheckCreateReq) (*InternalCheckCreateData, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method InternalCheckCreate not implemented")
|
|
}
|
|
func (UnimplementedUserServer) InternalCheckUpdate(context.Context, *InternalCheckUpdateReq) (*InternalCheckUpdateData, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method InternalCheckUpdate not implemented")
|
|
}
|
|
func (UnimplementedUserServer) InternalUpdate(context.Context, *InternalUpdateReq) (*InternalUpdateData, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method InternalUpdate not implemented")
|
|
}
|
|
func (UnimplementedUserServer) InternalUsersByIds(context.Context, *InternalUsersByIdsReq) (*InternalUsersByIdsData, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method InternalUsersByIds not implemented")
|
|
}
|
|
func (UnimplementedUserServer) InternalUpdateMobile(context.Context, *InternalUpdateMobileReq) (*InternalUpdateMobileData, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method InternalUpdateMobile not implemented")
|
|
}
|
|
func (UnimplementedUserServer) InternalRevokeBizClient(context.Context, *InternalRevokeBizClientReq) (*InternalRevokeBizClientData, error) {
|
|
return nil, status.Error(codes.Unimplemented, "method InternalRevokeBizClient not implemented")
|
|
}
|
|
func (UnimplementedUserServer) mustEmbedUnimplementedUserServer() {}
|
|
func (UnimplementedUserServer) testEmbeddedByValue() {}
|
|
|
|
// UnsafeUserServer may be embedded to opt out of forward compatibility for this service.
|
|
// Use of this interface is not recommended, as added methods to UserServer will
|
|
// result in compilation errors.
|
|
type UnsafeUserServer interface {
|
|
mustEmbedUnimplementedUserServer()
|
|
}
|
|
|
|
func RegisterUserServer(s grpc.ServiceRegistrar, srv UserServer) {
|
|
// If the following call panics, it indicates UnimplementedUserServer was
|
|
// embedded by pointer and is nil. This will cause panics if an
|
|
// unimplemented method is ever invoked, so we test this at initialization
|
|
// time to prevent it from happening at runtime later due to I/O.
|
|
if t, ok := srv.(interface{ testEmbeddedByValue() }); ok {
|
|
t.testEmbeddedByValue()
|
|
}
|
|
s.RegisterService(&User_ServiceDesc, srv)
|
|
}
|
|
|
|
func _User_Login_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(LoginReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(UserServer).Login(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: User_Login_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(UserServer).Login(ctx, req.(*LoginReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _User_Info_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(InfoReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(UserServer).Info(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: User_Info_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(UserServer).Info(ctx, req.(*InfoReq))
|
|
}
|
|
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 {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(UserServer).Client(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: User_Client_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(UserServer).Client(ctx, req.(*ClientReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _User_UserItems_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(UserItemsReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(UserServer).UserItems(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: User_UserItems_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(UserServer).UserItems(ctx, req.(*UserItemsReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _User_UserStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(UserStatusReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(UserServer).UserStatus(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: User_UserStatus_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(UserServer).UserStatus(ctx, req.(*UserStatusReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _User_InternalCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(InternalCreateReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(UserServer).InternalCreate(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: User_InternalCreate_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(UserServer).InternalCreate(ctx, req.(*InternalCreateReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _User_InternalCheckCreate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(InternalCheckCreateReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(UserServer).InternalCheckCreate(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: User_InternalCheckCreate_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(UserServer).InternalCheckCreate(ctx, req.(*InternalCheckCreateReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _User_InternalCheckUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(InternalCheckUpdateReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(UserServer).InternalCheckUpdate(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: User_InternalCheckUpdate_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(UserServer).InternalCheckUpdate(ctx, req.(*InternalCheckUpdateReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _User_InternalUpdate_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(InternalUpdateReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(UserServer).InternalUpdate(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: User_InternalUpdate_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(UserServer).InternalUpdate(ctx, req.(*InternalUpdateReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _User_InternalUsersByIds_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(InternalUsersByIdsReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(UserServer).InternalUsersByIds(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: User_InternalUsersByIds_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(UserServer).InternalUsersByIds(ctx, req.(*InternalUsersByIdsReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _User_InternalUpdateMobile_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(InternalUpdateMobileReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(UserServer).InternalUpdateMobile(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: User_InternalUpdateMobile_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(UserServer).InternalUpdateMobile(ctx, req.(*InternalUpdateMobileReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
func _User_InternalRevokeBizClient_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
|
|
in := new(InternalRevokeBizClientReq)
|
|
if err := dec(in); err != nil {
|
|
return nil, err
|
|
}
|
|
if interceptor == nil {
|
|
return srv.(UserServer).InternalRevokeBizClient(ctx, in)
|
|
}
|
|
info := &grpc.UnaryServerInfo{
|
|
Server: srv,
|
|
FullMethod: User_InternalRevokeBizClient_FullMethodName,
|
|
}
|
|
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
return srv.(UserServer).InternalRevokeBizClient(ctx, req.(*InternalRevokeBizClientReq))
|
|
}
|
|
return interceptor(ctx, in, info, handler)
|
|
}
|
|
|
|
// User_ServiceDesc is the grpc.ServiceDesc for User service.
|
|
// It's only intended for direct use with grpc.RegisterService,
|
|
// and not to be introspected or modified (even as a copy)
|
|
var User_ServiceDesc = grpc.ServiceDesc{
|
|
ServiceName: "user.User",
|
|
HandlerType: (*UserServer)(nil),
|
|
Methods: []grpc.MethodDesc{
|
|
{
|
|
MethodName: "Login",
|
|
Handler: _User_Login_Handler,
|
|
},
|
|
{
|
|
MethodName: "Info",
|
|
Handler: _User_Info_Handler,
|
|
},
|
|
{
|
|
MethodName: "Client",
|
|
Handler: _User_Client_Handler,
|
|
},
|
|
{
|
|
MethodName: "UserItems",
|
|
Handler: _User_UserItems_Handler,
|
|
},
|
|
{
|
|
MethodName: "UserStatus",
|
|
Handler: _User_UserStatus_Handler,
|
|
},
|
|
{
|
|
MethodName: "InternalCreate",
|
|
Handler: _User_InternalCreate_Handler,
|
|
},
|
|
{
|
|
MethodName: "InternalCheckCreate",
|
|
Handler: _User_InternalCheckCreate_Handler,
|
|
},
|
|
{
|
|
MethodName: "InternalCheckUpdate",
|
|
Handler: _User_InternalCheckUpdate_Handler,
|
|
},
|
|
{
|
|
MethodName: "InternalUpdate",
|
|
Handler: _User_InternalUpdate_Handler,
|
|
},
|
|
{
|
|
MethodName: "InternalUsersByIds",
|
|
Handler: _User_InternalUsersByIds_Handler,
|
|
},
|
|
{
|
|
MethodName: "InternalUpdateMobile",
|
|
Handler: _User_InternalUpdateMobile_Handler,
|
|
},
|
|
{
|
|
MethodName: "InternalRevokeBizClient",
|
|
Handler: _User_InternalRevokeBizClient_Handler,
|
|
},
|
|
},
|
|
Streams: []grpc.StreamDesc{},
|
|
Metadata: "user/user.proto",
|
|
}
|