package logic import ( "context" "jyBXSubscribe/rpc/bxsubscribe" "jyBXSubscribe/api/internal/svc" "jyBXSubscribe/api/internal/types" "github.com/zeromicro/go-zero/core/logx" ) type GetPushSetLogic struct { logx.Logger ctx context.Context svcCtx *svc.ServiceContext } func NewGetPushSetLogic(ctx context.Context, svcCtx *svc.ServiceContext) *GetPushSetLogic { return &GetPushSetLogic{ Logger: logx.WithContext(ctx), ctx: ctx, svcCtx: svcCtx, } } func (l *GetPushSetLogic) GetPushSet(req *types.GetUserReq) (*types.CommonResp, error) { // todo: add your logic here and delete this line res, _ := l.svcCtx.Suscribe.GetKey(l.ctx, &bxsubscribe.GetKeyReq{ UserId: req.UserId, EntId: req.EntId, EntUserId: req.EntUserId, PositionType: req.PositionType, }) return &types.CommonResp{ Err_code: res.ErrCode, Err_msg: res.ErrMsg, Data: res, }, nil }