1 /* 2 * Copyright (c) 2023 Hunan OpenValley Digital Industry Development Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16 package org.jeecg.modules.sample.entity; 17 18 import com.baomidou.mybatisplus.annotation.IdType; 19 import com.baomidou.mybatisplus.annotation.TableId; 20 import com.baomidou.mybatisplus.annotation.TableLogic; 21 import io.swagger.annotations.ApiModel; 22 import io.swagger.annotations.ApiModelProperty; 23 import lombok.Data; 24 import lombok.EqualsAndHashCode; 25 import lombok.experimental.Accessors; 26 import org.jeecg.common.system.base.entity.JeecgEntity; 27 import org.jeecgframework.poi.excel.annotation.Excel; 28 29 /** 30 * 视频实体类 31 * 32 * @since:2023-06-10 33 * @Version:V2.0 34 */ 35 @Data 36 @EqualsAndHashCode(callSuper = false) 37 @Accessors(chain = true) 38 @ApiModel(value = "视频对象", description = "视频对象") 39 public class OhSampleShortVideo extends JeecgEntity { 40 41 /** 42 * id 43 */ 44 @TableId(type = IdType.ASSIGN_ID) 45 private String id; 46 47 /** 48 * 视频名称 49 */ 50 @Excel(name = "视频名称", width = 100) 51 @ApiModelProperty(value = "视频名称", required = true) 52 private String name; 53 54 /** 55 * 视频链接 56 */ 57 @Excel(name = "视频链接") 58 @ApiModelProperty(value = "视频链接", required = true) 59 private String url; 60 61 /** 62 * 视频封面 63 */ 64 @Excel(name = "视频封面") 65 @ApiModelProperty(value = "视频封面", required = true) 66 private String cover; 67 68 /** 69 * 视频描述 70 */ 71 @Excel(name = "视频描述") 72 @ApiModelProperty(value = "视频描述", required = true) 73 private String remark; 74 75 /** 76 * 状态(0:未审核 1:审核通过 2:审核不通过 ) 77 */ 78 @Excel(name = "状态", width = 15) 79 @ApiModelProperty(value = "状态(0:未审核 1:审核通过 2:审核不通过 )") 80 private Integer status; 81 82 /** 83 * 删除状态(0,正常,1已删除) 84 */ 85 @Excel(name = "删除状态", width = 15, dicCode = "del_flag") 86 @TableLogic 87 private Integer delFlag; 88 } 89