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