-
Notifications
You must be signed in to change notification settings - Fork 0
/
handler.go
22 lines (18 loc) · 843 Bytes
/
handler.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package main
import (
"context"
"github.com/PICOF/simple-tiktok/cmd/comment/commentaction"
"github.com/PICOF/simple-tiktok/kitex_gen/comment"
)
// CommentServiceImpl implements the last service interface defined in the IDL.
type CommentServiceImpl struct{}
// CommentAction implements the CommentServiceImpl interface.
func (s *CommentServiceImpl) CommentAction(ctx context.Context, request *comment.CommentRequest) (resp *comment.CommentResponse, err error) {
// TODO: Your code here...
return commentaction.ActionHandler(ctx, request)
}
// GetCommentList implements the CommentServiceImpl interface.
func (s *CommentServiceImpl) GetCommentList(ctx context.Context, request *comment.CommentListRequest) (resp *comment.CommentListResponse, err error) {
// TODO: Your code here...
return commentaction.GetCommentList(ctx, request)
}