findclueinfologic.go 1014 B

1234567891011121314151617181920212223242526272829303132333435
  1. package logic
  2. import (
  3. "bp.jydev.jianyu360.cn/BaseService/biService/rpc/biservice"
  4. "context"
  5. "github.com/gogf/gf/v2/util/gconv"
  6. "bp.jydev.jianyu360.cn/BaseService/biService/api/internal/svc"
  7. "bp.jydev.jianyu360.cn/BaseService/biService/api/internal/types"
  8. "github.com/zeromicro/go-zero/core/logx"
  9. )
  10. type FindClueInfoLogic struct {
  11. logx.Logger
  12. ctx context.Context
  13. svcCtx *svc.ServiceContext
  14. }
  15. func NewFindClueInfoLogic(ctx context.Context, svcCtx *svc.ServiceContext) *FindClueInfoLogic {
  16. return &FindClueInfoLogic{
  17. Logger: logx.WithContext(ctx),
  18. ctx: ctx,
  19. svcCtx: svcCtx,
  20. }
  21. }
  22. func (l *FindClueInfoLogic) FindClueInfo(req *types.FindClueInfoReq) (resp *types.BiResp, err error) {
  23. // todo: add your logic here and delete this line
  24. res, err := l.svcCtx.BiServiceRpc.FindClueInfo(l.ctx, &biservice.FindClueInfoReq{
  25. UserId: req.UserId,
  26. })
  27. data := gconv.Map(gconv.UnsafeBytesToStr(res.Data))
  28. return &types.BiResp{Error_code: res.ErrorCode, Error_msg: res.ErrorMsg, Data: data}, err
  29. }