package logic import ( util "bp.jydev.jianyu360.cn/SocialPlatform/messageCenter/entity" "bp.jydev.jianyu360.cn/SocialPlatform/messageCenter/rpc/messagecenter/internal/svc" "bp.jydev.jianyu360.cn/SocialPlatform/messageCenter/rpc/messagecenter/messagecenter" "bp.jydev.jianyu360.cn/SocialPlatform/messageCenter/service" "context" "github.com/zeromicro/go-zero/core/logx" ) type UpdateReadByIdLogic struct { ctx context.Context svcCtx *svc.ServiceContext logx.Logger } func NewUpdateReadByIdLogic(ctx context.Context, svcCtx *svc.ServiceContext) *UpdateReadByIdLogic { return &UpdateReadByIdLogic{ ctx: ctx, svcCtx: svcCtx, Logger: logx.WithContext(ctx), } } // 根据消息修改已读状态 func (l *UpdateReadByIdLogic) UpdateReadById(in *messagecenter.ReadStateReq) (*messagecenter.CurrencyResp, error) { // todo: add your logic here and delete this line m := service.MessaggeService{} m.UpdateReadById(in) error_message := "" error_code := util.SUCCESS_CODE return &messagecenter.CurrencyResp{ ErrorCode: error_code, ErrorMsg: error_message, }, nil }