fangyuan
2022-11-22 b1516fedd7deedb61641321158fce862f77b4b4d
ycl-platform/src/main/java/com/ycl/entity/NewsColumn.java
@@ -1,47 +1,51 @@
package com.ycl.entity;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
/**
 * 栏目表(NewsColumn)表实体类
 *
 * @author makejava
 * @since 2022-11-16 16:52:30
 */
@SuppressWarnings("serial")
public class NewsColumn extends Model<NewsColumn> {
    //id
    private Integer id;
    //栏目名称
    private String name;
    public Object 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;
    }
    }
package com.ycl.entity;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
/**
 * 栏目表(NewsColumn)表实体类
 *
 * @author makejava
 * @since 2022-11-17 11:38:27
 */
@SuppressWarnings("serial")
public class NewsColumn extends Model<NewsColumn> {
    //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;
    }
    }