Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenjunxiong
guns-vip
Commits
19b9ca4b
Commit
19b9ca4b
authored
Jun 20, 2017
by
naan1993
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加model的注释
parent
82555d06
Show whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
217 additions
and
46 deletions
+217
-46
src/main/java/com/stylefeng/guns/common/persistence/dao/DeptMapper.java
+2
-2
src/main/java/com/stylefeng/guns/common/persistence/dao/DictMapper.java
+2
-2
src/main/java/com/stylefeng/guns/common/persistence/dao/LoginLogMapper.java
+2
-2
src/main/java/com/stylefeng/guns/common/persistence/dao/MenuMapper.java
+2
-2
src/main/java/com/stylefeng/guns/common/persistence/dao/NoticeMapper.java
+2
-2
src/main/java/com/stylefeng/guns/common/persistence/dao/OperationLogMapper.java
+2
-2
src/main/java/com/stylefeng/guns/common/persistence/dao/RelationMapper.java
+2
-2
src/main/java/com/stylefeng/guns/common/persistence/dao/RoleMapper.java
+2
-2
src/main/java/com/stylefeng/guns/common/persistence/dao/UserMapper.java
+2
-2
src/main/java/com/stylefeng/guns/common/persistence/model/Dept.java
+23
-2
src/main/java/com/stylefeng/guns/common/persistence/model/Dict.java
+17
-2
src/main/java/com/stylefeng/guns/common/persistence/model/LoginLog.java
+27
-5
src/main/java/com/stylefeng/guns/common/persistence/model/Menu.java
+11
-2
src/main/java/com/stylefeng/guns/common/persistence/model/Notice.java
+3
-3
src/main/java/com/stylefeng/guns/common/persistence/model/OperationLog.java
+33
-5
src/main/java/com/stylefeng/guns/common/persistence/model/Relation.java
+11
-2
src/main/java/com/stylefeng/guns/common/persistence/model/Role.java
+23
-2
src/main/java/com/stylefeng/guns/common/persistence/model/User.java
+51
-5
No files found.
src/main/java/com/stylefeng/guns/common/persistence/dao/DeptMapper.java
View file @
19b9ca4b
...
@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
...
@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
/**
/**
* <p>
* <p>
* Mapper 接口
*
部门表
Mapper 接口
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-06-
13
* @since 2017-06-
20
*/
*/
public
interface
DeptMapper
extends
BaseMapper
<
Dept
>
{
public
interface
DeptMapper
extends
BaseMapper
<
Dept
>
{
...
...
src/main/java/com/stylefeng/guns/common/persistence/dao/DictMapper.java
View file @
19b9ca4b
...
@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
...
@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
/**
/**
* <p>
* <p>
* Mapper 接口
*
字典表
Mapper 接口
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-06-
13
* @since 2017-06-
20
*/
*/
public
interface
DictMapper
extends
BaseMapper
<
Dict
>
{
public
interface
DictMapper
extends
BaseMapper
<
Dict
>
{
...
...
src/main/java/com/stylefeng/guns/common/persistence/dao/LoginLogMapper.java
View file @
19b9ca4b
...
@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
...
@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
/**
/**
* <p>
* <p>
* Mapper 接口
*
登录记录
Mapper 接口
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-06-
13
* @since 2017-06-
20
*/
*/
public
interface
LoginLogMapper
extends
BaseMapper
<
LoginLog
>
{
public
interface
LoginLogMapper
extends
BaseMapper
<
LoginLog
>
{
...
...
src/main/java/com/stylefeng/guns/common/persistence/dao/MenuMapper.java
View file @
19b9ca4b
...
@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
...
@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
/**
/**
* <p>
* <p>
* Mapper 接口
*
菜单表
Mapper 接口
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-06-
13
* @since 2017-06-
20
*/
*/
public
interface
MenuMapper
extends
BaseMapper
<
Menu
>
{
public
interface
MenuMapper
extends
BaseMapper
<
Menu
>
{
...
...
src/main/java/com/stylefeng/guns/common/persistence/dao/NoticeMapper.java
View file @
19b9ca4b
...
@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
...
@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
/**
/**
* <p>
* <p>
* Mapper 接口
*
通知表
Mapper 接口
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-06-
13
* @since 2017-06-
20
*/
*/
public
interface
NoticeMapper
extends
BaseMapper
<
Notice
>
{
public
interface
NoticeMapper
extends
BaseMapper
<
Notice
>
{
...
...
src/main/java/com/stylefeng/guns/common/persistence/dao/OperationLogMapper.java
View file @
19b9ca4b
...
@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
...
@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
/**
/**
* <p>
* <p>
* Mapper 接口
*
操作日志
Mapper 接口
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-06-
13
* @since 2017-06-
20
*/
*/
public
interface
OperationLogMapper
extends
BaseMapper
<
OperationLog
>
{
public
interface
OperationLogMapper
extends
BaseMapper
<
OperationLog
>
{
...
...
src/main/java/com/stylefeng/guns/common/persistence/dao/RelationMapper.java
View file @
19b9ca4b
...
@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
...
@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
/**
/**
* <p>
* <p>
* Mapper 接口
*
角色和菜单关联表
Mapper 接口
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-06-
13
* @since 2017-06-
20
*/
*/
public
interface
RelationMapper
extends
BaseMapper
<
Relation
>
{
public
interface
RelationMapper
extends
BaseMapper
<
Relation
>
{
...
...
src/main/java/com/stylefeng/guns/common/persistence/dao/RoleMapper.java
View file @
19b9ca4b
...
@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
...
@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
/**
/**
* <p>
* <p>
* Mapper 接口
*
角色表
Mapper 接口
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-06-
13
* @since 2017-06-
20
*/
*/
public
interface
RoleMapper
extends
BaseMapper
<
Role
>
{
public
interface
RoleMapper
extends
BaseMapper
<
Role
>
{
...
...
src/main/java/com/stylefeng/guns/common/persistence/dao/UserMapper.java
View file @
19b9ca4b
...
@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
...
@@ -5,11 +5,11 @@ import com.baomidou.mybatisplus.mapper.BaseMapper;
/**
/**
* <p>
* <p>
* Mapper 接口
*
管理员表
Mapper 接口
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-06-
13
* @since 2017-06-
20
*/
*/
public
interface
UserMapper
extends
BaseMapper
<
User
>
{
public
interface
UserMapper
extends
BaseMapper
<
User
>
{
...
...
src/main/java/com/stylefeng/guns/common/persistence/model/Dept.java
View file @
19b9ca4b
...
@@ -7,23 +7,44 @@ import java.io.Serializable;
...
@@ -7,23 +7,44 @@ import java.io.Serializable;
/**
/**
* <p>
* <p>
*
*
部门表
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-06-
13
* @since 2017-06-
20
*/
*/
public
class
Dept
extends
Model
<
Dept
>
{
public
class
Dept
extends
Model
<
Dept
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
/**
* 主键id
*/
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Integer
id
;
private
Integer
id
;
/**
* 排序
*/
private
Integer
num
;
private
Integer
num
;
/**
* 父部门id
*/
private
Integer
pid
;
private
Integer
pid
;
/**
* 简称
*/
private
String
simplename
;
private
String
simplename
;
/**
* 全称
*/
private
String
fullname
;
private
String
fullname
;
/**
* 提示
*/
private
String
tips
;
private
String
tips
;
/**
* 版本(乐观锁保留字段)
*/
private
Integer
version
;
private
Integer
version
;
...
...
src/main/java/com/stylefeng/guns/common/persistence/model/Dict.java
View file @
19b9ca4b
...
@@ -7,21 +7,36 @@ import java.io.Serializable;
...
@@ -7,21 +7,36 @@ import java.io.Serializable;
/**
/**
* <p>
* <p>
*
*
字典表
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-06-
13
* @since 2017-06-
20
*/
*/
public
class
Dict
extends
Model
<
Dict
>
{
public
class
Dict
extends
Model
<
Dict
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
/**
* 主键id
*/
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Integer
id
;
private
Integer
id
;
/**
* 排序
*/
private
Integer
num
;
private
Integer
num
;
/**
* 父级字典
*/
private
Integer
pid
;
private
Integer
pid
;
/**
* 名称
*/
private
String
name
;
private
String
name
;
/**
* 提示
*/
private
String
tips
;
private
String
tips
;
...
...
src/main/java/com/stylefeng/guns/common/persistence/model/LoginLog.java
View file @
19b9ca4b
package
com
.
stylefeng
.
guns
.
common
.
persistence
.
model
;
package
com
.
stylefeng
.
guns
.
common
.
persistence
.
model
;
import
com.baomidou.mybatisplus.enums.IdType
;
import
java.util.Date
;
import
com.baomidou.mybatisplus.annotations.TableId
;
import
com.baomidou.mybatisplus.activerecord.Model
;
import
com.baomidou.mybatisplus.activerecord.Model
;
import
com.baomidou.mybatisplus.annotations.TableId
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
com.baomidou.mybatisplus.enums.IdType
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
/**
* <p>
* <p>
*
*
登录记录
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-06-
13
* @since 2017-06-
20
*/
*/
@TableName
(
"login_log"
)
@TableName
(
"login_log"
)
public
class
LoginLog
extends
Model
<
LoginLog
>
{
public
class
LoginLog
extends
Model
<
LoginLog
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
/**
* 主键
*/
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Integer
id
;
private
Integer
id
;
/**
* 日志名称
*/
private
String
logname
;
private
String
logname
;
/**
* 管理员id
*/
private
Integer
userid
;
private
Integer
userid
;
/**
* 创建时间
*/
private
Date
createtime
;
private
Date
createtime
;
/**
* 是否执行成功
*/
private
String
succeed
;
private
String
succeed
;
/**
* 具体消息
*/
private
String
message
;
private
String
message
;
/**
* 登录ip
*/
private
String
ip
;
private
String
ip
;
...
...
src/main/java/com/stylefeng/guns/common/persistence/model/Menu.java
View file @
19b9ca4b
...
@@ -7,16 +7,19 @@ import java.io.Serializable;
...
@@ -7,16 +7,19 @@ import java.io.Serializable;
/**
/**
* <p>
* <p>
*
*
菜单表
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-06-
13
* @since 2017-06-
20
*/
*/
public
class
Menu
extends
Model
<
Menu
>
{
public
class
Menu
extends
Model
<
Menu
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
/**
* 主键id
*/
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Integer
id
;
private
Integer
id
;
/**
/**
...
@@ -27,6 +30,9 @@ public class Menu extends Model<Menu> {
...
@@ -27,6 +30,9 @@ public class Menu extends Model<Menu> {
* 菜单父编号
* 菜单父编号
*/
*/
private
String
pcode
;
private
String
pcode
;
/**
* 当前菜单的所有父菜单编号
*/
private
String
pcodes
;
private
String
pcodes
;
/**
/**
* 菜单名称
* 菜单名称
...
@@ -48,6 +54,9 @@ public class Menu extends Model<Menu> {
...
@@ -48,6 +54,9 @@ public class Menu extends Model<Menu> {
* 菜单层级
* 菜单层级
*/
*/
private
Integer
levels
;
private
Integer
levels
;
/**
* 是否是菜单(1:是 0:不是)
*/
private
Integer
ismenu
;
private
Integer
ismenu
;
/**
/**
* 备注
* 备注
...
...
src/main/java/com/stylefeng/guns/common/persistence/model/Notice.java
View file @
19b9ca4b
...
@@ -9,18 +9,18 @@ import java.util.Date;
...
@@ -9,18 +9,18 @@ import java.util.Date;
/**
/**
* <p>
* <p>
*
*
通知表
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-06-
13
* @since 2017-06-
20
*/
*/
public
class
Notice
extends
Model
<
Notice
>
{
public
class
Notice
extends
Model
<
Notice
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
/**
/**
*
序列
*
主键
*/
*/
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Integer
id
;
private
Integer
id
;
...
...
src/main/java/com/stylefeng/guns/common/persistence/model/OperationLog.java
View file @
19b9ca4b
package
com
.
stylefeng
.
guns
.
common
.
persistence
.
model
;
package
com
.
stylefeng
.
guns
.
common
.
persistence
.
model
;
import
com.baomidou.mybatisplus.enums.IdType
;
import
java.util.Date
;
import
com.baomidou.mybatisplus.annotations.TableId
;
import
com.baomidou.mybatisplus.activerecord.Model
;
import
com.baomidou.mybatisplus.activerecord.Model
;
import
com.baomidou.mybatisplus.annotations.TableId
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
com.baomidou.mybatisplus.annotations.TableName
;
import
com.baomidou.mybatisplus.enums.IdType
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
/**
* <p>
* <p>
*
*
操作日志
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-06-
13
* @since 2017-06-
20
*/
*/
@TableName
(
"operation_log"
)
@TableName
(
"operation_log"
)
public
class
OperationLog
extends
Model
<
OperationLog
>
{
public
class
OperationLog
extends
Model
<
OperationLog
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
/**
* 主键
*/
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Integer
id
;
private
Integer
id
;
/**
* 日志类型
*/
private
String
logtype
;
private
String
logtype
;
/**
* 日志名称
*/
private
String
logname
;
private
String
logname
;
/**
* 用户id
*/
private
Integer
userid
;
private
Integer
userid
;
/**
* 类名称
*/
private
String
classname
;
private
String
classname
;
/**
* 方法名称
*/
private
String
method
;
private
String
method
;
/**
* 创建时间
*/
private
Date
createtime
;
private
Date
createtime
;
/**
* 是否成功
*/
private
String
succeed
;
private
String
succeed
;
/**
* 备注
*/
private
String
message
;
private
String
message
;
...
...
src/main/java/com/stylefeng/guns/common/persistence/model/Relation.java
View file @
19b9ca4b
...
@@ -7,19 +7,28 @@ import java.io.Serializable;
...
@@ -7,19 +7,28 @@ import java.io.Serializable;
/**
/**
* <p>
* <p>
*
*
角色和菜单关联表
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-06-
13
* @since 2017-06-
20
*/
*/
public
class
Relation
extends
Model
<
Relation
>
{
public
class
Relation
extends
Model
<
Relation
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
/**
* 主键
*/
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Integer
id
;
private
Integer
id
;
/**
* 菜单id
*/
private
Integer
menuid
;
private
Integer
menuid
;
/**
* 角色id
*/
private
Integer
roleid
;
private
Integer
roleid
;
...
...
src/main/java/com/stylefeng/guns/common/persistence/model/Role.java
View file @
19b9ca4b
...
@@ -7,23 +7,44 @@ import java.io.Serializable;
...
@@ -7,23 +7,44 @@ import java.io.Serializable;
/**
/**
* <p>
* <p>
*
*
角色表
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-06-
13
* @since 2017-06-
20
*/
*/
public
class
Role
extends
Model
<
Role
>
{
public
class
Role
extends
Model
<
Role
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
/**
* 主键id
*/
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Integer
id
;
private
Integer
id
;
/**
* 序号
*/
private
Integer
num
;
private
Integer
num
;
/**
* 父角色id
*/
private
Integer
pid
;
private
Integer
pid
;
/**
* 角色名称
*/
private
String
name
;
private
String
name
;
/**
* 部门名称
*/
private
Integer
deptid
;
private
Integer
deptid
;
/**
* 提示
*/
private
String
tips
;
private
String
tips
;
/**
* 保留字段(暂时没用)
*/
private
Integer
version
;
private
Integer
version
;
...
...
src/main/java/com/stylefeng/guns/common/persistence/model/User.java
View file @
19b9ca4b
package
com
.
stylefeng
.
guns
.
common
.
persistence
.
model
;
package
com
.
stylefeng
.
guns
.
common
.
persistence
.
model
;
import
com.baomidou.mybatisplus.enums.IdType
;
import
java.util.Date
;
import
com.baomidou.mybatisplus.annotations.TableId
;
import
com.baomidou.mybatisplus.activerecord.Model
;
import
com.baomidou.mybatisplus.activerecord.Model
;
import
com.baomidou.mybatisplus.annotations.TableId
;
import
com.baomidou.mybatisplus.enums.IdType
;
import
java.io.Serializable
;
import
java.io.Serializable
;
import
java.util.Date
;
/**
/**
* <p>
* <p>
*
*
管理员表
* </p>
* </p>
*
*
* @author stylefeng
* @author stylefeng
* @since 2017-06-
13
* @since 2017-06-
20
*/
*/
public
class
User
extends
Model
<
User
>
{
public
class
User
extends
Model
<
User
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
static
final
long
serialVersionUID
=
1L
;
/**
* 主键id
*/
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
@TableId
(
value
=
"id"
,
type
=
IdType
.
AUTO
)
private
Integer
id
;
private
Integer
id
;
/**
* 头像
*/
private
String
avatar
;
private
String
avatar
;
/**
* 账号
*/
private
String
account
;
private
String
account
;
/**
* 密码
*/
private
String
password
;
private
String
password
;
/**
* md5密码盐
*/
private
String
salt
;
private
String
salt
;
/**
* 名字
*/
private
String
name
;
private
String
name
;
/**
* 生日
*/
private
Date
birthday
;
private
Date
birthday
;
/**
* 性别(1:男 2:女)
*/
private
Integer
sex
;
private
Integer
sex
;
/**
* 电子邮件
*/
private
String
email
;
private
String
email
;
/**
* 电话
*/
private
String
phone
;
private
String
phone
;
/**
* 角色id
*/
private
String
roleid
;
private
String
roleid
;
/**
* 部门id
*/
private
Integer
deptid
;
private
Integer
deptid
;
/**
* 状态(1:启用 2:冻结 3:删除)
*/
private
Integer
status
;
private
Integer
status
;
/**
* 创建时间
*/
private
Date
createtime
;
private
Date
createtime
;
/**
* 保留字段
*/
private
Integer
version
;
private
Integer
version
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment