package com.gxwebsoft.shop.param;

import java.math.BigDecimal;
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.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 聊天消息表查询参数
 *
 * @author 科技小王子
 * @since 2025-01-11 10:45:12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@JsonInclude(JsonInclude.Include.NON_NULL)
@Schema(name = "ShopChatMessageParam对象", description = "聊天消息表查询参数")
public class ShopChatMessageParam extends BaseParam {
    private static final long serialVersionUID = 1L;

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

    @Schema(description = "发送人ID")
    @QueryField(type = QueryType.EQ)
    private Integer formUserId;

    @Schema(description = "接收人ID")
    @QueryField(type = QueryType.EQ)
    private Integer toUserId;

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

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

    @Schema(description = "屏蔽接收方")
    @QueryField(type = QueryType.EQ)
    private Integer sideTo;

    @Schema(description = "屏蔽发送方")
    @QueryField(type = QueryType.EQ)
    private Integer sideFrom;

    @Schema(description = "是否撤回")
    @QueryField(type = QueryType.EQ)
    private Integer withdraw;

    @Schema(description = "文件信息")
    private String fileInfo;

    @Schema(description = "存在联系方式")
    @QueryField(type = QueryType.EQ)
    private Integer hasContact;

    @Schema(description = "排序号")
    @QueryField(type = QueryType.EQ)
    private Integer sortNumber;

    @Schema(description = "状态, 0未读, 1已读")
    @QueryField(type = QueryType.EQ)
    private Integer status;

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

}
