docgetchecklogic.go 810 B

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