fangyuan
2023-01-16 ecad870fe1896c8c3e48506d50bb5818974253bf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
package com.ycl.entity;
 
 
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
 
import java.io.Serializable;
import java.sql.Date;
import java.util.List;
 
/**
 * 频道表(NewsChannel)表实体类
 *
 * @author makejava
 * @since 2022-11-17 11:38:27
 */
@SuppressWarnings("serial")
public class NewsChannel extends Model<NewsChannel> {
    //id
    @ApiModelProperty("主键")
    private Integer id;
    //频道名称
    @ApiModelProperty("频道名称")
    private String name;
    //频道编码ps名称首字母
    @ApiModelProperty("频道编码")
    private String code;
    //创建时间
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
 
    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;
    }
 
    public String getCode() {
        return code;
    }
 
    public void setCode(String code) {
        this.code = code;
    }
 
    public Date getCreateTime() {
        return createTime;
    }
 
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
 
    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    }