package com.yiqi.app.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.yiqi.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.yiqi.common.core.domain.BaseEntity;
import lombok.Data;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import java.util.Date;

/**
 * 商品收藏记录对象 goods_collect
 *
 * @author xiaohei
 * @date 2023-10-30
 */
@ApiModel("商品收藏记录")
@TableName("app_goods_collect")
@Data
public class AppGoodsCollect {
    private static final long serialVersionUID=1L;

    /** 主键ID */
    @ApiModelProperty("主键ID")
    @TableId(type = IdType.AUTO)

    private Long id;

    /** 商品ID */
    @Excel(name = "商品ID")
    @ApiModelProperty("商品ID")

    private Long goodsId;

    /** 用户ID */
    @Excel(name = "用户ID")
    @ApiModelProperty("用户ID")

    private Long appUserId;

    /** 创建时间 */
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;


}
