新字典

This commit is contained in:
2024-03-29 14:42:32 +08:00
parent 1981baeb94
commit d7c1754b6a
9 changed files with 417 additions and 2 deletions

View File

@@ -0,0 +1,82 @@
package cn.ysk.cashier.pojo;
import lombok.Data;
import cn.hutool.core.bean.BeanUtil;
import io.swagger.annotations.ApiModelProperty;
import cn.hutool.core.bean.copier.CopyOptions;
import javax.persistence.*;
import javax.validation.constraints.*;
import java.io.Serializable;
@Entity
@Data
@Table(name="tb_platform_dict")
public class TbPlatformDict implements Serializable {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@Column(name = "`id`")
@ApiModelProperty(value = "id")
private Integer id;
@Column(name = "`name`",nullable = false)
@NotBlank
@ApiModelProperty(value = "描述")
private String name;
@Column(name = "`type`",nullable = false)
@NotBlank
@ApiModelProperty(value = "轮播图;首页小菜单;")
private String type;
@Column(name = "`cover_img`")
@ApiModelProperty(value = "封面图")
private String coverImg;
@Column(name = "`share_img`")
@ApiModelProperty(value = "分享图")
private String shareImg;
@Column(name = "`video`")
@ApiModelProperty(value = "视频URL地址")
private String video;
@Column(name = "`video_cover_img`")
@ApiModelProperty(value = "视频封面图")
private String videoCoverImg;
@Column(name = "`rel_url`")
@ApiModelProperty(value = "相对跳转地址")
private String relUrl;
@Column(name = "`abs_url`")
@ApiModelProperty(value = "绝对跳转地址")
private String absUrl;
@Column(name = "`created_at`")
@ApiModelProperty(value = "创建时间")
private Long createdAt;
@Column(name = "`updated_at`")
@ApiModelProperty(value = "更新时间")
private Long updatedAt;
@Column(name = "`is_show_cash`")
@ApiModelProperty(value = "收银端展示 0:不展示 1:展示")
private Integer isShowCash;
@Column(name = "`is_show_mall`")
@ApiModelProperty(value = "小程序端展示 0:不展示 1:展示")
private Integer isShowMall;
@Column(name = "`is_show_app`")
@ApiModelProperty(value = "APP端展示 0:不展示 1:展示")
private Integer isShowApp;
@Column(name = "`sort`")
@ApiModelProperty(value = "排序")
private Integer sort;
public void copy(TbPlatformDict source){
BeanUtil.copyProperties(source,this, CopyOptions.create().setIgnoreNullValue(true));
}
}