checkerserver.go 544 B

123456789101112131415161718192021222324252627
  1. // Code generated by goctl. DO NOT EDIT!
  2. // Source: check.proto
  3. package server
  4. import (
  5. "context"
  6. "bookstore/rpc/check/check"
  7. "bookstore/rpc/check/internal/logic"
  8. "bookstore/rpc/check/internal/svc"
  9. )
  10. type CheckerServer struct {
  11. svcCtx *svc.ServiceContext
  12. }
  13. func NewCheckerServer(svcCtx *svc.ServiceContext) *CheckerServer {
  14. return &CheckerServer{
  15. svcCtx: svcCtx,
  16. }
  17. }
  18. func (s *CheckerServer) Check(ctx context.Context, in *check.CheckReq) (*check.CheckResp, error) {
  19. l := logic.NewCheckLogic(ctx, s.svcCtx)
  20. return l.Check(in)
  21. }