docgetchecklogic.go 776 B

1234567891011121314151617181920212223242526272829303132
  1. package logic
  2. import (
  3. "context"
  4. stdlibService "app.yhyue.com/moapp/jy_docs/services/stdlib"
  5. "app.yhyue.com/moapp/jy_docs/rpc/stdlib/internal/svc"
  6. "app.yhyue.com/moapp/jy_docs/rpc/stdlib/stdlib"
  7. "github.com/tal-tech/go-zero/core/logx"
  8. )
  9. type DocGetCheckLogic struct {
  10. ctx context.Context
  11. svcCtx *svc.ServiceContext
  12. logx.Logger
  13. }
  14. func NewDocGetCheckLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DocGetCheckLogic {
  15. return &DocGetCheckLogic{
  16. ctx: ctx,
  17. svcCtx: svcCtx,
  18. Logger: logx.WithContext(ctx),
  19. }
  20. }
  21. func (l *DocGetCheckLogic) DocGetCheck(in *stdlib.DocGetCheckReq) (*stdlib.DocGetCheckResp, error) {
  22. // todo: add your logic here and delete this line
  23. res := stdlibService.DocGetCheck(in.DocId, in.UserId, in.AppId)
  24. return &res, nil
  25. }