package logic import ( "context" "jyBXSubscribe/rpc/model" "jyBXSubscribe/rpc/internal/svc" "jyBXSubscribe/rpc/type/bxsubscribe" "github.com/zeromicro/go-zero/core/logx" ) type SetReadLogic struct { ctx context.Context svcCtx *svc.ServiceContext logx.Logger } func NewSetReadLogic(ctx context.Context, svcCtx *svc.ServiceContext) *SetReadLogic { return &SetReadLogic{ ctx: ctx, svcCtx: svcCtx, Logger: logx.WithContext(ctx), } } // 推送数据浏览状态修改 func (l *SetReadLogic) SetRead(in *bxsubscribe.SetReadReq) (*bxsubscribe.StatusResp, error) { // todo: add your logic here and delete this line resp := &bxsubscribe.StatusResp{} model.NewSubscribePush(in.UserType).SetRead(in.NewUserId, in.GetVsid(), in.UserId, in.EntUserId, in.EntId, in.IsEnt) return resp, nil }