package logic import ( "context" "log" stdlibService "app.yhyue.com/moapp/jy_docs/services/stdlib" "app.yhyue.com/moapp/jy_docs/rpc/stdlib/internal/svc" "app.yhyue.com/moapp/jy_docs/rpc/stdlib/stdlib" "github.com/zeromicro/go-zero/core/logx" ) type DocGetCheckLogic struct { ctx context.Context svcCtx *svc.ServiceContext logx.Logger } func NewDocGetCheckLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DocGetCheckLogic { return &DocGetCheckLogic{ ctx: ctx, svcCtx: svcCtx, Logger: logx.WithContext(ctx), } } func (l *DocGetCheckLogic) DocGetCheck(in *stdlib.DocGetCheckReq) (*stdlib.DocGetCheckResp, error) { // todo: add your logic here and delete this line res := stdlibService.DocGetCheck(in.DocId, in.UserId, in.AppId, in.IsBuyDetail) log.Println("res ", res) return &res, nil }