2025-02-21 20:05:47 +08:00

188 lines
3.8 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package com.syzb.common.entity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* <p>
* 广告位
* </p>
*
* @author helloSyzb
* @since 2022-09-26
*/
public class Advert implements Serializable {
/**
* ID
*/
@TableId(value = "id", type = IdType.AUTO)
private Integer id;
/**
* 位置 1:投顾首页 2:App首页 3:小程序首页
*/
private Integer position;
/**
* 权重
*/
private Integer weight;
/**
* 产品类型0投顾 1观点包 2单篇观点 3视频 5交易圈 6图文直播间 7组合 8锦囊 9套餐产品 10H5 21三方产品-增值产品 22三方产品-课程 23三方产品-ETF专区 24三方产品-选股工具 25三方产品-小飞机理财 31课程包 32课程
*/
@TableField("product_type")
private Integer productType;
/**
* 产品ID
*/
@TableField("product_id")
private Integer productId;
/**
* 名称 仅H5类型
*/
private String name;
/**
* URL 仅H5类型
*/
private String url;
/**
* 图片URL
*/
@TableField("img_url")
private String imgUrl;
/**
* 创建人ID
*/
@TableField("create_user_id")
private Integer createUserId;
/**
* 创建时间
*/
@TableField("create_time")
private LocalDateTime createTime;
/**
* 修改时间
*/
@TableField("update_time")
private LocalDateTime updateTime;
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public Integer getPosition() {
return position;
}
public void setPosition(Integer position) {
this.position = position;
}
public Integer getWeight() {
return weight;
}
public void setWeight(Integer weight) {
this.weight = weight;
}
public Integer getProductType() {
return productType;
}
public void setProductType(Integer productType) {
this.productType = productType;
}
public Integer getProductId() {
return productId;
}
public void setProductId(Integer productId) {
this.productId = productId;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getUrl() {
return url;
}
public void setUrl(String url) {
this.url = url;
}
public String getImgUrl() {
return imgUrl;
}
public void setImgUrl(String imgUrl) {
this.imgUrl = imgUrl;
}
public Integer getCreateUserId() {
return createUserId;
}
public void setCreateUserId(Integer createUserId) {
this.createUserId = createUserId;
}
public LocalDateTime getCreateTime() {
return createTime;
}
public void setCreateTime(LocalDateTime createTime) {
this.createTime = createTime;
}
public LocalDateTime getUpdateTime() {
return updateTime;
}
public void setUpdateTime(LocalDateTime updateTime) {
this.updateTime = updateTime;
}
@Override
public String toString() {
return "Advert{" +
"id=" + id +
", position=" + position +
", weight=" + weight +
", productType=" + productType +
", productId=" + productId +
", name=" + name +
", url=" + url +
", imgUrl=" + imgUrl +
", createUserId=" + createUserId +
", createTime=" + createTime +
", updateTime=" + updateTime +
"}";
}
}