package com.ycl.entity; import com.baomidou.mybatisplus.extension.activerecord.Model; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; import java.util.List; /** * 栏目表(NewsColumn)表实体类 * * @author makejava * @since 2022-11-17 11:38:27 */ @SuppressWarnings("serial") public class NewsColumn extends Model { //id @ApiModelProperty("主键") private Integer id; //栏目名称 @ApiModelProperty("栏目名称") private String name; public Integer getId() { return id; } public void setId(Integer id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } /** * 获取主键值 * * @return 主键值 */ @Override protected Serializable pkVal() { return this.id; } }