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 AutoFollowLogic struct { logx.Logger ctx context.Context svcCtx *svc.ServiceContext } func NewAutoFollowLogic(ctx context.Context, svcCtx *svc.ServiceContext) *AutoFollowLogic { return &AutoFollowLogic{ Logger: logx.WithContext(ctx), ctx: ctx, svcCtx: svcCtx, } } func (l *AutoFollowLogic) AutoFollow(req *types.CallReq) (resp *types.BiResp, err error) { // todo: add your logic here and delete this line callresp, err := l.svcCtx.BiServiceRpc.AutoFollow(l.ctx, &biservice.CallReq{ PositionId: req.PositionId, Phone: req.Phone, }) return &types.BiResp{Error_code: 1, Data: callresp.Data}, err }