package logic import ( "context" "bp.jydev.jianyu360.cn/BaseService/biService/rpc/biservice" "bp.jydev.jianyu360.cn/BaseService/biService/api/internal/svc" "bp.jydev.jianyu360.cn/BaseService/biService/api/internal/types" "github.com/zeromicro/go-zero/core/logx" ) type AllInfoExportLogic struct { logx.Logger ctx context.Context svcCtx *svc.ServiceContext } func NewAllInfoExportLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AllInfoExportLogic { return &AllInfoExportLogic{ Logger: logx.WithContext(ctx), ctx: ctx, svcCtx: svcCtx, } } func (l *AllInfoExportLogic) AllInfoExport(req *types.ExportReq) (resp *types.BiResp, err error) { // todo: add your logic here and delete this line res, err := l.svcCtx.BiServiceRpc.AllInfoExport(l.ctx, &biservice.ExportReq{ Mail: req.Mail, Mapping: req.Mapping, PositionId: req.PositionId, }) return &types.BiResp{Error_code: res.ErrorCode, Error_msg: res.ErrorMsg}, err }