add bookstore example

This commit is contained in:
kevin
2020-09-03 23:26:04 +08:00
parent 167422ac4f
commit 11dd3d75ec
44 changed files with 1741 additions and 121 deletions

View File

@@ -0,0 +1,26 @@
// Code generated by goctl. DO NOT EDIT!
// Source: check.proto
package server
import (
"bookstore/rpc/check/internal/logic"
"bookstore/rpc/check/internal/svc"
check "bookstore/rpc/check/pb"
"context"
)
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)
}