From 07211074077677a0810ed8fa140b777d1ff23e12 Mon Sep 17 00:00:00 2001
From: Zhang Liguo <482370576@qq.com>
Date: Tue, 19 Dec 2023 14:04:28 +0800
Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E4=BD=93=E5=B1=82=EF=BC=8Cdao?=
=?UTF-8?q?=E5=B1=82=E5=9F=BA=E6=9C=AC=E5=88=9B=E5=BB=BA?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/main/java/com/lovenav/entity/Admin.java | 48 ++++
.../java/com/lovenav/entity/AdminEntity.java | 4 -
.../java/com/lovenav/entity/AdminMeta.java | 24 ++
.../java/com/lovenav/entity/Attachment.java | 63 +++++
src/main/java/com/lovenav/entity/Auth.java | 45 ++++
src/main/java/com/lovenav/entity/Banners.java | 43 ++++
.../com/lovenav/entity/CollectIconList.java | 25 ++
src/main/java/com/lovenav/entity/Comment.java | 63 +++++
src/main/java/com/lovenav/entity/Config.java | 38 +++
.../java/com/lovenav/entity/LoginLogs.java | 38 +++
src/main/java/com/lovenav/entity/Notice.java | 43 ++++
src/main/java/com/lovenav/entity/Role.java | 42 ++++
.../java/com/lovenav/entity/UrlAccess.java | 33 +++
.../java/com/lovenav/entity/UrlCateList.java | 62 +++++
src/main/java/com/lovenav/entity/UrlList.java | 97 ++++++++
src/main/java/com/lovenav/entity/User.java | 63 +++++
.../java/com/lovenav/entity/UserMeta.java | 21 ++
.../java/com/lovenav/mapper/AdminDao.java | 19 ++
.../java/com/lovenav/mapper/AdminMapper.java | 4 -
.../java/com/lovenav/mapper/AdminMetaDao.java | 19 ++
.../com/lovenav/mapper/AttachmentDao.java | 19 ++
src/main/java/com/lovenav/mapper/AuthDao.java | 19 ++
.../java/com/lovenav/mapper/BannersDao.java | 19 ++
.../lovenav/mapper/CollectIconListDao.java | 19 ++
.../java/com/lovenav/mapper/CommentDao.java | 19 ++
.../java/com/lovenav/mapper/ConfigDao.java | 19 ++
.../java/com/lovenav/mapper/LoginLogsDao.java | 19 ++
.../java/com/lovenav/mapper/NoticeDao.java | 19 ++
src/main/java/com/lovenav/mapper/RoleDao.java | 19 ++
.../java/com/lovenav/mapper/UrlAccessDao.java | 19 ++
.../com/lovenav/mapper/UrlCateListDao.java | 19 ++
.../java/com/lovenav/mapper/UrlListDao.java | 19 ++
src/main/java/com/lovenav/mapper/UserDao.java | 19 ++
.../java/com/lovenav/mapper/UserMetaDao.java | 19 ++
src/main/java/generate/LnAuth.java | 45 ++++
src/main/java/generate/LnAuthDao.java | 19 ++
src/main/java/generate/LnBanners.java | 43 ++++
src/main/java/generate/LnBannersDao.java | 19 ++
src/main/resources/generator/AdminDao.xml | 111 +++++++++
src/main/resources/generator/AdminMetaDao.xml | 76 ++++++
.../resources/generator/AttachmentDao.xml | 144 +++++++++++
src/main/resources/generator/AuthDao.xml | 109 +++++++++
src/main/resources/generator/BannersDao.xml | 98 ++++++++
.../generator/CollectIconListDao.xml | 63 +++++
src/main/resources/generator/CommentDao.xml | 147 +++++++++++
src/main/resources/generator/ConfigDao.xml | 87 +++++++
src/main/resources/generator/LoginLogsDao.xml | 87 +++++++
src/main/resources/generator/NoticeDao.xml | 98 ++++++++
src/main/resources/generator/RoleDao.xml | 98 ++++++++
src/main/resources/generator/UrlAccessDao.xml | 76 ++++++
.../resources/generator/UrlCateListDao.xml | 147 +++++++++++
src/main/resources/generator/UrlListDao.xml | 228 ++++++++++++++++++
src/main/resources/generator/UserDao.xml | 147 +++++++++++
src/main/resources/generator/UserMetaDao.xml | 76 ++++++
54 files changed, 2970 insertions(+), 8 deletions(-)
create mode 100644 src/main/java/com/lovenav/entity/Admin.java
delete mode 100644 src/main/java/com/lovenav/entity/AdminEntity.java
create mode 100644 src/main/java/com/lovenav/entity/AdminMeta.java
create mode 100644 src/main/java/com/lovenav/entity/Attachment.java
create mode 100644 src/main/java/com/lovenav/entity/Auth.java
create mode 100644 src/main/java/com/lovenav/entity/Banners.java
create mode 100644 src/main/java/com/lovenav/entity/CollectIconList.java
create mode 100644 src/main/java/com/lovenav/entity/Comment.java
create mode 100644 src/main/java/com/lovenav/entity/Config.java
create mode 100644 src/main/java/com/lovenav/entity/LoginLogs.java
create mode 100644 src/main/java/com/lovenav/entity/Notice.java
create mode 100644 src/main/java/com/lovenav/entity/Role.java
create mode 100644 src/main/java/com/lovenav/entity/UrlAccess.java
create mode 100644 src/main/java/com/lovenav/entity/UrlCateList.java
create mode 100644 src/main/java/com/lovenav/entity/UrlList.java
create mode 100644 src/main/java/com/lovenav/entity/User.java
create mode 100644 src/main/java/com/lovenav/entity/UserMeta.java
create mode 100644 src/main/java/com/lovenav/mapper/AdminDao.java
delete mode 100644 src/main/java/com/lovenav/mapper/AdminMapper.java
create mode 100644 src/main/java/com/lovenav/mapper/AdminMetaDao.java
create mode 100644 src/main/java/com/lovenav/mapper/AttachmentDao.java
create mode 100644 src/main/java/com/lovenav/mapper/AuthDao.java
create mode 100644 src/main/java/com/lovenav/mapper/BannersDao.java
create mode 100644 src/main/java/com/lovenav/mapper/CollectIconListDao.java
create mode 100644 src/main/java/com/lovenav/mapper/CommentDao.java
create mode 100644 src/main/java/com/lovenav/mapper/ConfigDao.java
create mode 100644 src/main/java/com/lovenav/mapper/LoginLogsDao.java
create mode 100644 src/main/java/com/lovenav/mapper/NoticeDao.java
create mode 100644 src/main/java/com/lovenav/mapper/RoleDao.java
create mode 100644 src/main/java/com/lovenav/mapper/UrlAccessDao.java
create mode 100644 src/main/java/com/lovenav/mapper/UrlCateListDao.java
create mode 100644 src/main/java/com/lovenav/mapper/UrlListDao.java
create mode 100644 src/main/java/com/lovenav/mapper/UserDao.java
create mode 100644 src/main/java/com/lovenav/mapper/UserMetaDao.java
create mode 100644 src/main/java/generate/LnAuth.java
create mode 100644 src/main/java/generate/LnAuthDao.java
create mode 100644 src/main/java/generate/LnBanners.java
create mode 100644 src/main/java/generate/LnBannersDao.java
create mode 100644 src/main/resources/generator/AdminDao.xml
create mode 100644 src/main/resources/generator/AdminMetaDao.xml
create mode 100644 src/main/resources/generator/AttachmentDao.xml
create mode 100644 src/main/resources/generator/AuthDao.xml
create mode 100644 src/main/resources/generator/BannersDao.xml
create mode 100644 src/main/resources/generator/CollectIconListDao.xml
create mode 100644 src/main/resources/generator/CommentDao.xml
create mode 100644 src/main/resources/generator/ConfigDao.xml
create mode 100644 src/main/resources/generator/LoginLogsDao.xml
create mode 100644 src/main/resources/generator/NoticeDao.xml
create mode 100644 src/main/resources/generator/RoleDao.xml
create mode 100644 src/main/resources/generator/UrlAccessDao.xml
create mode 100644 src/main/resources/generator/UrlCateListDao.xml
create mode 100644 src/main/resources/generator/UrlListDao.xml
create mode 100644 src/main/resources/generator/UserDao.xml
create mode 100644 src/main/resources/generator/UserMetaDao.xml
diff --git a/src/main/java/com/lovenav/entity/Admin.java b/src/main/java/com/lovenav/entity/Admin.java
new file mode 100644
index 0000000..aa443ae
--- /dev/null
+++ b/src/main/java/com/lovenav/entity/Admin.java
@@ -0,0 +1,48 @@
+package com.lovenav.entity;
+
+import java.io.Serializable;
+import java.util.Date;
+import lombok.Data;
+
+/**
+ * ln_admin
+ */
+@Data
+public class Admin implements Serializable {
+ /**
+ * id
+ */
+ private Integer id;
+
+ /**
+ * 管理员登录账号
+ */
+ private String adminAccount;
+
+ /**
+ * 管理员登录密码
+ */
+ private String adminPassword;
+
+ /**
+ * 管理员邮箱
+ */
+ private String adminEmail;
+
+ /**
+ * 角色组id
+ */
+ private Integer roleId;
+
+ /**
+ * 创建时间
+ */
+ private Date createtime;
+
+ /**
+ * 状态(0有效/1禁用)
+ */
+ private Integer adminStatus;
+
+ private static final long serialVersionUID = 1L;
+}
\ No newline at end of file
diff --git a/src/main/java/com/lovenav/entity/AdminEntity.java b/src/main/java/com/lovenav/entity/AdminEntity.java
deleted file mode 100644
index 9cad9f1..0000000
--- a/src/main/java/com/lovenav/entity/AdminEntity.java
+++ /dev/null
@@ -1,4 +0,0 @@
-package com.lovenav.entity;
-
-public class AdminEntity {
-}
diff --git a/src/main/java/com/lovenav/entity/AdminMeta.java b/src/main/java/com/lovenav/entity/AdminMeta.java
new file mode 100644
index 0000000..b2ebd13
--- /dev/null
+++ b/src/main/java/com/lovenav/entity/AdminMeta.java
@@ -0,0 +1,24 @@
+package com.lovenav.entity;
+
+import java.io.Serializable;
+import lombok.Data;
+
+/**
+ * 管理员资料表
+ * ln_admin_meta
+ */
+@Data
+public class AdminMeta implements Serializable {
+ private Long id;
+
+ /**
+ * 管理员id
+ */
+ private Long adminId;
+
+ private String metaKey;
+
+ private String metaValue;
+
+ private static final long serialVersionUID = 1L;
+}
\ No newline at end of file
diff --git a/src/main/java/com/lovenav/entity/Attachment.java b/src/main/java/com/lovenav/entity/Attachment.java
new file mode 100644
index 0000000..a4dc887
--- /dev/null
+++ b/src/main/java/com/lovenav/entity/Attachment.java
@@ -0,0 +1,63 @@
+package com.lovenav.entity;
+
+import java.io.Serializable;
+import lombok.Data;
+
+/**
+ * 附件表
+ * ln_attachment
+ */
+@Data
+public class Attachment implements Serializable {
+ /**
+ * id
+ */
+ private Long id;
+
+ /**
+ * 路径
+ */
+ private String path;
+
+ /**
+ * 后缀
+ */
+ private String suffix;
+
+ /**
+ * 文件名
+ */
+ private String fileName;
+
+ /**
+ * 大小
+ */
+ private Double size;
+
+ /**
+ * md5
+ */
+ private String md5;
+
+ /**
+ * 宽
+ */
+ private Double width;
+
+ /**
+ * 高
+ */
+ private Double height;
+
+ /**
+ * 保存地址 local=本地
+ */
+ private Object storage;
+
+ /**
+ * 创建时间
+ */
+ private Integer createtime;
+
+ private static final long serialVersionUID = 1L;
+}
\ No newline at end of file
diff --git a/src/main/java/com/lovenav/entity/Auth.java b/src/main/java/com/lovenav/entity/Auth.java
new file mode 100644
index 0000000..9091316
--- /dev/null
+++ b/src/main/java/com/lovenav/entity/Auth.java
@@ -0,0 +1,45 @@
+package com.lovenav.entity;
+
+import java.io.Serializable;
+import lombok.Data;
+
+/**
+ * 后台菜单
+ * ln_auth
+ */
+@Data
+public class Auth implements Serializable {
+ private Integer id;
+
+ /**
+ * 图标
+ */
+ private String icon;
+
+ /**
+ * 菜单名称
+ */
+ private String name;
+
+ /**
+ * 菜单路由
+ */
+ private String routeUrl;
+
+ /**
+ * 上级id
+ */
+ private Integer pid;
+
+ /**
+ * 是否作为菜单展示 1是0不是
+ */
+ private Byte isMenu;
+
+ /**
+ * 权重
+ */
+ private Integer weigh;
+
+ private static final long serialVersionUID = 1L;
+}
\ No newline at end of file
diff --git a/src/main/java/com/lovenav/entity/Banners.java b/src/main/java/com/lovenav/entity/Banners.java
new file mode 100644
index 0000000..3dcf753
--- /dev/null
+++ b/src/main/java/com/lovenav/entity/Banners.java
@@ -0,0 +1,43 @@
+package com.lovenav.entity;
+
+import java.io.Serializable;
+import java.util.Date;
+import lombok.Data;
+
+/**
+ * ln_banners
+ */
+@Data
+public class Banners implements Serializable {
+ /**
+ * id
+ */
+ private Integer id;
+
+ /**
+ * 图片url
+ */
+ private String imgUrl;
+
+ /**
+ * 权重
+ */
+ private Integer weigh;
+
+ /**
+ * 跳转链接
+ */
+ private String url;
+
+ /**
+ * 状态(0有效/1无效)
+ */
+ private Byte bannerStatus;
+
+ /**
+ * 创建时间
+ */
+ private Date createtime;
+
+ private static final long serialVersionUID = 1L;
+}
\ No newline at end of file
diff --git a/src/main/java/com/lovenav/entity/CollectIconList.java b/src/main/java/com/lovenav/entity/CollectIconList.java
new file mode 100644
index 0000000..79cf1a1
--- /dev/null
+++ b/src/main/java/com/lovenav/entity/CollectIconList.java
@@ -0,0 +1,25 @@
+package com.lovenav.entity;
+
+import java.io.Serializable;
+import lombok.Data;
+
+/**
+ * 图标表
+ * ln_collect_icon_list
+ */
+@Data
+public class CollectIconList implements Serializable {
+ private Long id;
+
+ /**
+ * 网址
+ */
+ private String urlMd5;
+
+ /**
+ * 图片地址
+ */
+ private String iconUrl;
+
+ private static final long serialVersionUID = 1L;
+}
\ No newline at end of file
diff --git a/src/main/java/com/lovenav/entity/Comment.java b/src/main/java/com/lovenav/entity/Comment.java
new file mode 100644
index 0000000..8a33e5c
--- /dev/null
+++ b/src/main/java/com/lovenav/entity/Comment.java
@@ -0,0 +1,63 @@
+package com.lovenav.entity;
+
+import java.io.Serializable;
+import java.util.Date;
+import lombok.Data;
+
+/**
+ * ln_comment
+ */
+@Data
+public class Comment implements Serializable {
+ /**
+ * id
+ */
+ private Integer id;
+
+ /**
+ * 所属url id
+ */
+ private Integer urlId;
+
+ /**
+ * 用户id
+ */
+ private Integer userId;
+
+ /**
+ * 评论内容
+ */
+ private String content;
+
+ /**
+ * 父评论id
+ */
+ private Integer rootCommentId;
+
+ /**
+ * 点赞数
+ */
+ private Long likeCount;
+
+ /**
+ * 评论时间
+ */
+ private Date commentTime;
+
+ /**
+ * 状态
+ */
+ private Byte commentStatus;
+
+ /**
+ * 更新时间
+ */
+ private Date updateTime;
+
+ /**
+ * 用户评级
+ */
+ private Integer rating;
+
+ private static final long serialVersionUID = 1L;
+}
\ No newline at end of file
diff --git a/src/main/java/com/lovenav/entity/Config.java b/src/main/java/com/lovenav/entity/Config.java
new file mode 100644
index 0000000..7ea1e12
--- /dev/null
+++ b/src/main/java/com/lovenav/entity/Config.java
@@ -0,0 +1,38 @@
+package com.lovenav.entity;
+
+import java.io.Serializable;
+import java.util.Date;
+import lombok.Data;
+
+/**
+ * ln_config
+ */
+@Data
+public class Config implements Serializable {
+ /**
+ * id
+ */
+ private Integer id;
+
+ /**
+ * 类型
+ */
+ private Object type;
+
+ /**
+ * 名称
+ */
+ private String name;
+
+ /**
+ * 值
+ */
+ private String value;
+
+ /**
+ * 更新时间
+ */
+ private Date updatetime;
+
+ private static final long serialVersionUID = 1L;
+}
\ No newline at end of file
diff --git a/src/main/java/com/lovenav/entity/LoginLogs.java b/src/main/java/com/lovenav/entity/LoginLogs.java
new file mode 100644
index 0000000..9c98a67
--- /dev/null
+++ b/src/main/java/com/lovenav/entity/LoginLogs.java
@@ -0,0 +1,38 @@
+package com.lovenav.entity;
+
+import java.io.Serializable;
+import java.util.Date;
+import lombok.Data;
+
+/**
+ * ln_login_logs
+ */
+@Data
+public class LoginLogs implements Serializable {
+ /**
+ * id
+ */
+ private Integer id;
+
+ /**
+ * ip
+ */
+ private String loginIp;
+
+ /**
+ * 用户id
+ */
+ private Byte userId;
+
+ /**
+ * 登录时间
+ */
+ private Date loginTime;
+
+ /**
+ * 地址
+ */
+ private String location;
+
+ private static final long serialVersionUID = 1L;
+}
\ No newline at end of file
diff --git a/src/main/java/com/lovenav/entity/Notice.java b/src/main/java/com/lovenav/entity/Notice.java
new file mode 100644
index 0000000..9662ec8
--- /dev/null
+++ b/src/main/java/com/lovenav/entity/Notice.java
@@ -0,0 +1,43 @@
+package com.lovenav.entity;
+
+import java.io.Serializable;
+import java.util.Date;
+import lombok.Data;
+
+/**
+ * ln_notice
+ */
+@Data
+public class Notice implements Serializable {
+ /**
+ * id
+ */
+ private Integer id;
+
+ /**
+ * 标题
+ */
+ private String title;
+
+ /**
+ * 内容
+ */
+ private String content;
+
+ /**
+ * 跳转链接
+ */
+ private String url;
+
+ /**
+ * 状态(0显示/1隐藏)
+ */
+ private Byte noticeStatus;
+
+ /**
+ * 创建时间
+ */
+ private Date createtime;
+
+ private static final long serialVersionUID = 1L;
+}
\ No newline at end of file
diff --git a/src/main/java/com/lovenav/entity/Role.java b/src/main/java/com/lovenav/entity/Role.java
new file mode 100644
index 0000000..63639cd
--- /dev/null
+++ b/src/main/java/com/lovenav/entity/Role.java
@@ -0,0 +1,42 @@
+package com.lovenav.entity;
+
+import java.io.Serializable;
+import lombok.Data;
+
+/**
+ * ln_role
+ */
+@Data
+public class Role implements Serializable {
+ /**
+ * id
+ */
+ private Integer id;
+
+ /**
+ * 角色名称
+ */
+ private String roleName;
+
+ /**
+ * 角色等级
+ */
+ private String roleLevel;
+
+ /**
+ * 上级角色
+ */
+ private Integer pid;
+
+ /**
+ * 菜单权限
+ */
+ private Integer menuId;
+
+ /**
+ * 状态(0有效/1禁用)
+ */
+ private Byte roleStatus;
+
+ private static final long serialVersionUID = 1L;
+}
\ No newline at end of file
diff --git a/src/main/java/com/lovenav/entity/UrlAccess.java b/src/main/java/com/lovenav/entity/UrlAccess.java
new file mode 100644
index 0000000..fed82d1
--- /dev/null
+++ b/src/main/java/com/lovenav/entity/UrlAccess.java
@@ -0,0 +1,33 @@
+package com.lovenav.entity;
+
+import java.io.Serializable;
+import java.util.Date;
+import lombok.Data;
+
+/**
+ * ln_url_access
+ */
+@Data
+public class UrlAccess implements Serializable {
+ /**
+ * id
+ */
+ private Integer id;
+
+ /**
+ * url id
+ */
+ private Integer urlId;
+
+ /**
+ * 日期
+ */
+ private Date time;
+
+ /**
+ * 访问量
+ */
+ private Long views;
+
+ private static final long serialVersionUID = 1L;
+}
\ No newline at end of file
diff --git a/src/main/java/com/lovenav/entity/UrlCateList.java b/src/main/java/com/lovenav/entity/UrlCateList.java
new file mode 100644
index 0000000..2b65858
--- /dev/null
+++ b/src/main/java/com/lovenav/entity/UrlCateList.java
@@ -0,0 +1,62 @@
+package com.lovenav.entity;
+
+import java.io.Serializable;
+import lombok.Data;
+
+/**
+ * ln_url_cate_list
+ */
+@Data
+public class UrlCateList implements Serializable {
+ /**
+ * id
+ */
+ private Integer id;
+
+ /**
+ * 名称
+ */
+ private String name;
+
+ /**
+ * 创建时间
+ */
+ private Integer createtime;
+
+ /**
+ * url 数量
+ */
+ private Long urlNumber;
+
+ /**
+ * 权重
+ */
+ private Long weigh;
+
+ /**
+ * 状态
+ */
+ private Byte status;
+
+ /**
+ * 需要登录才能查看
+ */
+ private Byte needLogin;
+
+ /**
+ * 用户id
+ */
+ private Integer userId;
+
+ /**
+ * 根标签
+ */
+ private Integer rootCateId;
+
+ /**
+ * 图标
+ */
+ private String ico;
+
+ private static final long serialVersionUID = 1L;
+}
\ No newline at end of file
diff --git a/src/main/java/com/lovenav/entity/UrlList.java b/src/main/java/com/lovenav/entity/UrlList.java
new file mode 100644
index 0000000..0d66b74
--- /dev/null
+++ b/src/main/java/com/lovenav/entity/UrlList.java
@@ -0,0 +1,97 @@
+package com.lovenav.entity;
+
+import java.io.Serializable;
+import lombok.Data;
+
+/**
+ * ln_url_list
+ */
+@Data
+public class UrlList implements Serializable {
+ /**
+ * id
+ */
+ private Long id;
+
+ /**
+ * 网站名称
+ */
+ private String name;
+
+ /**
+ * 网站图标
+ */
+ private String icon;
+
+ /**
+ * 标签id
+ */
+ private Integer cateId;
+
+ /**
+ * url
+ */
+ private String url;
+
+ /**
+ * 创建时间
+ */
+ private Integer createtime;
+
+ /**
+ * 访问数量
+ */
+ private Long views;
+
+ /**
+ * 标签
+ */
+ private String tags;
+
+ /**
+ * 权重
+ */
+ private Long weigh;
+
+ /**
+ * 状态
+ */
+ private Byte status;
+
+ /**
+ * 描述
+ */
+ private String desc;
+
+ /**
+ * 需要登录才能查看
+ */
+ private Byte needLogin;
+
+ /**
+ * 代理提示语
+ */
+ private String agentHint;
+
+ /**
+ * 是否需要代理 1需要0不需要
+ */
+ private Byte isNeedAgent;
+
+ /**
+ * 是否广告1是0不是
+ */
+ private Byte isAd;
+
+ /**
+ * 是否全局置顶1是0不是
+ */
+ private Byte isTop;
+
+ /**
+ * 是否加密(1加密/0不加密)
+ */
+ private Byte isEncrypt;
+
+ private static final long serialVersionUID = 1L;
+}
\ No newline at end of file
diff --git a/src/main/java/com/lovenav/entity/User.java b/src/main/java/com/lovenav/entity/User.java
new file mode 100644
index 0000000..e4103f6
--- /dev/null
+++ b/src/main/java/com/lovenav/entity/User.java
@@ -0,0 +1,63 @@
+package com.lovenav.entity;
+
+import java.io.Serializable;
+import java.util.Date;
+import lombok.Data;
+
+/**
+ * ln_user
+ */
+@Data
+public class User implements Serializable {
+ /**
+ * id
+ */
+ private Integer id;
+
+ /**
+ * 用户登录名
+ */
+ private String userLogin;
+
+ /**
+ * 用户密码
+ */
+ private String userPassword;
+
+ /**
+ * 用户手机号
+ */
+ private Long phone;
+
+ /**
+ * 用户头像
+ */
+ private String avatar;
+
+ /**
+ * 用户昵称
+ */
+ private String nickname;
+
+ /**
+ * 用户邮箱
+ */
+ private String userEmail;
+
+ /**
+ * 用户状态(0正常/1禁用)
+ */
+ private Byte userStatus;
+
+ /**
+ * 用户注册时间
+ */
+ private Date userRegistered;
+
+ /**
+ * 角色组
+ */
+ private Byte roleId;
+
+ private static final long serialVersionUID = 1L;
+}
\ No newline at end of file
diff --git a/src/main/java/com/lovenav/entity/UserMeta.java b/src/main/java/com/lovenav/entity/UserMeta.java
new file mode 100644
index 0000000..e9ac0ed
--- /dev/null
+++ b/src/main/java/com/lovenav/entity/UserMeta.java
@@ -0,0 +1,21 @@
+package com.lovenav.entity;
+
+import java.io.Serializable;
+import lombok.Data;
+
+/**
+ * 用户信息表
+ * ln_user_meta
+ */
+@Data
+public class UserMeta implements Serializable {
+ private Long id;
+
+ private Long userId;
+
+ private String metaKey;
+
+ private String metaValue;
+
+ private static final long serialVersionUID = 1L;
+}
\ No newline at end of file
diff --git a/src/main/java/com/lovenav/mapper/AdminDao.java b/src/main/java/com/lovenav/mapper/AdminDao.java
new file mode 100644
index 0000000..561d1cb
--- /dev/null
+++ b/src/main/java/com/lovenav/mapper/AdminDao.java
@@ -0,0 +1,19 @@
+package com.lovenav.mapper;
+
+import com.lovenav.entity.Admin;
+import org.springframework.stereotype.Repository;
+
+@Repository
+public interface AdminDao {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(Admin record);
+
+ int insertSelective(Admin record);
+
+ Admin selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(Admin record);
+
+ int updateByPrimaryKey(Admin record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/lovenav/mapper/AdminMapper.java b/src/main/java/com/lovenav/mapper/AdminMapper.java
deleted file mode 100644
index 4b93a11..0000000
--- a/src/main/java/com/lovenav/mapper/AdminMapper.java
+++ /dev/null
@@ -1,4 +0,0 @@
-package com.lovenav.mapper;
-
-public interface AdminMapper {
-}
diff --git a/src/main/java/com/lovenav/mapper/AdminMetaDao.java b/src/main/java/com/lovenav/mapper/AdminMetaDao.java
new file mode 100644
index 0000000..31992b1
--- /dev/null
+++ b/src/main/java/com/lovenav/mapper/AdminMetaDao.java
@@ -0,0 +1,19 @@
+package com.lovenav.mapper;
+
+import com.lovenav.entity.AdminMeta;
+import org.springframework.stereotype.Repository;
+
+@Repository
+public interface AdminMetaDao {
+ int deleteByPrimaryKey(Long id);
+
+ int insert(AdminMeta record);
+
+ int insertSelective(AdminMeta record);
+
+ AdminMeta selectByPrimaryKey(Long id);
+
+ int updateByPrimaryKeySelective(AdminMeta record);
+
+ int updateByPrimaryKey(AdminMeta record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/lovenav/mapper/AttachmentDao.java b/src/main/java/com/lovenav/mapper/AttachmentDao.java
new file mode 100644
index 0000000..20bfce9
--- /dev/null
+++ b/src/main/java/com/lovenav/mapper/AttachmentDao.java
@@ -0,0 +1,19 @@
+package com.lovenav.mapper;
+
+import com.lovenav.entity.Attachment;
+import org.springframework.stereotype.Repository;
+
+@Repository
+public interface AttachmentDao {
+ int deleteByPrimaryKey(Long id);
+
+ int insert(Attachment record);
+
+ int insertSelective(Attachment record);
+
+ Attachment selectByPrimaryKey(Long id);
+
+ int updateByPrimaryKeySelective(Attachment record);
+
+ int updateByPrimaryKey(Attachment record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/lovenav/mapper/AuthDao.java b/src/main/java/com/lovenav/mapper/AuthDao.java
new file mode 100644
index 0000000..a3ecf9f
--- /dev/null
+++ b/src/main/java/com/lovenav/mapper/AuthDao.java
@@ -0,0 +1,19 @@
+package com.lovenav.mapper;
+
+import com.lovenav.entity.Auth;
+import org.springframework.stereotype.Repository;
+
+@Repository
+public interface AuthDao {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(Auth record);
+
+ int insertSelective(Auth record);
+
+ Auth selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(Auth record);
+
+ int updateByPrimaryKey(Auth record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/lovenav/mapper/BannersDao.java b/src/main/java/com/lovenav/mapper/BannersDao.java
new file mode 100644
index 0000000..9f6357f
--- /dev/null
+++ b/src/main/java/com/lovenav/mapper/BannersDao.java
@@ -0,0 +1,19 @@
+package com.lovenav.mapper;
+
+import com.lovenav.entity.Banners;
+import org.springframework.stereotype.Repository;
+
+@Repository
+public interface BannersDao {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(Banners record);
+
+ int insertSelective(Banners record);
+
+ Banners selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(Banners record);
+
+ int updateByPrimaryKey(Banners record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/lovenav/mapper/CollectIconListDao.java b/src/main/java/com/lovenav/mapper/CollectIconListDao.java
new file mode 100644
index 0000000..051606a
--- /dev/null
+++ b/src/main/java/com/lovenav/mapper/CollectIconListDao.java
@@ -0,0 +1,19 @@
+package com.lovenav.mapper;
+
+import com.lovenav.entity.CollectIconList;
+import org.springframework.stereotype.Repository;
+
+@Repository
+public interface CollectIconListDao {
+ int deleteByPrimaryKey(Long id);
+
+ int insert(CollectIconList record);
+
+ int insertSelective(CollectIconList record);
+
+ CollectIconList selectByPrimaryKey(Long id);
+
+ int updateByPrimaryKeySelective(CollectIconList record);
+
+ int updateByPrimaryKey(CollectIconList record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/lovenav/mapper/CommentDao.java b/src/main/java/com/lovenav/mapper/CommentDao.java
new file mode 100644
index 0000000..f05ca7c
--- /dev/null
+++ b/src/main/java/com/lovenav/mapper/CommentDao.java
@@ -0,0 +1,19 @@
+package com.lovenav.mapper;
+
+import com.lovenav.entity.Comment;
+import org.springframework.stereotype.Repository;
+
+@Repository
+public interface CommentDao {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(Comment record);
+
+ int insertSelective(Comment record);
+
+ Comment selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(Comment record);
+
+ int updateByPrimaryKey(Comment record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/lovenav/mapper/ConfigDao.java b/src/main/java/com/lovenav/mapper/ConfigDao.java
new file mode 100644
index 0000000..81fbcac
--- /dev/null
+++ b/src/main/java/com/lovenav/mapper/ConfigDao.java
@@ -0,0 +1,19 @@
+package com.lovenav.mapper;
+
+import com.lovenav.entity.Config;
+import org.springframework.stereotype.Repository;
+
+@Repository
+public interface ConfigDao {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(Config record);
+
+ int insertSelective(Config record);
+
+ Config selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(Config record);
+
+ int updateByPrimaryKey(Config record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/lovenav/mapper/LoginLogsDao.java b/src/main/java/com/lovenav/mapper/LoginLogsDao.java
new file mode 100644
index 0000000..4a44097
--- /dev/null
+++ b/src/main/java/com/lovenav/mapper/LoginLogsDao.java
@@ -0,0 +1,19 @@
+package com.lovenav.mapper;
+
+import com.lovenav.entity.LoginLogs;
+import org.springframework.stereotype.Repository;
+
+@Repository
+public interface LoginLogsDao {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(LoginLogs record);
+
+ int insertSelective(LoginLogs record);
+
+ LoginLogs selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(LoginLogs record);
+
+ int updateByPrimaryKey(LoginLogs record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/lovenav/mapper/NoticeDao.java b/src/main/java/com/lovenav/mapper/NoticeDao.java
new file mode 100644
index 0000000..ac898c1
--- /dev/null
+++ b/src/main/java/com/lovenav/mapper/NoticeDao.java
@@ -0,0 +1,19 @@
+package com.lovenav.mapper;
+
+import com.lovenav.entity.Notice;
+import org.springframework.stereotype.Repository;
+
+@Repository
+public interface NoticeDao {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(Notice record);
+
+ int insertSelective(Notice record);
+
+ Notice selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(Notice record);
+
+ int updateByPrimaryKey(Notice record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/lovenav/mapper/RoleDao.java b/src/main/java/com/lovenav/mapper/RoleDao.java
new file mode 100644
index 0000000..6b1849e
--- /dev/null
+++ b/src/main/java/com/lovenav/mapper/RoleDao.java
@@ -0,0 +1,19 @@
+package com.lovenav.mapper;
+
+import com.lovenav.entity.Role;
+import org.springframework.stereotype.Repository;
+
+@Repository
+public interface RoleDao {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(Role record);
+
+ int insertSelective(Role record);
+
+ Role selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(Role record);
+
+ int updateByPrimaryKey(Role record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/lovenav/mapper/UrlAccessDao.java b/src/main/java/com/lovenav/mapper/UrlAccessDao.java
new file mode 100644
index 0000000..1107e8f
--- /dev/null
+++ b/src/main/java/com/lovenav/mapper/UrlAccessDao.java
@@ -0,0 +1,19 @@
+package com.lovenav.mapper;
+
+import com.lovenav.entity.UrlAccess;
+import org.springframework.stereotype.Repository;
+
+@Repository
+public interface UrlAccessDao {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(UrlAccess record);
+
+ int insertSelective(UrlAccess record);
+
+ UrlAccess selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(UrlAccess record);
+
+ int updateByPrimaryKey(UrlAccess record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/lovenav/mapper/UrlCateListDao.java b/src/main/java/com/lovenav/mapper/UrlCateListDao.java
new file mode 100644
index 0000000..1145d6a
--- /dev/null
+++ b/src/main/java/com/lovenav/mapper/UrlCateListDao.java
@@ -0,0 +1,19 @@
+package com.lovenav.mapper;
+
+import com.lovenav.entity.UrlCateList;
+import org.springframework.stereotype.Repository;
+
+@Repository
+public interface UrlCateListDao {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(UrlCateList record);
+
+ int insertSelective(UrlCateList record);
+
+ UrlCateList selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(UrlCateList record);
+
+ int updateByPrimaryKey(UrlCateList record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/lovenav/mapper/UrlListDao.java b/src/main/java/com/lovenav/mapper/UrlListDao.java
new file mode 100644
index 0000000..be9ec39
--- /dev/null
+++ b/src/main/java/com/lovenav/mapper/UrlListDao.java
@@ -0,0 +1,19 @@
+package com.lovenav.mapper;
+
+import com.lovenav.entity.UrlList;
+import org.springframework.stereotype.Repository;
+
+@Repository
+public interface UrlListDao {
+ int deleteByPrimaryKey(Long id);
+
+ int insert(UrlList record);
+
+ int insertSelective(UrlList record);
+
+ UrlList selectByPrimaryKey(Long id);
+
+ int updateByPrimaryKeySelective(UrlList record);
+
+ int updateByPrimaryKey(UrlList record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/lovenav/mapper/UserDao.java b/src/main/java/com/lovenav/mapper/UserDao.java
new file mode 100644
index 0000000..c08eb55
--- /dev/null
+++ b/src/main/java/com/lovenav/mapper/UserDao.java
@@ -0,0 +1,19 @@
+package com.lovenav.mapper;
+
+import com.lovenav.entity.User;
+import org.springframework.stereotype.Repository;
+
+@Repository
+public interface UserDao {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(User record);
+
+ int insertSelective(User record);
+
+ User selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(User record);
+
+ int updateByPrimaryKey(User record);
+}
\ No newline at end of file
diff --git a/src/main/java/com/lovenav/mapper/UserMetaDao.java b/src/main/java/com/lovenav/mapper/UserMetaDao.java
new file mode 100644
index 0000000..64086b5
--- /dev/null
+++ b/src/main/java/com/lovenav/mapper/UserMetaDao.java
@@ -0,0 +1,19 @@
+package com.lovenav.mapper;
+
+import com.lovenav.entity.UserMeta;
+import org.springframework.stereotype.Repository;
+
+@Repository
+public interface UserMetaDao {
+ int deleteByPrimaryKey(Long id);
+
+ int insert(UserMeta record);
+
+ int insertSelective(UserMeta record);
+
+ UserMeta selectByPrimaryKey(Long id);
+
+ int updateByPrimaryKeySelective(UserMeta record);
+
+ int updateByPrimaryKey(UserMeta record);
+}
\ No newline at end of file
diff --git a/src/main/java/generate/LnAuth.java b/src/main/java/generate/LnAuth.java
new file mode 100644
index 0000000..1a3ed71
--- /dev/null
+++ b/src/main/java/generate/LnAuth.java
@@ -0,0 +1,45 @@
+package generate;
+
+import java.io.Serializable;
+import lombok.Data;
+
+/**
+ * 后台菜单
+ * ln_auth
+ */
+@Data
+public class LnAuth implements Serializable {
+ private Integer id;
+
+ /**
+ * 图标
+ */
+ private String icon;
+
+ /**
+ * 菜单名称
+ */
+ private String name;
+
+ /**
+ * 菜单路由
+ */
+ private String routeUrl;
+
+ /**
+ * 上级id
+ */
+ private Integer pid;
+
+ /**
+ * 是否作为菜单展示 1是0不是
+ */
+ private Byte isMenu;
+
+ /**
+ * 权重
+ */
+ private Integer weigh;
+
+ private static final long serialVersionUID = 1L;
+}
\ No newline at end of file
diff --git a/src/main/java/generate/LnAuthDao.java b/src/main/java/generate/LnAuthDao.java
new file mode 100644
index 0000000..0e26405
--- /dev/null
+++ b/src/main/java/generate/LnAuthDao.java
@@ -0,0 +1,19 @@
+package generate;
+
+import generate.LnAuth;
+import org.springframework.stereotype.Repository;
+
+@Repository
+public interface LnAuthDao {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(LnAuth record);
+
+ int insertSelective(LnAuth record);
+
+ LnAuth selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(LnAuth record);
+
+ int updateByPrimaryKey(LnAuth record);
+}
\ No newline at end of file
diff --git a/src/main/java/generate/LnBanners.java b/src/main/java/generate/LnBanners.java
new file mode 100644
index 0000000..cce8605
--- /dev/null
+++ b/src/main/java/generate/LnBanners.java
@@ -0,0 +1,43 @@
+package generate;
+
+import java.io.Serializable;
+import java.util.Date;
+import lombok.Data;
+
+/**
+ * ln_banners
+ */
+@Data
+public class LnBanners implements Serializable {
+ /**
+ * id
+ */
+ private Integer id;
+
+ /**
+ * 图片url
+ */
+ private String imgUrl;
+
+ /**
+ * 权重
+ */
+ private Integer weigh;
+
+ /**
+ * 跳转链接
+ */
+ private String url;
+
+ /**
+ * 状态(0有效/1无效)
+ */
+ private Byte bannerStatus;
+
+ /**
+ * 创建时间
+ */
+ private Date createtime;
+
+ private static final long serialVersionUID = 1L;
+}
\ No newline at end of file
diff --git a/src/main/java/generate/LnBannersDao.java b/src/main/java/generate/LnBannersDao.java
new file mode 100644
index 0000000..870c144
--- /dev/null
+++ b/src/main/java/generate/LnBannersDao.java
@@ -0,0 +1,19 @@
+package generate;
+
+import generate.LnBanners;
+import org.springframework.stereotype.Repository;
+
+@Repository
+public interface LnBannersDao {
+ int deleteByPrimaryKey(Integer id);
+
+ int insert(LnBanners record);
+
+ int insertSelective(LnBanners record);
+
+ LnBanners selectByPrimaryKey(Integer id);
+
+ int updateByPrimaryKeySelective(LnBanners record);
+
+ int updateByPrimaryKey(LnBanners record);
+}
\ No newline at end of file
diff --git a/src/main/resources/generator/AdminDao.xml b/src/main/resources/generator/AdminDao.xml
new file mode 100644
index 0000000..29ef7cd
--- /dev/null
+++ b/src/main/resources/generator/AdminDao.xml
@@ -0,0 +1,111 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ id, admin_account, admin_password, admin_email, role_id, createtime, admin_status
+
+
+
+ delete from ln_admin
+ where id = #{id,jdbcType=INTEGER}
+
+
+ insert into ln_admin (admin_account, admin_password, admin_email,
+ role_id, createtime, admin_status
+ )
+ values (#{adminAccount,jdbcType=VARCHAR}, #{adminPassword,jdbcType=VARCHAR}, #{adminEmail,jdbcType=VARCHAR},
+ #{roleId,jdbcType=INTEGER}, #{createtime,jdbcType=TIMESTAMP}, #{adminStatus,jdbcType=INTEGER}
+ )
+
+
+ insert into ln_admin
+
+
+ admin_account,
+
+
+ admin_password,
+
+
+ admin_email,
+
+
+ role_id,
+
+
+ createtime,
+
+
+ admin_status,
+
+
+
+
+ #{adminAccount,jdbcType=VARCHAR},
+
+
+ #{adminPassword,jdbcType=VARCHAR},
+
+
+ #{adminEmail,jdbcType=VARCHAR},
+
+
+ #{roleId,jdbcType=INTEGER},
+
+
+ #{createtime,jdbcType=TIMESTAMP},
+
+
+ #{adminStatus,jdbcType=INTEGER},
+
+
+
+
+ update ln_admin
+
+
+ admin_account = #{adminAccount,jdbcType=VARCHAR},
+
+
+ admin_password = #{adminPassword,jdbcType=VARCHAR},
+
+
+ admin_email = #{adminEmail,jdbcType=VARCHAR},
+
+
+ role_id = #{roleId,jdbcType=INTEGER},
+
+
+ createtime = #{createtime,jdbcType=TIMESTAMP},
+
+
+ admin_status = #{adminStatus,jdbcType=INTEGER},
+
+
+ where id = #{id,jdbcType=INTEGER}
+
+
+ update ln_admin
+ set admin_account = #{adminAccount,jdbcType=VARCHAR},
+ admin_password = #{adminPassword,jdbcType=VARCHAR},
+ admin_email = #{adminEmail,jdbcType=VARCHAR},
+ role_id = #{roleId,jdbcType=INTEGER},
+ createtime = #{createtime,jdbcType=TIMESTAMP},
+ admin_status = #{adminStatus,jdbcType=INTEGER}
+ where id = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/generator/AdminMetaDao.xml b/src/main/resources/generator/AdminMetaDao.xml
new file mode 100644
index 0000000..64e3640
--- /dev/null
+++ b/src/main/resources/generator/AdminMetaDao.xml
@@ -0,0 +1,76 @@
+
+
+
+
+
+
+
+
+
+
+ id, admin_id, meta_key, meta_value
+
+
+
+ delete from ln_admin_meta
+ where id = #{id,jdbcType=BIGINT}
+
+
+ insert into ln_admin_meta (admin_id, meta_key, meta_value
+ )
+ values (#{adminId,jdbcType=BIGINT}, #{metaKey,jdbcType=VARCHAR}, #{metaValue,jdbcType=VARCHAR}
+ )
+
+
+ insert into ln_admin_meta
+
+
+ admin_id,
+
+
+ meta_key,
+
+
+ meta_value,
+
+
+
+
+ #{adminId,jdbcType=BIGINT},
+
+
+ #{metaKey,jdbcType=VARCHAR},
+
+
+ #{metaValue,jdbcType=VARCHAR},
+
+
+
+
+ update ln_admin_meta
+
+
+ admin_id = #{adminId,jdbcType=BIGINT},
+
+
+ meta_key = #{metaKey,jdbcType=VARCHAR},
+
+
+ meta_value = #{metaValue,jdbcType=VARCHAR},
+
+
+ where id = #{id,jdbcType=BIGINT}
+
+
+ update ln_admin_meta
+ set admin_id = #{adminId,jdbcType=BIGINT},
+ meta_key = #{metaKey,jdbcType=VARCHAR},
+ meta_value = #{metaValue,jdbcType=VARCHAR}
+ where id = #{id,jdbcType=BIGINT}
+
+
\ No newline at end of file
diff --git a/src/main/resources/generator/AttachmentDao.xml b/src/main/resources/generator/AttachmentDao.xml
new file mode 100644
index 0000000..cd0a094
--- /dev/null
+++ b/src/main/resources/generator/AttachmentDao.xml
@@ -0,0 +1,144 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ id, `path`, suffix, file_name, `size`, md5, width, height, `storage`, createtime
+
+
+
+ delete from ln_attachment
+ where id = #{id,jdbcType=BIGINT}
+
+
+ insert into ln_attachment (`path`, suffix, file_name,
+ `size`, md5, width, height,
+ `storage`, createtime)
+ values (#{path,jdbcType=VARCHAR}, #{suffix,jdbcType=VARCHAR}, #{fileName,jdbcType=VARCHAR},
+ #{size,jdbcType=DOUBLE}, #{md5,jdbcType=VARCHAR}, #{width,jdbcType=DOUBLE}, #{height,jdbcType=DOUBLE},
+ #{storage,jdbcType=OTHER}, #{createtime,jdbcType=INTEGER})
+
+
+ insert into ln_attachment
+
+
+ `path`,
+
+
+ suffix,
+
+
+ file_name,
+
+
+ `size`,
+
+
+ md5,
+
+
+ width,
+
+
+ height,
+
+
+ `storage`,
+
+
+ createtime,
+
+
+
+
+ #{path,jdbcType=VARCHAR},
+
+
+ #{suffix,jdbcType=VARCHAR},
+
+
+ #{fileName,jdbcType=VARCHAR},
+
+
+ #{size,jdbcType=DOUBLE},
+
+
+ #{md5,jdbcType=VARCHAR},
+
+
+ #{width,jdbcType=DOUBLE},
+
+
+ #{height,jdbcType=DOUBLE},
+
+
+ #{storage,jdbcType=OTHER},
+
+
+ #{createtime,jdbcType=INTEGER},
+
+
+
+
+ update ln_attachment
+
+
+ `path` = #{path,jdbcType=VARCHAR},
+
+
+ suffix = #{suffix,jdbcType=VARCHAR},
+
+
+ file_name = #{fileName,jdbcType=VARCHAR},
+
+
+ `size` = #{size,jdbcType=DOUBLE},
+
+
+ md5 = #{md5,jdbcType=VARCHAR},
+
+
+ width = #{width,jdbcType=DOUBLE},
+
+
+ height = #{height,jdbcType=DOUBLE},
+
+
+ `storage` = #{storage,jdbcType=OTHER},
+
+
+ createtime = #{createtime,jdbcType=INTEGER},
+
+
+ where id = #{id,jdbcType=BIGINT}
+
+
+ update ln_attachment
+ set `path` = #{path,jdbcType=VARCHAR},
+ suffix = #{suffix,jdbcType=VARCHAR},
+ file_name = #{fileName,jdbcType=VARCHAR},
+ `size` = #{size,jdbcType=DOUBLE},
+ md5 = #{md5,jdbcType=VARCHAR},
+ width = #{width,jdbcType=DOUBLE},
+ height = #{height,jdbcType=DOUBLE},
+ `storage` = #{storage,jdbcType=OTHER},
+ createtime = #{createtime,jdbcType=INTEGER}
+ where id = #{id,jdbcType=BIGINT}
+
+
\ No newline at end of file
diff --git a/src/main/resources/generator/AuthDao.xml b/src/main/resources/generator/AuthDao.xml
new file mode 100644
index 0000000..60524fe
--- /dev/null
+++ b/src/main/resources/generator/AuthDao.xml
@@ -0,0 +1,109 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ id, icon, `name`, route_url, pid, is_menu, weigh
+
+
+
+ delete from ln_auth
+ where id = #{id,jdbcType=INTEGER}
+
+
+ insert into ln_auth (icon, `name`, route_url,
+ pid, is_menu, weigh)
+ values (#{icon,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{routeUrl,jdbcType=VARCHAR},
+ #{pid,jdbcType=INTEGER}, #{isMenu,jdbcType=TINYINT}, #{weigh,jdbcType=INTEGER})
+
+
+ insert into ln_auth
+
+
+ icon,
+
+
+ `name`,
+
+
+ route_url,
+
+
+ pid,
+
+
+ is_menu,
+
+
+ weigh,
+
+
+
+
+ #{icon,jdbcType=VARCHAR},
+
+
+ #{name,jdbcType=VARCHAR},
+
+
+ #{routeUrl,jdbcType=VARCHAR},
+
+
+ #{pid,jdbcType=INTEGER},
+
+
+ #{isMenu,jdbcType=TINYINT},
+
+
+ #{weigh,jdbcType=INTEGER},
+
+
+
+
+ update ln_auth
+
+
+ icon = #{icon,jdbcType=VARCHAR},
+
+
+ `name` = #{name,jdbcType=VARCHAR},
+
+
+ route_url = #{routeUrl,jdbcType=VARCHAR},
+
+
+ pid = #{pid,jdbcType=INTEGER},
+
+
+ is_menu = #{isMenu,jdbcType=TINYINT},
+
+
+ weigh = #{weigh,jdbcType=INTEGER},
+
+
+ where id = #{id,jdbcType=INTEGER}
+
+
+ update ln_auth
+ set icon = #{icon,jdbcType=VARCHAR},
+ `name` = #{name,jdbcType=VARCHAR},
+ route_url = #{routeUrl,jdbcType=VARCHAR},
+ pid = #{pid,jdbcType=INTEGER},
+ is_menu = #{isMenu,jdbcType=TINYINT},
+ weigh = #{weigh,jdbcType=INTEGER}
+ where id = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/generator/BannersDao.xml b/src/main/resources/generator/BannersDao.xml
new file mode 100644
index 0000000..edefe7e
--- /dev/null
+++ b/src/main/resources/generator/BannersDao.xml
@@ -0,0 +1,98 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ id, img_url, weigh, url, banner_status, createtime
+
+
+
+ delete from ln_banners
+ where id = #{id,jdbcType=INTEGER}
+
+
+ insert into ln_banners (img_url, weigh, url,
+ banner_status, createtime)
+ values (#{imgUrl,jdbcType=VARCHAR}, #{weigh,jdbcType=INTEGER}, #{url,jdbcType=VARCHAR},
+ #{bannerStatus,jdbcType=TINYINT}, #{createtime,jdbcType=TIMESTAMP})
+
+
+ insert into ln_banners
+
+
+ img_url,
+
+
+ weigh,
+
+
+ url,
+
+
+ banner_status,
+
+
+ createtime,
+
+
+
+
+ #{imgUrl,jdbcType=VARCHAR},
+
+
+ #{weigh,jdbcType=INTEGER},
+
+
+ #{url,jdbcType=VARCHAR},
+
+
+ #{bannerStatus,jdbcType=TINYINT},
+
+
+ #{createtime,jdbcType=TIMESTAMP},
+
+
+
+
+ update ln_banners
+
+
+ img_url = #{imgUrl,jdbcType=VARCHAR},
+
+
+ weigh = #{weigh,jdbcType=INTEGER},
+
+
+ url = #{url,jdbcType=VARCHAR},
+
+
+ banner_status = #{bannerStatus,jdbcType=TINYINT},
+
+
+ createtime = #{createtime,jdbcType=TIMESTAMP},
+
+
+ where id = #{id,jdbcType=INTEGER}
+
+
+ update ln_banners
+ set img_url = #{imgUrl,jdbcType=VARCHAR},
+ weigh = #{weigh,jdbcType=INTEGER},
+ url = #{url,jdbcType=VARCHAR},
+ banner_status = #{bannerStatus,jdbcType=TINYINT},
+ createtime = #{createtime,jdbcType=TIMESTAMP}
+ where id = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/generator/CollectIconListDao.xml b/src/main/resources/generator/CollectIconListDao.xml
new file mode 100644
index 0000000..1f42392
--- /dev/null
+++ b/src/main/resources/generator/CollectIconListDao.xml
@@ -0,0 +1,63 @@
+
+
+
+
+
+
+
+
+
+ id, url_md5, icon_url
+
+
+
+ delete from ln_collect_icon_list
+ where id = #{id,jdbcType=BIGINT}
+
+
+ insert into ln_collect_icon_list (url_md5, icon_url)
+ values (#{urlMd5,jdbcType=VARCHAR}, #{iconUrl,jdbcType=VARCHAR})
+
+
+ insert into ln_collect_icon_list
+
+
+ url_md5,
+
+
+ icon_url,
+
+
+
+
+ #{urlMd5,jdbcType=VARCHAR},
+
+
+ #{iconUrl,jdbcType=VARCHAR},
+
+
+
+
+ update ln_collect_icon_list
+
+
+ url_md5 = #{urlMd5,jdbcType=VARCHAR},
+
+
+ icon_url = #{iconUrl,jdbcType=VARCHAR},
+
+
+ where id = #{id,jdbcType=BIGINT}
+
+
+ update ln_collect_icon_list
+ set url_md5 = #{urlMd5,jdbcType=VARCHAR},
+ icon_url = #{iconUrl,jdbcType=VARCHAR}
+ where id = #{id,jdbcType=BIGINT}
+
+
\ No newline at end of file
diff --git a/src/main/resources/generator/CommentDao.xml b/src/main/resources/generator/CommentDao.xml
new file mode 100644
index 0000000..a7f7afc
--- /dev/null
+++ b/src/main/resources/generator/CommentDao.xml
@@ -0,0 +1,147 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ id, url_id, user_id, content, root_comment_id, like_count, comment_time, comment_status,
+ update_time, rating
+
+
+
+ delete from ln_comment
+ where id = #{id,jdbcType=INTEGER}
+
+
+ insert into ln_comment (url_id, user_id, content,
+ root_comment_id, like_count, comment_time,
+ comment_status, update_time, rating
+ )
+ values (#{urlId,jdbcType=INTEGER}, #{userId,jdbcType=INTEGER}, #{content,jdbcType=VARCHAR},
+ #{rootCommentId,jdbcType=INTEGER}, #{likeCount,jdbcType=BIGINT}, #{commentTime,jdbcType=TIMESTAMP},
+ #{commentStatus,jdbcType=TINYINT}, #{updateTime,jdbcType=TIMESTAMP}, #{rating,jdbcType=INTEGER}
+ )
+
+
+ insert into ln_comment
+
+
+ url_id,
+
+
+ user_id,
+
+
+ content,
+
+
+ root_comment_id,
+
+
+ like_count,
+
+
+ comment_time,
+
+
+ comment_status,
+
+
+ update_time,
+
+
+ rating,
+
+
+
+
+ #{urlId,jdbcType=INTEGER},
+
+
+ #{userId,jdbcType=INTEGER},
+
+
+ #{content,jdbcType=VARCHAR},
+
+
+ #{rootCommentId,jdbcType=INTEGER},
+
+
+ #{likeCount,jdbcType=BIGINT},
+
+
+ #{commentTime,jdbcType=TIMESTAMP},
+
+
+ #{commentStatus,jdbcType=TINYINT},
+
+
+ #{updateTime,jdbcType=TIMESTAMP},
+
+
+ #{rating,jdbcType=INTEGER},
+
+
+
+
+ update ln_comment
+
+
+ url_id = #{urlId,jdbcType=INTEGER},
+
+
+ user_id = #{userId,jdbcType=INTEGER},
+
+
+ content = #{content,jdbcType=VARCHAR},
+
+
+ root_comment_id = #{rootCommentId,jdbcType=INTEGER},
+
+
+ like_count = #{likeCount,jdbcType=BIGINT},
+
+
+ comment_time = #{commentTime,jdbcType=TIMESTAMP},
+
+
+ comment_status = #{commentStatus,jdbcType=TINYINT},
+
+
+ update_time = #{updateTime,jdbcType=TIMESTAMP},
+
+
+ rating = #{rating,jdbcType=INTEGER},
+
+
+ where id = #{id,jdbcType=INTEGER}
+
+
+ update ln_comment
+ set url_id = #{urlId,jdbcType=INTEGER},
+ user_id = #{userId,jdbcType=INTEGER},
+ content = #{content,jdbcType=VARCHAR},
+ root_comment_id = #{rootCommentId,jdbcType=INTEGER},
+ like_count = #{likeCount,jdbcType=BIGINT},
+ comment_time = #{commentTime,jdbcType=TIMESTAMP},
+ comment_status = #{commentStatus,jdbcType=TINYINT},
+ update_time = #{updateTime,jdbcType=TIMESTAMP},
+ rating = #{rating,jdbcType=INTEGER}
+ where id = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/generator/ConfigDao.xml b/src/main/resources/generator/ConfigDao.xml
new file mode 100644
index 0000000..496d86f
--- /dev/null
+++ b/src/main/resources/generator/ConfigDao.xml
@@ -0,0 +1,87 @@
+
+
+
+
+
+
+
+
+
+
+
+ id, `type`, `name`, `value`, updatetime
+
+
+
+ delete from ln_config
+ where id = #{id,jdbcType=INTEGER}
+
+
+ insert into ln_config (`type`, `name`, `value`,
+ updatetime)
+ values (#{type,jdbcType=OTHER}, #{name,jdbcType=VARCHAR}, #{value,jdbcType=VARCHAR},
+ #{updatetime,jdbcType=TIMESTAMP})
+
+
+ insert into ln_config
+
+
+ `type`,
+
+
+ `name`,
+
+
+ `value`,
+
+
+ updatetime,
+
+
+
+
+ #{type,jdbcType=OTHER},
+
+
+ #{name,jdbcType=VARCHAR},
+
+
+ #{value,jdbcType=VARCHAR},
+
+
+ #{updatetime,jdbcType=TIMESTAMP},
+
+
+
+
+ update ln_config
+
+
+ `type` = #{type,jdbcType=OTHER},
+
+
+ `name` = #{name,jdbcType=VARCHAR},
+
+
+ `value` = #{value,jdbcType=VARCHAR},
+
+
+ updatetime = #{updatetime,jdbcType=TIMESTAMP},
+
+
+ where id = #{id,jdbcType=INTEGER}
+
+
+ update ln_config
+ set `type` = #{type,jdbcType=OTHER},
+ `name` = #{name,jdbcType=VARCHAR},
+ `value` = #{value,jdbcType=VARCHAR},
+ updatetime = #{updatetime,jdbcType=TIMESTAMP}
+ where id = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/generator/LoginLogsDao.xml b/src/main/resources/generator/LoginLogsDao.xml
new file mode 100644
index 0000000..1b6b962
--- /dev/null
+++ b/src/main/resources/generator/LoginLogsDao.xml
@@ -0,0 +1,87 @@
+
+
+
+
+
+
+
+
+
+
+
+ id, login_ip, user_id, login_time, `location`
+
+
+
+ delete from ln_login_logs
+ where id = #{id,jdbcType=INTEGER}
+
+
+ insert into ln_login_logs (login_ip, user_id, login_time,
+ `location`)
+ values (#{loginIp,jdbcType=VARCHAR}, #{userId,jdbcType=TINYINT}, #{loginTime,jdbcType=TIMESTAMP},
+ #{location,jdbcType=VARCHAR})
+
+
+ insert into ln_login_logs
+
+
+ login_ip,
+
+
+ user_id,
+
+
+ login_time,
+
+
+ `location`,
+
+
+
+
+ #{loginIp,jdbcType=VARCHAR},
+
+
+ #{userId,jdbcType=TINYINT},
+
+
+ #{loginTime,jdbcType=TIMESTAMP},
+
+
+ #{location,jdbcType=VARCHAR},
+
+
+
+
+ update ln_login_logs
+
+
+ login_ip = #{loginIp,jdbcType=VARCHAR},
+
+
+ user_id = #{userId,jdbcType=TINYINT},
+
+
+ login_time = #{loginTime,jdbcType=TIMESTAMP},
+
+
+ `location` = #{location,jdbcType=VARCHAR},
+
+
+ where id = #{id,jdbcType=INTEGER}
+
+
+ update ln_login_logs
+ set login_ip = #{loginIp,jdbcType=VARCHAR},
+ user_id = #{userId,jdbcType=TINYINT},
+ login_time = #{loginTime,jdbcType=TIMESTAMP},
+ `location` = #{location,jdbcType=VARCHAR}
+ where id = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/generator/NoticeDao.xml b/src/main/resources/generator/NoticeDao.xml
new file mode 100644
index 0000000..274f0ee
--- /dev/null
+++ b/src/main/resources/generator/NoticeDao.xml
@@ -0,0 +1,98 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ id, title, content, url, notice_status, createtime
+
+
+
+ delete from ln_notice
+ where id = #{id,jdbcType=INTEGER}
+
+
+ insert into ln_notice (title, content, url,
+ notice_status, createtime)
+ values (#{title,jdbcType=VARCHAR}, #{content,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR},
+ #{noticeStatus,jdbcType=TINYINT}, #{createtime,jdbcType=TIMESTAMP})
+
+
+ insert into ln_notice
+
+
+ title,
+
+
+ content,
+
+
+ url,
+
+
+ notice_status,
+
+
+ createtime,
+
+
+
+
+ #{title,jdbcType=VARCHAR},
+
+
+ #{content,jdbcType=VARCHAR},
+
+
+ #{url,jdbcType=VARCHAR},
+
+
+ #{noticeStatus,jdbcType=TINYINT},
+
+
+ #{createtime,jdbcType=TIMESTAMP},
+
+
+
+
+ update ln_notice
+
+
+ title = #{title,jdbcType=VARCHAR},
+
+
+ content = #{content,jdbcType=VARCHAR},
+
+
+ url = #{url,jdbcType=VARCHAR},
+
+
+ notice_status = #{noticeStatus,jdbcType=TINYINT},
+
+
+ createtime = #{createtime,jdbcType=TIMESTAMP},
+
+
+ where id = #{id,jdbcType=INTEGER}
+
+
+ update ln_notice
+ set title = #{title,jdbcType=VARCHAR},
+ content = #{content,jdbcType=VARCHAR},
+ url = #{url,jdbcType=VARCHAR},
+ notice_status = #{noticeStatus,jdbcType=TINYINT},
+ createtime = #{createtime,jdbcType=TIMESTAMP}
+ where id = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/generator/RoleDao.xml b/src/main/resources/generator/RoleDao.xml
new file mode 100644
index 0000000..1463337
--- /dev/null
+++ b/src/main/resources/generator/RoleDao.xml
@@ -0,0 +1,98 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ id, role_name, role_level, pid, menu_id, role_status
+
+
+
+ delete from ln_role
+ where id = #{id,jdbcType=INTEGER}
+
+
+ insert into ln_role (role_name, role_level, pid,
+ menu_id, role_status)
+ values (#{roleName,jdbcType=VARCHAR}, #{roleLevel,jdbcType=VARCHAR}, #{pid,jdbcType=INTEGER},
+ #{menuId,jdbcType=INTEGER}, #{roleStatus,jdbcType=TINYINT})
+
+
+ insert into ln_role
+
+
+ role_name,
+
+
+ role_level,
+
+
+ pid,
+
+
+ menu_id,
+
+
+ role_status,
+
+
+
+
+ #{roleName,jdbcType=VARCHAR},
+
+
+ #{roleLevel,jdbcType=VARCHAR},
+
+
+ #{pid,jdbcType=INTEGER},
+
+
+ #{menuId,jdbcType=INTEGER},
+
+
+ #{roleStatus,jdbcType=TINYINT},
+
+
+
+
+ update ln_role
+
+
+ role_name = #{roleName,jdbcType=VARCHAR},
+
+
+ role_level = #{roleLevel,jdbcType=VARCHAR},
+
+
+ pid = #{pid,jdbcType=INTEGER},
+
+
+ menu_id = #{menuId,jdbcType=INTEGER},
+
+
+ role_status = #{roleStatus,jdbcType=TINYINT},
+
+
+ where id = #{id,jdbcType=INTEGER}
+
+
+ update ln_role
+ set role_name = #{roleName,jdbcType=VARCHAR},
+ role_level = #{roleLevel,jdbcType=VARCHAR},
+ pid = #{pid,jdbcType=INTEGER},
+ menu_id = #{menuId,jdbcType=INTEGER},
+ role_status = #{roleStatus,jdbcType=TINYINT}
+ where id = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/generator/UrlAccessDao.xml b/src/main/resources/generator/UrlAccessDao.xml
new file mode 100644
index 0000000..941dfcc
--- /dev/null
+++ b/src/main/resources/generator/UrlAccessDao.xml
@@ -0,0 +1,76 @@
+
+
+
+
+
+
+
+
+
+
+ id, url_id, `time`, views
+
+
+
+ delete from ln_url_access
+ where id = #{id,jdbcType=INTEGER}
+
+
+ insert into ln_url_access (url_id, `time`, views
+ )
+ values (#{urlId,jdbcType=INTEGER}, #{time,jdbcType=TIMESTAMP}, #{views,jdbcType=BIGINT}
+ )
+
+
+ insert into ln_url_access
+
+
+ url_id,
+
+
+ `time`,
+
+
+ views,
+
+
+
+
+ #{urlId,jdbcType=INTEGER},
+
+
+ #{time,jdbcType=TIMESTAMP},
+
+
+ #{views,jdbcType=BIGINT},
+
+
+
+
+ update ln_url_access
+
+
+ url_id = #{urlId,jdbcType=INTEGER},
+
+
+ `time` = #{time,jdbcType=TIMESTAMP},
+
+
+ views = #{views,jdbcType=BIGINT},
+
+
+ where id = #{id,jdbcType=INTEGER}
+
+
+ update ln_url_access
+ set url_id = #{urlId,jdbcType=INTEGER},
+ `time` = #{time,jdbcType=TIMESTAMP},
+ views = #{views,jdbcType=BIGINT}
+ where id = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/generator/UrlCateListDao.xml b/src/main/resources/generator/UrlCateListDao.xml
new file mode 100644
index 0000000..978554d
--- /dev/null
+++ b/src/main/resources/generator/UrlCateListDao.xml
@@ -0,0 +1,147 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ id, `name`, createtime, url_number, weigh, `status`, need_login, user_id, root_cate_id,
+ ico
+
+
+
+ delete from ln_url_cate_list
+ where id = #{id,jdbcType=INTEGER}
+
+
+ insert into ln_url_cate_list (`name`, createtime, url_number,
+ weigh, `status`, need_login,
+ user_id, root_cate_id, ico
+ )
+ values (#{name,jdbcType=VARCHAR}, #{createtime,jdbcType=INTEGER}, #{urlNumber,jdbcType=BIGINT},
+ #{weigh,jdbcType=BIGINT}, #{status,jdbcType=TINYINT}, #{needLogin,jdbcType=TINYINT},
+ #{userId,jdbcType=INTEGER}, #{rootCateId,jdbcType=INTEGER}, #{ico,jdbcType=VARCHAR}
+ )
+
+
+ insert into ln_url_cate_list
+
+
+ `name`,
+
+
+ createtime,
+
+
+ url_number,
+
+
+ weigh,
+
+
+ `status`,
+
+
+ need_login,
+
+
+ user_id,
+
+
+ root_cate_id,
+
+
+ ico,
+
+
+
+
+ #{name,jdbcType=VARCHAR},
+
+
+ #{createtime,jdbcType=INTEGER},
+
+
+ #{urlNumber,jdbcType=BIGINT},
+
+
+ #{weigh,jdbcType=BIGINT},
+
+
+ #{status,jdbcType=TINYINT},
+
+
+ #{needLogin,jdbcType=TINYINT},
+
+
+ #{userId,jdbcType=INTEGER},
+
+
+ #{rootCateId,jdbcType=INTEGER},
+
+
+ #{ico,jdbcType=VARCHAR},
+
+
+
+
+ update ln_url_cate_list
+
+
+ `name` = #{name,jdbcType=VARCHAR},
+
+
+ createtime = #{createtime,jdbcType=INTEGER},
+
+
+ url_number = #{urlNumber,jdbcType=BIGINT},
+
+
+ weigh = #{weigh,jdbcType=BIGINT},
+
+
+ `status` = #{status,jdbcType=TINYINT},
+
+
+ need_login = #{needLogin,jdbcType=TINYINT},
+
+
+ user_id = #{userId,jdbcType=INTEGER},
+
+
+ root_cate_id = #{rootCateId,jdbcType=INTEGER},
+
+
+ ico = #{ico,jdbcType=VARCHAR},
+
+
+ where id = #{id,jdbcType=INTEGER}
+
+
+ update ln_url_cate_list
+ set `name` = #{name,jdbcType=VARCHAR},
+ createtime = #{createtime,jdbcType=INTEGER},
+ url_number = #{urlNumber,jdbcType=BIGINT},
+ weigh = #{weigh,jdbcType=BIGINT},
+ `status` = #{status,jdbcType=TINYINT},
+ need_login = #{needLogin,jdbcType=TINYINT},
+ user_id = #{userId,jdbcType=INTEGER},
+ root_cate_id = #{rootCateId,jdbcType=INTEGER},
+ ico = #{ico,jdbcType=VARCHAR}
+ where id = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/generator/UrlListDao.xml b/src/main/resources/generator/UrlListDao.xml
new file mode 100644
index 0000000..d5ace86
--- /dev/null
+++ b/src/main/resources/generator/UrlListDao.xml
@@ -0,0 +1,228 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ id, `name`, icon, cate_id, url, createtime, views, tags, weigh, `status`, `desc`,
+ need_login, agent_hint, is_need_agent, is_ad, is_top, is_encrypt
+
+
+
+ delete from ln_url_list
+ where id = #{id,jdbcType=BIGINT}
+
+
+ insert into ln_url_list (`name`, icon, cate_id,
+ url, createtime, views,
+ tags, weigh, `status`,
+ `desc`, need_login, agent_hint,
+ is_need_agent, is_ad, is_top,
+ is_encrypt)
+ values (#{name,jdbcType=VARCHAR}, #{icon,jdbcType=VARCHAR}, #{cateId,jdbcType=INTEGER},
+ #{url,jdbcType=VARCHAR}, #{createtime,jdbcType=INTEGER}, #{views,jdbcType=BIGINT},
+ #{tags,jdbcType=VARCHAR}, #{weigh,jdbcType=BIGINT}, #{status,jdbcType=TINYINT},
+ #{desc,jdbcType=VARCHAR}, #{needLogin,jdbcType=TINYINT}, #{agentHint,jdbcType=VARCHAR},
+ #{isNeedAgent,jdbcType=TINYINT}, #{isAd,jdbcType=TINYINT}, #{isTop,jdbcType=TINYINT},
+ #{isEncrypt,jdbcType=TINYINT})
+
+
+ insert into ln_url_list
+
+
+ `name`,
+
+
+ icon,
+
+
+ cate_id,
+
+
+ url,
+
+
+ createtime,
+
+
+ views,
+
+
+ tags,
+
+
+ weigh,
+
+
+ `status`,
+
+
+ `desc`,
+
+
+ need_login,
+
+
+ agent_hint,
+
+
+ is_need_agent,
+
+
+ is_ad,
+
+
+ is_top,
+
+
+ is_encrypt,
+
+
+
+
+ #{name,jdbcType=VARCHAR},
+
+
+ #{icon,jdbcType=VARCHAR},
+
+
+ #{cateId,jdbcType=INTEGER},
+
+
+ #{url,jdbcType=VARCHAR},
+
+
+ #{createtime,jdbcType=INTEGER},
+
+
+ #{views,jdbcType=BIGINT},
+
+
+ #{tags,jdbcType=VARCHAR},
+
+
+ #{weigh,jdbcType=BIGINT},
+
+
+ #{status,jdbcType=TINYINT},
+
+
+ #{desc,jdbcType=VARCHAR},
+
+
+ #{needLogin,jdbcType=TINYINT},
+
+
+ #{agentHint,jdbcType=VARCHAR},
+
+
+ #{isNeedAgent,jdbcType=TINYINT},
+
+
+ #{isAd,jdbcType=TINYINT},
+
+
+ #{isTop,jdbcType=TINYINT},
+
+
+ #{isEncrypt,jdbcType=TINYINT},
+
+
+
+
+ update ln_url_list
+
+
+ `name` = #{name,jdbcType=VARCHAR},
+
+
+ icon = #{icon,jdbcType=VARCHAR},
+
+
+ cate_id = #{cateId,jdbcType=INTEGER},
+
+
+ url = #{url,jdbcType=VARCHAR},
+
+
+ createtime = #{createtime,jdbcType=INTEGER},
+
+
+ views = #{views,jdbcType=BIGINT},
+
+
+ tags = #{tags,jdbcType=VARCHAR},
+
+
+ weigh = #{weigh,jdbcType=BIGINT},
+
+
+ `status` = #{status,jdbcType=TINYINT},
+
+
+ `desc` = #{desc,jdbcType=VARCHAR},
+
+
+ need_login = #{needLogin,jdbcType=TINYINT},
+
+
+ agent_hint = #{agentHint,jdbcType=VARCHAR},
+
+
+ is_need_agent = #{isNeedAgent,jdbcType=TINYINT},
+
+
+ is_ad = #{isAd,jdbcType=TINYINT},
+
+
+ is_top = #{isTop,jdbcType=TINYINT},
+
+
+ is_encrypt = #{isEncrypt,jdbcType=TINYINT},
+
+
+ where id = #{id,jdbcType=BIGINT}
+
+
+ update ln_url_list
+ set `name` = #{name,jdbcType=VARCHAR},
+ icon = #{icon,jdbcType=VARCHAR},
+ cate_id = #{cateId,jdbcType=INTEGER},
+ url = #{url,jdbcType=VARCHAR},
+ createtime = #{createtime,jdbcType=INTEGER},
+ views = #{views,jdbcType=BIGINT},
+ tags = #{tags,jdbcType=VARCHAR},
+ weigh = #{weigh,jdbcType=BIGINT},
+ `status` = #{status,jdbcType=TINYINT},
+ `desc` = #{desc,jdbcType=VARCHAR},
+ need_login = #{needLogin,jdbcType=TINYINT},
+ agent_hint = #{agentHint,jdbcType=VARCHAR},
+ is_need_agent = #{isNeedAgent,jdbcType=TINYINT},
+ is_ad = #{isAd,jdbcType=TINYINT},
+ is_top = #{isTop,jdbcType=TINYINT},
+ is_encrypt = #{isEncrypt,jdbcType=TINYINT}
+ where id = #{id,jdbcType=BIGINT}
+
+
\ No newline at end of file
diff --git a/src/main/resources/generator/UserDao.xml b/src/main/resources/generator/UserDao.xml
new file mode 100644
index 0000000..55e861b
--- /dev/null
+++ b/src/main/resources/generator/UserDao.xml
@@ -0,0 +1,147 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ id, user_login, user_password, phone, avatar, nickname, user_email, user_status,
+ user_registered, role_id
+
+
+
+ delete from ln_user
+ where id = #{id,jdbcType=INTEGER}
+
+
+ insert into ln_user (user_login, user_password, phone,
+ avatar, nickname, user_email,
+ user_status, user_registered, role_id
+ )
+ values (#{userLogin,jdbcType=VARCHAR}, #{userPassword,jdbcType=VARCHAR}, #{phone,jdbcType=BIGINT},
+ #{avatar,jdbcType=VARCHAR}, #{nickname,jdbcType=VARCHAR}, #{userEmail,jdbcType=VARCHAR},
+ #{userStatus,jdbcType=TINYINT}, #{userRegistered,jdbcType=TIMESTAMP}, #{roleId,jdbcType=TINYINT}
+ )
+
+
+ insert into ln_user
+
+
+ user_login,
+
+
+ user_password,
+
+
+ phone,
+
+
+ avatar,
+
+
+ nickname,
+
+
+ user_email,
+
+
+ user_status,
+
+
+ user_registered,
+
+
+ role_id,
+
+
+
+
+ #{userLogin,jdbcType=VARCHAR},
+
+
+ #{userPassword,jdbcType=VARCHAR},
+
+
+ #{phone,jdbcType=BIGINT},
+
+
+ #{avatar,jdbcType=VARCHAR},
+
+
+ #{nickname,jdbcType=VARCHAR},
+
+
+ #{userEmail,jdbcType=VARCHAR},
+
+
+ #{userStatus,jdbcType=TINYINT},
+
+
+ #{userRegistered,jdbcType=TIMESTAMP},
+
+
+ #{roleId,jdbcType=TINYINT},
+
+
+
+
+ update ln_user
+
+
+ user_login = #{userLogin,jdbcType=VARCHAR},
+
+
+ user_password = #{userPassword,jdbcType=VARCHAR},
+
+
+ phone = #{phone,jdbcType=BIGINT},
+
+
+ avatar = #{avatar,jdbcType=VARCHAR},
+
+
+ nickname = #{nickname,jdbcType=VARCHAR},
+
+
+ user_email = #{userEmail,jdbcType=VARCHAR},
+
+
+ user_status = #{userStatus,jdbcType=TINYINT},
+
+
+ user_registered = #{userRegistered,jdbcType=TIMESTAMP},
+
+
+ role_id = #{roleId,jdbcType=TINYINT},
+
+
+ where id = #{id,jdbcType=INTEGER}
+
+
+ update ln_user
+ set user_login = #{userLogin,jdbcType=VARCHAR},
+ user_password = #{userPassword,jdbcType=VARCHAR},
+ phone = #{phone,jdbcType=BIGINT},
+ avatar = #{avatar,jdbcType=VARCHAR},
+ nickname = #{nickname,jdbcType=VARCHAR},
+ user_email = #{userEmail,jdbcType=VARCHAR},
+ user_status = #{userStatus,jdbcType=TINYINT},
+ user_registered = #{userRegistered,jdbcType=TIMESTAMP},
+ role_id = #{roleId,jdbcType=TINYINT}
+ where id = #{id,jdbcType=INTEGER}
+
+
\ No newline at end of file
diff --git a/src/main/resources/generator/UserMetaDao.xml b/src/main/resources/generator/UserMetaDao.xml
new file mode 100644
index 0000000..7254706
--- /dev/null
+++ b/src/main/resources/generator/UserMetaDao.xml
@@ -0,0 +1,76 @@
+
+
+
+
+
+
+
+
+
+
+ id, user_id, meta_key, meta_value
+
+
+
+ delete from ln_user_meta
+ where id = #{id,jdbcType=BIGINT}
+
+
+ insert into ln_user_meta (user_id, meta_key, meta_value
+ )
+ values (#{userId,jdbcType=BIGINT}, #{metaKey,jdbcType=VARCHAR}, #{metaValue,jdbcType=VARCHAR}
+ )
+
+
+ insert into ln_user_meta
+
+
+ user_id,
+
+
+ meta_key,
+
+
+ meta_value,
+
+
+
+
+ #{userId,jdbcType=BIGINT},
+
+
+ #{metaKey,jdbcType=VARCHAR},
+
+
+ #{metaValue,jdbcType=VARCHAR},
+
+
+
+
+ update ln_user_meta
+
+
+ user_id = #{userId,jdbcType=BIGINT},
+
+
+ meta_key = #{metaKey,jdbcType=VARCHAR},
+
+
+ meta_value = #{metaValue,jdbcType=VARCHAR},
+
+
+ where id = #{id,jdbcType=BIGINT}
+
+
+ update ln_user_meta
+ set user_id = #{userId,jdbcType=BIGINT},
+ meta_key = #{metaKey,jdbcType=VARCHAR},
+ meta_value = #{metaValue,jdbcType=VARCHAR}
+ where id = #{id,jdbcType=BIGINT}
+
+
\ No newline at end of file