package com.gxwebsoft.love.param;

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.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 聊天消息表查询参数
 *
 * @author 科技小王子
 * @since 2023-06-10 18:27:25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "ChatMessageParam对象", description = "聊天消息表查询参数")
public class ChatMessageParam extends BaseParam {
    private static final long serialVersionUID = 1L;

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

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

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

    @ApiModelProperty(value = "消息类型")
    @QueryField(type = QueryType.EQ)
    private String type;

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

    @ApiModelProperty(value = "状态, 0在线, 1离线")
    @QueryField(type = QueryType.EQ)
    private Integer status;

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

}
