40 lines
885 B
Go
40 lines
885 B
Go
// Code generated by goctl. DO NOT EDIT.
|
|
// Source: pcm-hanwuji.proto
|
|
|
|
package hanwujiclient
|
|
|
|
import (
|
|
"context"
|
|
|
|
"PCM/adaptor/PCM-AI/PCM-HANWUJI/rpc/hanwuji"
|
|
|
|
"github.com/zeromicro/go-zero/zrpc"
|
|
"google.golang.org/grpc"
|
|
)
|
|
|
|
type (
|
|
CreateDataSetReq = hanwuji.CreateDataSetReq
|
|
CreateDataSetResq = hanwuji.CreateDataSetResq
|
|
|
|
Hanwuji interface {
|
|
// get modelarts Token
|
|
CreateDataSet(ctx context.Context, in *CreateDataSetReq, opts ...grpc.CallOption) (*CreateDataSetResq, error)
|
|
}
|
|
|
|
defaultHanwuji struct {
|
|
cli zrpc.Client
|
|
}
|
|
)
|
|
|
|
func NewHanwuji(cli zrpc.Client) Hanwuji {
|
|
return &defaultHanwuji{
|
|
cli: cli,
|
|
}
|
|
}
|
|
|
|
// get modelarts Token
|
|
func (m *defaultHanwuji) CreateDataSet(ctx context.Context, in *CreateDataSetReq, opts ...grpc.CallOption) (*CreateDataSetResq, error) {
|
|
client := hanwuji.NewHanwujiClient(m.cli.Conn())
|
|
return client.CreateDataSet(ctx, in, opts...)
|
|
}
|