67 lines
2.1 KiB
Go
67 lines
2.1 KiB
Go
// Code generated by goctl. DO NOT EDIT.
|
|
// goctl 1.10.1
|
|
// Source: wecom.proto
|
|
|
|
package wecomClient
|
|
|
|
import (
|
|
"context"
|
|
|
|
"lone-services/rpc/wecom/pb"
|
|
|
|
"github.com/zeromicro/go-zero/zrpc"
|
|
"google.golang.org/grpc"
|
|
)
|
|
|
|
type (
|
|
CreateUserReq = wecom.CreateUserReq
|
|
DeleteUserReq = wecom.DeleteUserReq
|
|
ItemsUserReq = wecom.ItemsUserReq
|
|
Response = wecom.Response
|
|
StatusUserReq = wecom.StatusUserReq
|
|
UpdateUserReq = wecom.UpdateUserReq
|
|
|
|
Wecom interface {
|
|
ItemsUsers(ctx context.Context, in *ItemsUserReq, opts ...grpc.CallOption) (*Response, error)
|
|
CreateUser(ctx context.Context, in *CreateUserReq, opts ...grpc.CallOption) (*Response, error)
|
|
UpdateUser(ctx context.Context, in *UpdateUserReq, opts ...grpc.CallOption) (*Response, error)
|
|
StatusUser(ctx context.Context, in *StatusUserReq, opts ...grpc.CallOption) (*Response, error)
|
|
DeleteUser(ctx context.Context, in *DeleteUserReq, opts ...grpc.CallOption) (*Response, error)
|
|
}
|
|
|
|
defaultWecom struct {
|
|
cli zrpc.Client
|
|
}
|
|
)
|
|
|
|
func NewWecom(cli zrpc.Client) Wecom {
|
|
return &defaultWecom{
|
|
cli: cli,
|
|
}
|
|
}
|
|
|
|
func (m *defaultWecom) ItemsUsers(ctx context.Context, in *ItemsUserReq, opts ...grpc.CallOption) (*Response, error) {
|
|
client := wecom.NewWecomClient(m.cli.Conn())
|
|
return client.ItemsUsers(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultWecom) CreateUser(ctx context.Context, in *CreateUserReq, opts ...grpc.CallOption) (*Response, error) {
|
|
client := wecom.NewWecomClient(m.cli.Conn())
|
|
return client.CreateUser(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultWecom) UpdateUser(ctx context.Context, in *UpdateUserReq, opts ...grpc.CallOption) (*Response, error) {
|
|
client := wecom.NewWecomClient(m.cli.Conn())
|
|
return client.UpdateUser(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultWecom) StatusUser(ctx context.Context, in *StatusUserReq, opts ...grpc.CallOption) (*Response, error) {
|
|
client := wecom.NewWecomClient(m.cli.Conn())
|
|
return client.StatusUser(ctx, in, opts...)
|
|
}
|
|
|
|
func (m *defaultWecom) DeleteUser(ctx context.Context, in *DeleteUserReq, opts ...grpc.CallOption) (*Response, error) {
|
|
client := wecom.NewWecomClient(m.cli.Conn())
|
|
return client.DeleteUser(ctx, in, opts...)
|
|
}
|