package com.gxwebsoft.common.system.param;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.gxwebsoft.common.core.annotation.QueryField;
import com.gxwebsoft.common.core.annotation.QueryType;
import com.gxwebsoft.common.core.web.BaseParam;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 消息记录表查询参数
 *
 * @author 科技小王子
 * @since 2023-03-22 14:07:26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "NoticeParam对象", description = "消息记录表查询参数")
public class NoticeParam extends BaseParam {
    private static final long serialVersionUID = 1L;

    @Schema(description = "ID")
    @QueryField(type = QueryType.EQ)
    private Integer noticeId;

    @Schema(description = "消息类型")
    private String type;

    @Schema(description = "标题")
    private String title;

    @Schema(description = "图标")
    private String icon;

    @Schema(description = "颜色")
    private String color;

    @Schema(description = "内容")
    private String content;

    @Schema(description = "备注")
    private String comments;

    @Schema(description = "消息来源")
    private String source;

    @Schema(description = "来源记录ID")
    private Integer sourceId;

    @Schema(description = "路由地址")
    private String path;

    @Schema(description = "渠道, 0发送 1回复")
    private Integer channel;

    @Schema(description = "用户ID")
    @QueryField(type = QueryType.EQ)
    private Integer userId;

    @Schema(description = "租户id")
    @QueryField(type = QueryType.EQ)
    private Integer tenantId;

    @Schema(description = "状态, 0待处理, 1已完成")
    @QueryField(type = QueryType.EQ)
    private Integer status;

    @Schema(description = "是否删除, 0否, 1是")
    @QueryField(type = QueryType.EQ)
    private Integer deleted;

    @Schema(description = "昵称")
    @TableField(exist = false)
    private String nickname;

    @Schema(description = "是否已查阅")
    private Integer isRead;

    @Schema(description = "任务状态")
    private Integer progress;

}
