package cn.axzo.msg.center.api.request;

import com.alibaba.fastjson.JSON;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @description
 *   将个人按模块分组的所有未读消息改为已读
 *
 * @author cold_blade
 * @date 2023/9/13
 * @version 1.0
 */
@Setter
@Getter
public class MessageReadAllReq implements Serializable {

    private static final long serialVersionUID = 1507456905431377437L;

    /**
     * 自然人id，[用户信息,前端开发不用关注]
     */
    @NotNull(message = "personId is required")
    private Long personId;
    /**
     * 模块id
     */
    private String moduleName;
    /**
     * 消息id
     */
    private Long msgId;

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
