代码INIT,修改基本框架

This commit is contained in:
limqhz
2022-05-01 22:41:10 +08:00
parent 3fdb3799ff
commit 5e12c34a3d
63 changed files with 189 additions and 119 deletions

1
.gitignore vendored
View File

@@ -18,6 +18,7 @@
*.zip *.zip
*.tar.gz *.tar.gz
*.rar *.rar
*.iml
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid* hs_err_pid*

View File

@@ -17,11 +17,11 @@ CREATE DATABASE /*!32312 IF NOT EXISTS*/`quinn` /*!40100 DEFAULT CHARACTER SET u
USE `quinn`; USE `quinn`;
/*Table structure for table `ks_blog` */ /*Table structure for table `qn_blog` */
DROP TABLE IF EXISTS `ks_blog`; DROP TABLE IF EXISTS `qn_blog`;
CREATE TABLE `ks_blog` ( CREATE TABLE `qn_blog` (
`id` int(10) NOT NULL AUTO_INCREMENT COMMENT '自增id', `id` int(10) NOT NULL AUTO_INCREMENT COMMENT '自增id',
`bid` varchar(200) NOT NULL COMMENT '博客id', `bid` varchar(200) NOT NULL COMMENT '博客id',
`title` varchar(200) NOT NULL COMMENT '博客标题', `title` varchar(200) NOT NULL COMMENT '博客标题',
@@ -38,21 +38,21 @@ CREATE TABLE `ks_blog` (
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8; ) ENGINE=InnoDB AUTO_INCREMENT=30 DEFAULT CHARSET=utf8;
/*Table structure for table `ks_blog_category` */ /*Table structure for table `qn_blog_category` */
DROP TABLE IF EXISTS `ks_blog_category`; DROP TABLE IF EXISTS `qn_blog_category`;
CREATE TABLE `ks_blog_category` ( CREATE TABLE `qn_blog_category` (
`id` int(10) NOT NULL AUTO_INCREMENT COMMENT '自增id', `id` int(10) NOT NULL AUTO_INCREMENT COMMENT '自增id',
`category` varchar(50) NOT NULL COMMENT '博客分类', `category` varchar(50) NOT NULL COMMENT '博客分类',
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8; ) ENGINE=InnoDB AUTO_INCREMENT=10 DEFAULT CHARSET=utf8;
/*Table structure for table `ks_comment` */ /*Table structure for table `qn_comment` */
DROP TABLE IF EXISTS `ks_comment`; DROP TABLE IF EXISTS `qn_comment`;
CREATE TABLE `ks_comment` ( CREATE TABLE `qn_comment` (
`id` int(10) NOT NULL AUTO_INCREMENT COMMENT '自增id', `id` int(10) NOT NULL AUTO_INCREMENT COMMENT '自增id',
`comment_id` varchar(200) NOT NULL COMMENT '评论唯一id', `comment_id` varchar(200) NOT NULL COMMENT '评论唯一id',
`topic_category` int(1) NOT NULL COMMENT '1博客 2问答', `topic_category` int(1) NOT NULL COMMENT '1博客 2问答',
@@ -65,21 +65,21 @@ CREATE TABLE `ks_comment` (
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=137 DEFAULT CHARSET=utf8; ) ENGINE=InnoDB AUTO_INCREMENT=137 DEFAULT CHARSET=utf8;
/*Table structure for table `ks_download` */ /*Table structure for table `qn_download` */
DROP TABLE IF EXISTS `ks_download`; DROP TABLE IF EXISTS `qn_download`;
CREATE TABLE `ks_download` ( CREATE TABLE `qn_download` (
`dname` varchar(100) NOT NULL COMMENT '资源名', `dname` varchar(100) NOT NULL COMMENT '资源名',
`ddesc` varchar(500) NOT NULL COMMENT '资源链接', `ddesc` varchar(500) NOT NULL COMMENT '资源链接',
`dcode` varchar(50) NOT NULL COMMENT '提取码' `dcode` varchar(50) NOT NULL COMMENT '提取码'
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Table structure for table `ks_invite` */ /*Table structure for table `qn_invite` */
DROP TABLE IF EXISTS `ks_invite`; DROP TABLE IF EXISTS `qn_invite`;
CREATE TABLE `ks_invite` ( CREATE TABLE `qn_invite` (
`id` int(10) NOT NULL AUTO_INCREMENT COMMENT '自增id', `id` int(10) NOT NULL AUTO_INCREMENT COMMENT '自增id',
`code` varchar(200) NOT NULL COMMENT '邀请码', `code` varchar(200) NOT NULL COMMENT '邀请码',
`uid` varchar(200) DEFAULT NULL COMMENT '用户id', `uid` varchar(200) DEFAULT NULL COMMENT '用户id',
@@ -89,11 +89,11 @@ CREATE TABLE `ks_invite` (
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=1217 DEFAULT CHARSET=utf8; ) ENGINE=InnoDB AUTO_INCREMENT=1217 DEFAULT CHARSET=utf8;
/*Table structure for table `ks_question` */ /*Table structure for table `qn_question` */
DROP TABLE IF EXISTS `ks_question`; DROP TABLE IF EXISTS `qn_question`;
CREATE TABLE `ks_question` ( CREATE TABLE `qn_question` (
`id` int(10) NOT NULL AUTO_INCREMENT COMMENT '自增id', `id` int(10) NOT NULL AUTO_INCREMENT COMMENT '自增id',
`qid` varchar(200) NOT NULL COMMENT '问题id', `qid` varchar(200) NOT NULL COMMENT '问题id',
`title` varchar(200) NOT NULL COMMENT '问题标题', `title` varchar(200) NOT NULL COMMENT '问题标题',
@@ -111,21 +111,21 @@ CREATE TABLE `ks_question` (
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8; ) ENGINE=InnoDB AUTO_INCREMENT=35 DEFAULT CHARSET=utf8;
/*Table structure for table `ks_question_category` */ /*Table structure for table `qn_question_category` */
DROP TABLE IF EXISTS `ks_question_category`; DROP TABLE IF EXISTS `qn_question_category`;
CREATE TABLE `ks_question_category` ( CREATE TABLE `qn_question_category` (
`id` int(10) NOT NULL AUTO_INCREMENT COMMENT '自增id', `id` int(10) NOT NULL AUTO_INCREMENT COMMENT '自增id',
`category` varchar(50) NOT NULL COMMENT '问题分类', `category` varchar(50) NOT NULL COMMENT '问题分类',
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8; ) ENGINE=InnoDB AUTO_INCREMENT=15 DEFAULT CHARSET=utf8;
/*Table structure for table `ks_say` */ /*Table structure for table `qn_say` */
DROP TABLE IF EXISTS `ks_say`; DROP TABLE IF EXISTS `qn_say`;
CREATE TABLE `ks_say` ( CREATE TABLE `qn_say` (
`id` varchar(200) NOT NULL COMMENT '唯一id', `id` varchar(200) NOT NULL COMMENT '唯一id',
`title` varchar(200) NOT NULL COMMENT '标题', `title` varchar(200) NOT NULL COMMENT '标题',
`content` varchar(5000) NOT NULL COMMENT '内容', `content` varchar(5000) NOT NULL COMMENT '内容',
@@ -133,11 +133,11 @@ CREATE TABLE `ks_say` (
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Table structure for table `ks_user` */ /*Table structure for table `qn_user` */
DROP TABLE IF EXISTS `ks_user`; DROP TABLE IF EXISTS `qn_user`;
CREATE TABLE `ks_user` ( CREATE TABLE `qn_user` (
`id` int(10) NOT NULL AUTO_INCREMENT COMMENT '自增id', `id` int(10) NOT NULL AUTO_INCREMENT COMMENT '自增id',
`uid` varchar(200) NOT NULL COMMENT '用户编号', `uid` varchar(200) NOT NULL COMMENT '用户编号',
`role_id` int(10) NOT NULL COMMENT '角色编号', `role_id` int(10) NOT NULL COMMENT '角色编号',
@@ -149,20 +149,20 @@ CREATE TABLE `ks_user` (
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=840 DEFAULT CHARSET=utf8; ) ENGINE=InnoDB AUTO_INCREMENT=840 DEFAULT CHARSET=utf8;
/*Table structure for table `ks_user_donate` */ /*Table structure for table `qn_user_donate` */
DROP TABLE IF EXISTS `ks_user_donate`; DROP TABLE IF EXISTS `qn_user_donate`;
CREATE TABLE `ks_user_donate` ( CREATE TABLE `qn_user_donate` (
`uid` varchar(200) NOT NULL COMMENT '用户id', `uid` varchar(200) NOT NULL COMMENT '用户id',
`donate_json` varchar(2000) NOT NULL COMMENT '赞赏二维码信息' `donate_json` varchar(2000) NOT NULL COMMENT '赞赏二维码信息'
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Table structure for table `ks_user_info` */ /*Table structure for table `qn_user_info` */
DROP TABLE IF EXISTS `ks_user_info`; DROP TABLE IF EXISTS `qn_user_info`;
CREATE TABLE `ks_user_info` ( CREATE TABLE `qn_user_info` (
`uid` varchar(200) NOT NULL COMMENT '用户id', `uid` varchar(200) NOT NULL COMMENT '用户id',
`nickname` varchar(80) DEFAULT NULL COMMENT '用户昵称', `nickname` varchar(80) DEFAULT NULL COMMENT '用户昵称',
`realname` varchar(80) DEFAULT NULL COMMENT '真实姓名', `realname` varchar(80) DEFAULT NULL COMMENT '真实姓名',
@@ -176,11 +176,11 @@ CREATE TABLE `ks_user_info` (
`intro` varchar(2000) DEFAULT NULL COMMENT '自我介绍' `intro` varchar(2000) DEFAULT NULL COMMENT '自我介绍'
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*Table structure for table `ks_user_role` */ /*Table structure for table `qn_user_role` */
DROP TABLE IF EXISTS `ks_user_role`; DROP TABLE IF EXISTS `qn_user_role`;
CREATE TABLE `ks_user_role` ( CREATE TABLE `qn_user_role` (
`id` int(10) NOT NULL AUTO_INCREMENT COMMENT '角色编号', `id` int(10) NOT NULL AUTO_INCREMENT COMMENT '角色编号',
`name` varchar(200) NOT NULL COMMENT '角色名称', `name` varchar(200) NOT NULL COMMENT '角色名称',
`description` varchar(500) NOT NULL DEFAULT '无描述...' COMMENT '角色描述', `description` varchar(500) NOT NULL DEFAULT '无描述...' COMMENT '角色描述',

View File

@@ -20,7 +20,7 @@ import java.util.List;
* 前端控制器 * 前端控制器
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-29 * @since 2020-06-29
*/ */
@Controller @Controller

View File

@@ -23,7 +23,7 @@ import java.util.List;
* 前端控制器 * 前端控制器
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-29 * @since 2020-06-29
*/ */
@Controller @Controller

View File

@@ -14,7 +14,7 @@ import org.springframework.web.bind.annotation.PathVariable;
* 前端控制器 * 前端控制器
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-30 * @since 2020-06-30
*/ */
@Controller @Controller

View File

@@ -15,7 +15,7 @@ import java.util.List;
* 前端控制器 * 前端控制器
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-07-08 * @since 2020-07-08
*/ */
@Controller @Controller

View File

@@ -19,7 +19,7 @@ import java.util.List;
* 前端控制器 * 前端控制器
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-28 * @since 2020-06-28
*/ */
@Controller @Controller

View File

@@ -32,7 +32,7 @@ import java.util.UUID;
* 前端控制器 * 前端控制器
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-28 * @since 2020-06-28
*/ */
@Controller @Controller

View File

@@ -28,7 +28,7 @@ import java.util.List;
* 前端控制器 * 前端控制器
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-28 * @since 2020-06-28
*/ */
@Controller @Controller

View File

@@ -20,7 +20,7 @@ import org.springframework.web.bind.annotation.*;
* 前端控制器 * 前端控制器
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-29 * @since 2020-06-29
*/ */
@Controller @Controller

View File

@@ -20,7 +20,7 @@ public class CodeGenerator {
GlobalConfig gc = new GlobalConfig(); GlobalConfig gc = new GlobalConfig();
String projectPath = System.getProperty("user.dir"); String projectPath = System.getProperty("user.dir");
gc.setOutputDir(projectPath + "/src/main/java"); gc.setOutputDir(projectPath + "/src/main/java");
gc.setAuthor("遇见狂神说"); gc.setAuthor("limqsh");
gc.setOpen(false); //生成后是否打开资源管理器 gc.setOpen(false); //生成后是否打开资源管理器
gc.setFileOverride(false); //重新生成时文件是否覆盖 gc.setFileOverride(false); //重新生成时文件是否覆盖
gc.setServiceName("%sService"); //去掉Service接口的首字母I gc.setServiceName("%sService"); //去掉Service接口的首字母I
@@ -51,10 +51,9 @@ public class CodeGenerator {
// 5、策略配置 // 5、策略配置
StrategyConfig strategy = new StrategyConfig(); StrategyConfig strategy = new StrategyConfig();
//strategy.setInclude("ks_\\w*");//设置要映射的表名 strategy.setInclude("qn_about");//设置要映射的表名
strategy.setInclude("ks_download");//设置要映射的表名
strategy.setNaming(NamingStrategy.underline_to_camel);//数据库表映射到实体的命名策略 strategy.setNaming(NamingStrategy.underline_to_camel);//数据库表映射到实体的命名策略
strategy.setTablePrefix("ks_");//设置表前缀不生成 strategy.setTablePrefix("qn_");//设置表前缀不生成
strategy.setColumnNaming(NamingStrategy.underline_to_camel);//数据库表字段映射到实体的命名策略 strategy.setColumnNaming(NamingStrategy.underline_to_camel);//数据库表字段映射到实体的命名策略
strategy.setEntityLombokModel(true); // lombok 模型 @Accessors(chain = true) setter链式操作 strategy.setEntityLombokModel(true); // lombok 模型 @Accessors(chain = true) setter链式操作

View File

@@ -8,7 +8,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* Mapper 接口 * Mapper 接口
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-29 * @since 2020-06-29
*/ */
public interface BlogCategoryMapper extends BaseMapper<BlogCategory> { public interface BlogCategoryMapper extends BaseMapper<BlogCategory> {

View File

@@ -8,7 +8,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* Mapper 接口 * Mapper 接口
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-29 * @since 2020-06-29
*/ */
public interface BlogMapper extends BaseMapper<Blog> { public interface BlogMapper extends BaseMapper<Blog> {

View File

@@ -8,7 +8,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* Mapper 接口 * Mapper 接口
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-30 * @since 2020-06-30
*/ */
public interface CommentMapper extends BaseMapper<Comment> { public interface CommentMapper extends BaseMapper<Comment> {

View File

@@ -9,7 +9,7 @@ import org.springframework.stereotype.Repository;
* Mapper 接口 * Mapper 接口
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-07-08 * @since 2020-07-08
*/ */
@Repository @Repository

View File

@@ -8,7 +8,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* Mapper 接口 * Mapper 接口
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-28 * @since 2020-06-28
*/ */
public interface InviteMapper extends BaseMapper<Invite> { public interface InviteMapper extends BaseMapper<Invite> {

View File

@@ -8,7 +8,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* Mapper 接口 * Mapper 接口
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-28 * @since 2020-06-28
*/ */
public interface QuestionCategoryMapper extends BaseMapper<QuestionCategory> { public interface QuestionCategoryMapper extends BaseMapper<QuestionCategory> {

View File

@@ -8,7 +8,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* Mapper 接口 * Mapper 接口
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-28 * @since 2020-06-28
*/ */
public interface QuestionMapper extends BaseMapper<Question> { public interface QuestionMapper extends BaseMapper<Question> {

View File

@@ -8,7 +8,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* Mapper 接口 * Mapper 接口
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-07-01 * @since 2020-07-01
*/ */
public interface SayMapper extends BaseMapper<Say> { public interface SayMapper extends BaseMapper<Say> {

View File

@@ -8,7 +8,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* Mapper 接口 * Mapper 接口
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-29 * @since 2020-06-29
*/ */
public interface UserInfoMapper extends BaseMapper<UserInfo> { public interface UserInfoMapper extends BaseMapper<UserInfo> {

View File

@@ -8,7 +8,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* Mapper 接口 * Mapper 接口
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-28 * @since 2020-06-28
*/ */
public interface UserMapper extends BaseMapper<User> { public interface UserMapper extends BaseMapper<User> {

View File

@@ -8,7 +8,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
* Mapper 接口 * Mapper 接口
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-28 * @since 2020-06-28
*/ */
public interface UserRoleMapper extends BaseMapper<UserRole> { public interface UserRoleMapper extends BaseMapper<UserRole> {

View File

@@ -16,13 +16,13 @@ import lombok.experimental.Accessors;
* *
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-29 * @since 2020-06-29
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@Accessors(chain = true) @Accessors(chain = true)
@TableName("ks_blog") @TableName("qn_blog")
@ApiModel(value="Blog对象", description="") @ApiModel(value="Blog对象", description="")
public class Blog implements Serializable { public class Blog implements Serializable {

View File

@@ -15,13 +15,13 @@ import lombok.experimental.Accessors;
* *
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-29 * @since 2020-06-29
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@Accessors(chain = true) @Accessors(chain = true)
@TableName("ks_blog_category") @TableName("qn_blog_category")
@ApiModel(value="BlogCategory对象", description="") @ApiModel(value="BlogCategory对象", description="")
public class BlogCategory implements Serializable { public class BlogCategory implements Serializable {

View File

@@ -16,13 +16,13 @@ import lombok.experimental.Accessors;
* *
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-30 * @since 2020-06-30
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@Accessors(chain = true) @Accessors(chain = true)
@TableName("ks_comment") @TableName("qn_comment")
@ApiModel(value="Comment对象", description="") @ApiModel(value="Comment对象", description="")
public class Comment implements Serializable { public class Comment implements Serializable {

View File

@@ -14,13 +14,13 @@ import lombok.experimental.Accessors;
* *
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-07-08 * @since 2020-07-08
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@Accessors(chain = true) @Accessors(chain = true)
@TableName("ks_download") @TableName("qn_download")
@ApiModel(value="Download对象", description="") @ApiModel(value="Download对象", description="")
public class Download implements Serializable { public class Download implements Serializable {

View File

@@ -12,13 +12,13 @@ import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
/** /**
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-28 * @since 2020-06-28
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@Accessors(chain = true) @Accessors(chain = true)
@TableName("ks_invite") @TableName("qn_invite")
@ApiModel(value="Invite邀请码", description="邀请码") @ApiModel(value="Invite邀请码", description="邀请码")
public class Invite implements Serializable { public class Invite implements Serializable {

View File

@@ -16,13 +16,13 @@ import lombok.experimental.Accessors;
* *
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-28 * @since 2020-06-28
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@Accessors(chain = true) @Accessors(chain = true)
@TableName("ks_question") @TableName("qn_question")
@ApiModel(value="Question对象", description="") @ApiModel(value="Question对象", description="")
public class Question implements Serializable { public class Question implements Serializable {

View File

@@ -15,13 +15,13 @@ import lombok.experimental.Accessors;
* *
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-28 * @since 2020-06-28
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@Accessors(chain = true) @Accessors(chain = true)
@TableName("ks_question_category") @TableName("qn_question_category")
@ApiModel(value="QuestionCategory对象", description="") @ApiModel(value="QuestionCategory对象", description="")
public class QuestionCategory implements Serializable { public class QuestionCategory implements Serializable {

View File

@@ -16,13 +16,13 @@ import lombok.experimental.Accessors;
* *
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-07-01 * @since 2020-07-01
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@Accessors(chain = true) @Accessors(chain = true)
@TableName("ks_say") @TableName("qn_say")
@ApiModel(value="Say对象", description="") @ApiModel(value="Say对象", description="")
public class Say implements Serializable { public class Say implements Serializable {

View File

@@ -16,13 +16,13 @@ import lombok.experimental.Accessors;
* *
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-28 * @since 2020-06-28
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@Accessors(chain = true) @Accessors(chain = true)
@TableName("ks_user") @TableName("qn_user")
@ApiModel(value="User对象", description="") @ApiModel(value="User对象", description="")
public class User implements Serializable { public class User implements Serializable {

View File

@@ -15,13 +15,13 @@ import lombok.experimental.Accessors;
* *
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-29 * @since 2020-06-29
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@Accessors(chain = true) @Accessors(chain = true)
@TableName("ks_user_info") @TableName("qn_user_info")
@ApiModel(value="UserInfo对象", description="") @ApiModel(value="UserInfo对象", description="")
public class UserInfo implements Serializable { public class UserInfo implements Serializable {

View File

@@ -16,13 +16,13 @@ import lombok.experimental.Accessors;
* *
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-28 * @since 2020-06-28
*/ */
@Data @Data
@EqualsAndHashCode(callSuper = false) @EqualsAndHashCode(callSuper = false)
@Accessors(chain = true) @Accessors(chain = true)
@TableName("ks_user_role") @TableName("qn_user_role")
@ApiModel(value="UserRole对象", description="") @ApiModel(value="UserRole对象", description="")
public class UserRole implements Serializable { public class UserRole implements Serializable {

View File

@@ -8,7 +8,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
* 服务类 * 服务类
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-29 * @since 2020-06-29
*/ */
public interface BlogCategoryService extends IService<BlogCategory> { public interface BlogCategoryService extends IService<BlogCategory> {

View File

@@ -8,7 +8,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
* 服务类 * 服务类
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-29 * @since 2020-06-29
*/ */
public interface BlogService extends IService<Blog> { public interface BlogService extends IService<Blog> {

View File

@@ -8,7 +8,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
* 服务类 * 服务类
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-30 * @since 2020-06-30
*/ */
public interface CommentService extends IService<Comment> { public interface CommentService extends IService<Comment> {

View File

@@ -8,7 +8,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
* 服务类 * 服务类
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-07-08 * @since 2020-07-08
*/ */
public interface DownloadService extends IService<Download> { public interface DownloadService extends IService<Download> {

View File

@@ -8,7 +8,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
* 服务类 * 服务类
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-28 * @since 2020-06-28
*/ */
public interface InviteService extends IService<Invite> { public interface InviteService extends IService<Invite> {

View File

@@ -8,7 +8,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
* 服务类 * 服务类
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-28 * @since 2020-06-28
*/ */
public interface QuestionCategoryService extends IService<QuestionCategory> { public interface QuestionCategoryService extends IService<QuestionCategory> {

View File

@@ -8,7 +8,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
* 服务类 * 服务类
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-28 * @since 2020-06-28
*/ */
public interface QuestionService extends IService<Question> { public interface QuestionService extends IService<Question> {

View File

@@ -8,7 +8,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
* 服务类 * 服务类
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-07-01 * @since 2020-07-01
*/ */
public interface SayService extends IService<Say> { public interface SayService extends IService<Say> {

View File

@@ -8,7 +8,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
* 服务类 * 服务类
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-29 * @since 2020-06-29
*/ */
public interface UserInfoService extends IService<UserInfo> { public interface UserInfoService extends IService<UserInfo> {

View File

@@ -8,7 +8,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
* 服务类 * 服务类
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-28 * @since 2020-06-28
*/ */
public interface UserRoleService extends IService<UserRole> { public interface UserRoleService extends IService<UserRole> {

View File

@@ -8,7 +8,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
* 服务类 * 服务类
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-28 * @since 2020-06-28
*/ */
public interface UserService extends IService<User> { public interface UserService extends IService<User> {

View File

@@ -11,7 +11,7 @@ import org.springframework.stereotype.Service;
* 服务实现类 * 服务实现类
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-29 * @since 2020-06-29
*/ */
@Service @Service

View File

@@ -11,7 +11,7 @@ import org.springframework.stereotype.Service;
* 服务实现类 * 服务实现类
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-29 * @since 2020-06-29
*/ */
@Service @Service

View File

@@ -11,7 +11,7 @@ import org.springframework.stereotype.Service;
* 服务实现类 * 服务实现类
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-30 * @since 2020-06-30
*/ */
@Service @Service

View File

@@ -11,7 +11,7 @@ import org.springframework.stereotype.Service;
* 服务实现类 * 服务实现类
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-07-08 * @since 2020-07-08
*/ */
@Service @Service

View File

@@ -11,7 +11,7 @@ import org.springframework.stereotype.Service;
* 服务实现类 * 服务实现类
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-28 * @since 2020-06-28
*/ */
@Service @Service

View File

@@ -11,7 +11,7 @@ import org.springframework.stereotype.Service;
* 服务实现类 * 服务实现类
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-28 * @since 2020-06-28
*/ */
@Service @Service

View File

@@ -11,7 +11,7 @@ import org.springframework.stereotype.Service;
* 服务实现类 * 服务实现类
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-28 * @since 2020-06-28
*/ */
@Service @Service

View File

@@ -11,7 +11,7 @@ import org.springframework.stereotype.Service;
* 服务实现类 * 服务实现类
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-07-01 * @since 2020-07-01
*/ */
@Service @Service

View File

@@ -11,7 +11,7 @@ import org.springframework.stereotype.Service;
* 服务实现类 * 服务实现类
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-29 * @since 2020-06-29
*/ */
@Service @Service

View File

@@ -11,7 +11,7 @@ import org.springframework.stereotype.Service;
* 服务实现类 * 服务实现类
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-28 * @since 2020-06-28
*/ */
@Service @Service

View File

@@ -25,7 +25,7 @@ import java.util.List;
* 服务实现类 * 服务实现类
* </p> * </p>
* *
* @author 遇见狂神说 * @author limqsh
* @since 2020-06-28 * @since 2020-06-28
*/ */
// UserDetailsService接口用于返回用户相关数据。 // UserDetailsService接口用于返回用户相关数据。

View File

@@ -2,9 +2,9 @@
<html lang="en" xmlns:th="http://www.thymeleaf.org"> <html lang="en" xmlns:th="http://www.thymeleaf.org">
<footer class="container" th:fragment="footer"> <footer class="container" th:fragment="footer">
<footer class="my-5 text-muted text-center text-small"> <footer class="my-5 text-muted text-center text-smal">
<p class="mb-1">© 遇见狂神说</p> <p class="mb-1">©QUINN</p><a class="btn btn-default" target="_blank" href = 'https://beian.miit.gov.cn'>浙ICP备2020031991号</a>
</footer> </footer>
</footer> </footer>
</html> </html>

View File

@@ -32,6 +32,9 @@
<li th:class="${activeUrl=='say'?'nav-item active':'nav-item'}"> <li th:class="${activeUrl=='say'?'nav-item active':'nav-item'}">
<a class="nav-link" th:href="@{/say}">公告 </a> <a class="nav-link" th:href="@{/say}">公告 </a>
</li> </li>
<li th:class="${activeUrl=='about'?'nav-item active':'nav-item'}">
<a class="nav-link" th:href="@{/about}">关于 </a>
</li>
</ul> </ul>
<!--如果未登录--> <!--如果未登录-->

View File

@@ -13,9 +13,9 @@
<main role="main"> <main role="main">
<div class="jumbotron" style="background-color: #ffffff;box-shadow: 0px -2px 10px #d0cccc inset;"> <div class="jumbotron" style="background-color: #ffffff;box-shadow: 0px -2px 10px #d0cccc inset;">
<div class="container"> <div class="container">
<h1 class="display-3">狂神の小社区 <small style="font-size: 20px;">供社群内部人员使用,打造我们自己的圈子!</small></h1> <h1 class="display-3">资源分享 <small style="font-size: 20px;">社区用户资源分享</small></h1>
<p style="margin-top: 2rem;"> <p style="margin-top: 2rem;">
狂神の小社区致力于帮助更多在学习编程路上的小伙伴解决学习问题,提供高质量的教程,输出高质量的博文,在这里你可以交到很多朋友,学习到更多的知识,即使再小的帆也能远航! 我们致力于提供免费资源,大家可以从该平台获取资源,大家可以一起整理汇总。
</p> </p>
<p> <p>
<a target="_blank" href="https://space.bilibili.com/95256449/article" class="btn btn-primary btn-lg" role="button">了解更多 »</a> <a target="_blank" href="https://space.bilibili.com/95256449/article" class="btn btn-primary btn-lg" role="button">了解更多 »</a>
@@ -28,18 +28,18 @@
<div class="row"> <div class="row">
<div class="col-md-4"> <div class="col-md-4">
<h2>问答</h2> <h2>问答</h2>
<p> 提供高质量的问答服务,致力于解决社区中小伙伴们遇到的问题,并给出解决方案,做到学有所伴,问有所答!</p> <p> 提供一些系统的建议,或者问题,或者建议!问有所答,您的答案是我们的前进的动力! </p>
<p><a th:href="@{/question}" class="btn btn-secondary" role="button">前往 »</a></p> <p><a th:href="@{/question}" class="btn btn-secondary" role="button">前往 »</a></p>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<h2>博客</h2> <h2>讨论</h2>
<p> 给社群小伙伴提供记录自己学习的地方,推出个人博客,优化博客样式,更加方便的管理和展现文章,同时优质的文章会被更多的人看到 </p> <p> 提供玩家共享资源信息,打造整体更出色的游戏体验 </p>
<p><a th:href="@{/blog}" class="btn btn-secondary" role="button">前往 »</a></p> <p><a th:href="@{/blog}" class="btn btn-secondary" role="button">前往 »</a></p>
</div> </div>
<div class="col-md-4"> <div class="col-md-4">
<h2>教程</h2> <h2>资源</h2>
<p> 很多时候,小伙伴找不到具体的学习流程,导致浪费了很多的时间,所以列出教程给大家规划学习路线,让大家能够少走弯路,高效的学习!</p> <p> 提供用户免费游戏资源,请各位玩家免费获取!分享心得! </p>
<p><a target="_blank" href="https://space.bilibili.com/95256449/channel/index" class="btn btn-secondary" role="button">前往 »</a></p> <p><a th:href="@{/download}" class="btn btn-secondary" role="button">前往 »</a></p>
</div> </div>
</div> </div>

View File

@@ -29,7 +29,7 @@
<a th:href="@{/register}" class="float-right">没有账号?去注册</a> <a th:href="@{/register}" class="float-right">没有账号?去注册</a>
</p> </p>
<p class="mt-5 mb-3 text-muted">© 遇见狂神说</p> <p class="mt-5 mb-3 text-muted">© limqsh</p>
</form> </form>

View File

@@ -0,0 +1,67 @@
<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>关于我们-Quinn</title>
<link rel="stylesheet" th:href="@{/bootstrap/css/bootstrap.min.css}">
<link rel="stylesheet" th:href="@{/css/timeline.css}">
</head>
<body>
<div th:replace="~{common/header::header(activeUrl='about')}"></div>
<main role="main">
<div class="container">
<div th:if="${session.loginUser.getRoleId()==1}"
class="col-md-12 blog-main" style="margin-top: 20px">
<form th:action="@{'/about/'+${session.loginUser.getRoleId()}}" method="post">
<div class="col-md-12 mb-3">
<label>标题</label>
<input type="text" name="title" class="form-control" value="" required>
</div>
<div class="col-md-12 mb-3">
<label>内容</label>
<div id="blog-content">
<textarea required name="content" rows="3" class="form-control"> </textarea>
</div>
</div>
<div class="col-md-12 mb-3">
<button type="submit" class="btn btn-primary btn-sm btn-block">发布闲记</button>
</div>
</form>
</div>
<!-- 主要内容部分 -->
<div class="timeline-small">
<div class="timeline-small-body">
<ul>
<li th:each="about:${aboutList}">
<div class="bullet green"></div>
<div class="desc">
<h3>
[[${about.getTitle()}]]
<small class="float-right" th:text="${#dates.format(about.getGmtCreate(),'yyyy-MM-dd')}"></small>
</h3>
<h4 th:utext="${about.getContent()}"></h4>
</div>
</li>
</ul>
<p class="text-center" style="color: #1F4661"> ...... </p>
</div>
</div>
</div>
</main>
<div th:replace="~{common/footer::footer}"></div>
<a class="to-top">返回顶部</a>
<script th:src="@{/js/jquery-3.5.1.min.js}"></script>
<script th:src="@{/bootstrap/js/bootstrap.bundle.min.js}"></script>
<script th:src="@{/js/toTop.js}"></script>
</body>
</html>

View File

@@ -3,7 +3,7 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>狂神说-Quinn</title> <title>公告-Quinn</title>
<link rel="stylesheet" th:href="@{/bootstrap/css/bootstrap.min.css}"> <link rel="stylesheet" th:href="@{/bootstrap/css/bootstrap.min.css}">
<link rel="stylesheet" th:href="@{/css/timeline.css}"> <link rel="stylesheet" th:href="@{/css/timeline.css}">
</head> </head>

View File

@@ -26,7 +26,7 @@
<a th:href="@{/toLogin}" class="float-right">已有账号?去登录</a> <a th:href="@{/toLogin}" class="float-right">已有账号?去登录</a>
</p> </p>
<p class="mt-5 mb-3 text-muted">© 遇见狂神说</p> <p class="mt-5 mb-3 text-muted">© limqsh</p>
</form> </form>

View File

@@ -29,7 +29,7 @@
<div class="row"> <div class="row">
<div class="col-md-6 mb-3"> <div class="col-md-6 mb-3">
<label for="nickname">用户昵称</label> <label for="nickname">用户昵称</label>
<input type="text" th:value="${userInfo.getNickname()}" name="nickname" class="form-control" id="nickname" placeholder="遇见狂神说" required=""> <input type="text" th:value="${userInfo.getNickname()}" name="nickname" class="form-control" id="nickname" placeholder="limqsh" required="">
</div> </div>
<div class="col-md-6 mb-3"> <div class="col-md-6 mb-3">
<label for="realname">真实姓名</label> <label for="realname">真实姓名</label>
@@ -40,7 +40,7 @@
<div class="row"> <div class="row">
<div class="col-md-6 mb-3"> <div class="col-md-6 mb-3">
<label for="qq">QQ</label> <label for="qq">QQ</label>
<input type="text" th:value="${userInfo.getQq()}" name="qq" class="form-control" id="qq" placeholder="遇见狂神说" required=""> <input type="text" th:value="${userInfo.getQq()}" name="qq" class="form-control" id="qq" placeholder="limqsh" required="">
</div> </div>
<div class="col-md-6 mb-3"> <div class="col-md-6 mb-3">
<label for="wechat">WeChat</label> <label for="wechat">WeChat</label>