46 lines
1.3 KiB
Go
46 lines
1.3 KiB
Go
|
// Code generated by goctl. DO NOT EDIT.
|
||
|
// goctl 1.7.6
|
||
|
// Source: user_management.proto
|
||
|
|
||
|
package user_management_client
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"gitea.youtukeji.com.cn/xiabin/youtu_grpc/user_management/user_management"
|
||
|
|
||
|
"github.com/zeromicro/go-zero/zrpc"
|
||
|
"google.golang.org/grpc"
|
||
|
)
|
||
|
|
||
|
type (
|
||
|
Request = user_management.Request
|
||
|
Response = user_management.Response
|
||
|
SetAppUserRequest = user_management.SetAppUserRequest
|
||
|
|
||
|
UserManagement interface {
|
||
|
Ping(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error)
|
||
|
SetAppAccount(ctx context.Context, in *SetAppUserRequest, opts ...grpc.CallOption) (*Response, error)
|
||
|
}
|
||
|
|
||
|
defaultUserManagement struct {
|
||
|
cli zrpc.Client
|
||
|
}
|
||
|
)
|
||
|
|
||
|
func NewUserManagement(cli zrpc.Client) UserManagement {
|
||
|
return &defaultUserManagement{
|
||
|
cli: cli,
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func (m *defaultUserManagement) Ping(ctx context.Context, in *Request, opts ...grpc.CallOption) (*Response, error) {
|
||
|
client := user_management.NewUserManagementClient(m.cli.Conn())
|
||
|
return client.Ping(ctx, in, opts...)
|
||
|
}
|
||
|
|
||
|
func (m *defaultUserManagement) SetAppAccount(ctx context.Context, in *SetAppUserRequest, opts ...grpc.CallOption) (*Response, error) {
|
||
|
client := user_management.NewUserManagementClient(m.cli.Conn())
|
||
|
return client.SetAppAccount(ctx, in, opts...)
|
||
|
}
|