app-cloudep-comment-server/client/comment/comment.go

40 lines
791 B
Go
Raw Permalink Normal View History

2025-01-15 05:17:30 +00:00
// Code generated by goctl. DO NOT EDIT.
// goctl 1.7.3
// Source: comment.proto
package comment
import (
"context"
2025-01-15 05:46:36 +00:00
"code.30cm.net/digimon/app-cloudep-comment-server/gen_result/pb/comment"
2025-01-15 05:17:30 +00:00
"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...)
}