40 lines
791 B
Go
40 lines
791 B
Go
// Code generated by goctl. DO NOT EDIT.
|
|
// goctl 1.7.3
|
|
// Source: comment.proto
|
|
|
|
package comment
|
|
|
|
import (
|
|
"context"
|
|
|
|
"code.30cm.net/digimon/app-cloudep-comment-server/gen_result/pb/comment"
|
|
|
|
"github.com/zeromicro/go-zero/zrpc"
|
|
"google.golang.org/grpc"
|
|
)
|
|
|
|
type (
|
|
NoneReq = comment.NoneReq
|
|
OKResp = comment.OKResp
|
|
Pager = comment.Pager
|
|
|
|
Comment interface {
|
|
Empty(ctx context.Context, in *NoneReq, opts ...grpc.CallOption) (*OKResp, error)
|
|
}
|
|
|
|
defaultComment struct {
|
|
cli zrpc.Client
|
|
}
|
|
)
|
|
|
|
func NewComment(cli zrpc.Client) Comment {
|
|
return &defaultComment{
|
|
cli: cli,
|
|
}
|
|
}
|
|
|
|
func (m *defaultComment) Empty(ctx context.Context, in *NoneReq, opts ...grpc.CallOption) (*OKResp, error) {
|
|
client := comment.NewCommentClient(m.cli.Conn())
|
|
return client.Empty(ctx, in, opts...)
|
|
}
|