123456789101112131415161718192021222324252627282930313233343536373839 |
- 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 AddProjectReqLogic struct {
- logx.Logger
- ctx context.Context
- svcCtx *svc.ServiceContext
- }
- func NewAddProjectReqLogic(ctx context.Context, svcCtx *svc.ServiceContext) AddProjectReqLogic {
- return AddProjectReqLogic{
- Logger: logx.WithContext(ctx),
- ctx: ctx,
- svcCtx: svcCtx,
- }
- }
- func (l *AddProjectReqLogic) AddProjectReq(req types.AddProjectReq) (*types.Resp, error) {
- // todo: add your logic here and delete this line
- res, err := l.svcCtx.BiServiceRpc.AddProject(l.ctx, &biservice.AddProjectReq{
- InfoId: req.InfoId,
- Source: req.Source,
- PositionId: req.PositionId,
- PositionType: req.PositionType,
- AccountId: req.AccountId,
- CompanyName: req.CompanyName,
- UserId: req.UserId,
- UserName: req.UserName,
- })
- return &types.Resp{Error_code: res.ErrorCode, Error_msg: res.ErrorMsg, Data: res.Data}, err
- }
|