allinfoexportlogic.go 963 B

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