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 AllProjectExportLogic struct { logx.Logger ctx context.Context svcCtx *svc.ServiceContext } func NewAllProjectExportLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AllProjectExportLogic { return &AllProjectExportLogic{ Logger: logx.WithContext(ctx), ctx: ctx, svcCtx: svcCtx, } } func (l *AllProjectExportLogic) AllProjectExport(req *types.ExportReq) (resp *types.BiResp, err error) { // todo: add your logic here and delete this line res, err := l.svcCtx.BiServiceRpc.AllProjectExport(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 }