package com.fs.hospital580.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 商品推送记录
 * </p>
 *
 * @author zhangqin
 * @since 2025-09-26
 */
@Getter
@Setter
@TableName("fs_store_hospital580_product_push_scrm")
@ApiModel(value = "FsStoreHospital580ProductPushScrmEntity对象", description = "商品推送记录")
public class Hospital580ProductPushScrmEntity extends Model<Hospital580ProductPushScrmEntity> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("商品id")
    @TableField("product_id")
    private Long productId;

    @ApiModelProperty("推送状态 0推送中1成功2失败")
    @TableField("push_status")
    private Byte pushStatus;

    @ApiModelProperty("失败原因")
    @TableField("err_msg")
    private String errMsg;

    @ApiModelProperty("推送时间")
    @TableField(value = "create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("收到结果时间")
    @TableField(value = "update_time")
    private LocalDateTime updateTime;

    @ApiModelProperty("请求id")
    @TableField("request_id")
    private Long requestId;

    @Override
    public Serializable pkVal() {
        return this.id;
    }
}
