app-cloudep-comment-server/internal/server/comment/comment_server.go

30 lines
728 B
Go
Raw 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 server
import (
"context"
2025-01-15 05:46:36 +00:00
"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"
2025-01-15 05:17:30 +00:00
)
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)
}