30 lines
728 B
Go
30 lines
728 B
Go
// Code generated by goctl. DO NOT EDIT.
|
|
// goctl 1.7.3
|
|
// Source: comment.proto
|
|
|
|
package server
|
|
|
|
import (
|
|
"context"
|
|
|
|
"code.30cm.net/digimon/app-cloudep-comment-server/gen_result/pb/comment"
|
|
commentlogic "code.30cm.net/digimon/app-cloudep-comment-server/internal/logic/comment"
|
|
"code.30cm.net/digimon/app-cloudep-comment-server/internal/svc"
|
|
)
|
|
|
|
type CommentServer struct {
|
|
svcCtx *svc.ServiceContext
|
|
comment.UnimplementedCommentServer
|
|
}
|
|
|
|
func NewCommentServer(svcCtx *svc.ServiceContext) *CommentServer {
|
|
return &CommentServer{
|
|
svcCtx: svcCtx,
|
|
}
|
|
}
|
|
|
|
func (s *CommentServer) Empty(ctx context.Context, in *comment.NoneReq) (*comment.OKResp, error) {
|
|
l := commentlogic.NewEmptyLogic(ctx, s.svcCtx)
|
|
return l.Empty(in)
|
|
}
|