package com.ylx.message.domain.dto;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ylx.message.domain.vo.MessageDetailVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

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

@Data
@ApiModel("获取指定分类下的消息详情列表DTO")
public class MessageDetailDTO extends Page<MessageDetailVO> implements Serializable {
    private static final long serialVersionUID = 6060809754656871634L;

    @NotNull(message = "分类code不能为空")
    @ApiModelProperty("分类code")
    private String categoryCode;

    @ApiModelProperty("用户ID")
    private Long userId;

}
