package com.gxwebsoft.oa.param;

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

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

    @ApiModelProperty(value = "ID")
    @QueryField(type = QueryType.EQ)
    private Integer noticeId;

    @ApiModelProperty(value = "消息类型")
    private String type;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "图标")
    private String icon;

    @ApiModelProperty(value = "颜色")
    private String color;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "备注")
    private String comments;

    @ApiModelProperty(value = "消息来源")
    private String source;

    @ApiModelProperty(value = "来源记录ID")
    private Integer sourceId;

    @ApiModelProperty(value = "路由地址")
    private String path;

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

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

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

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

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

    @ApiModelProperty(value = "昵称")
    @TableField(exist = false)
    private String nickname;

}
