You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
556 B
Go
28 lines
556 B
Go
// Code generated by goctl. DO NOT EDIT!
|
|
// Source: check.proto
|
|
|
|
package server
|
|
|
|
import (
|
|
"context"
|
|
|
|
"bookstore/rpc/check/internal/logic"
|
|
check "bookstore/rpc/check/internal/pb"
|
|
"bookstore/rpc/check/internal/svc"
|
|
)
|
|
|
|
type CheckerServer struct {
|
|
svcCtx *svc.ServiceContext
|
|
}
|
|
|
|
func NewCheckerServer(svcCtx *svc.ServiceContext) *CheckerServer {
|
|
return &CheckerServer{
|
|
svcCtx: svcCtx,
|
|
}
|
|
}
|
|
|
|
func (s *CheckerServer) Check(ctx context.Context, in *check.CheckReq) (*check.CheckResp, error) {
|
|
l := logic.NewCheckLogic(ctx, s.svcCtx)
|
|
return l.Check(in)
|
|
}
|