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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
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.util.Date;
 
/**
 * 后台用户表(NewsAdmin)表实体类
 *
 * @author makejava
 * @since 2022-11-17 11:38:27
 */
@SuppressWarnings("serial")
public class NewsAdmin extends Model<NewsAdmin> {
 
    @ApiModelProperty("主键")
    private Integer id;
    //用户姓名
    @ApiModelProperty("用户姓名")
    private String username;
    //密码
    @ApiModelProperty("密码")
    private String password;
    //头像
    @ApiModelProperty("头像")
    private String icon;
    //邮箱
    @ApiModelProperty("邮箱")
    private String email;
    //备注信息
    @ApiModelProperty("备注信息")
    private String note;
    //创建时间
    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    //帐号启用状态:0->禁用;1->启用
    @ApiModelProperty("帐号启用状态")
    private Integer status;
    // 0->女,1->男
    @ApiModelProperty("性别")
    private Integer sex;
    //手机
    @ApiModelProperty("手机")
    private String mobile;
    //是否为网格管理员:0->不是;1->是
    @ApiModelProperty("是否为管理员")
    private Integer isGrid;
    //警员id
    @ApiModelProperty("警员id")
    private Integer newsPoliceId;
 
 
    public Integer getId() {
        return id;
    }
 
    public void setId(Integer id) {
        this.id = id;
    }
 
    public String getUsername() {
        return username;
    }
 
    public void setUsername(String username) {
        this.username = username;
    }
 
    public String getPassword() {
        return password;
    }
 
    public void setPassword(String password) {
        this.password = password;
    }
 
    public String getIcon() {
        return icon;
    }
 
    public void setIcon(String icon) {
        this.icon = icon;
    }
 
    public String getEmail() {
        return email;
    }
 
    public void setEmail(String email) {
        this.email = email;
    }
 
    public String getNote() {
        return note;
    }
 
    public void setNote(String note) {
        this.note = note;
    }
 
    public Date getCreateTime() {
        return createTime;
    }
 
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
 
    public Integer getStatus() {
        return status;
    }
 
    public void setStatus(Integer status) {
        this.status = status;
    }
 
    public Integer getSex() {
        return sex;
    }
 
    public void setSex(Integer sex) {
        this.sex = sex;
    }
 
    public String getMobile() {
        return mobile;
    }
 
    public void setMobile(String mobile) {
        this.mobile = mobile;
    }
 
    public Integer getIsGrid() {
        return isGrid;
    }
 
    public void setIsGrid(Integer isGrid) {
        this.isGrid = isGrid;
    }
 
    public Integer getNewsPoliceId() {
        return newsPoliceId;
    }
 
    public void setNewsPoliceId(Integer newsPoliceId) {
        this.newsPoliceId = newsPoliceId;
    }
 
    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    }