liujunchi 2 年之前
父节点
当前提交
fee0ab4fc3
共有 66 个文件被更改,包括 2728 次插入0 次删除
  1. 82 0
      cooleshow-bbs/pom.xml
  2. 13 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/BbsApplication.java
  3. 86 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/controller/BbsArticleController.java
  4. 86 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/controller/BbsCollectController.java
  5. 86 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/controller/BbsConfigLabelController.java
  6. 86 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/controller/BbsFollowController.java
  7. 86 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/controller/BbsLikeController.java
  8. 86 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/controller/BbsPrivateMessageController.java
  9. 86 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/controller/BbsReplyController.java
  10. 30 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dao/BbsArticleDao.java
  11. 30 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dao/BbsCollectDao.java
  12. 30 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dao/BbsConfigLabelDao.java
  13. 30 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dao/BbsFollowDao.java
  14. 30 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dao/BbsLikeDao.java
  15. 30 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dao/BbsPrivateMessageDao.java
  16. 30 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dao/BbsReplyDao.java
  17. 24 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dto/BbsArticleDto.java
  18. 24 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dto/BbsCollectDto.java
  19. 24 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dto/BbsConfigLabelDto.java
  20. 24 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dto/BbsFollowDto.java
  21. 24 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dto/BbsLikeDto.java
  22. 24 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dto/BbsPrivateMessageDto.java
  23. 24 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dto/BbsReplyDto.java
  24. 14 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dto/search/BbsArticleSearch.java
  25. 14 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dto/search/BbsCollectSearch.java
  26. 14 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dto/search/BbsConfigLabelSearch.java
  27. 14 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dto/search/BbsFollowSearch.java
  28. 14 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dto/search/BbsLikeSearch.java
  29. 14 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dto/search/BbsPrivateMessageSearch.java
  30. 14 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dto/search/BbsReplySearch.java
  31. 213 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/entity/BbsArticle.java
  32. 68 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/entity/BbsCollect.java
  33. 101 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/entity/BbsConfigLabel.java
  34. 68 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/entity/BbsFollow.java
  35. 68 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/entity/BbsLike.java
  36. 79 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/entity/BbsPrivateMessage.java
  37. 113 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/entity/BbsReply.java
  38. 29 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/service/BbsArticleService.java
  39. 29 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/service/BbsCollectService.java
  40. 29 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/service/BbsConfigLabelService.java
  41. 29 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/service/BbsFollowService.java
  42. 29 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/service/BbsLikeService.java
  43. 29 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/service/BbsPrivateMessageService.java
  44. 29 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/service/BbsReplyService.java
  45. 29 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/service/impl/BbsArticleServiceImpl.java
  46. 29 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/service/impl/BbsCollectServiceImpl.java
  47. 29 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/service/impl/BbsConfigLabelServiceImpl.java
  48. 29 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/service/impl/BbsFollowServiceImpl.java
  49. 29 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/service/impl/BbsLikeServiceImpl.java
  50. 29 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/service/impl/BbsPrivateMessageServiceImpl.java
  51. 29 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/service/impl/BbsReplyServiceImpl.java
  52. 24 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/vo/BbsArticleVo.java
  53. 24 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/vo/BbsCollectVo.java
  54. 24 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/vo/BbsConfigLabelVo.java
  55. 24 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/vo/BbsFollowVo.java
  56. 24 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/vo/BbsLikeVo.java
  57. 24 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/vo/BbsPrivateMessageVo.java
  58. 24 0
      cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/vo/BbsReplyVo.java
  59. 12 0
      cooleshow-bbs/src/main/resources/bootstrap-prod.yml
  60. 57 0
      cooleshow-bbs/src/main/resources/config/mybatis/BbsArticleMapper.xml
  61. 31 0
      cooleshow-bbs/src/main/resources/config/mybatis/BbsCollectMapper.xml
  62. 37 0
      cooleshow-bbs/src/main/resources/config/mybatis/BbsConfigLabelMapper.xml
  63. 31 0
      cooleshow-bbs/src/main/resources/config/mybatis/BbsFollowMapper.xml
  64. 31 0
      cooleshow-bbs/src/main/resources/config/mybatis/BbsLikeMapper.xml
  65. 33 0
      cooleshow-bbs/src/main/resources/config/mybatis/BbsPrivateMessageMapper.xml
  66. 39 0
      cooleshow-bbs/src/main/resources/config/mybatis/BbsReplyMapper.xml

+ 82 - 0
cooleshow-bbs/pom.xml

@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <parent>
+        <artifactId>cooleshow</artifactId>
+        <groupId>com.yonge.cooleshow</groupId>
+        <version>1.0</version>
+    </parent>
+    <modelVersion>4.0.0</modelVersion>
+
+    <artifactId>cooleshow-bbs</artifactId>
+    <version>1.0</version>
+
+    <properties>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    </properties>
+    <dependencies>
+
+
+        <dependency>
+            <groupId>com.alibaba.cloud</groupId>
+            <artifactId>spring-cloud-starter-alibaba-nacos-config</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>com.alibaba.cloud</groupId>
+            <artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>org.springframework.cloud</groupId>
+            <artifactId>spring-cloud-starter-security</artifactId>
+        </dependency>
+
+        <!-- swagger-spring-boot -->
+        <dependency>
+            <groupId>com.spring4all</groupId>
+            <artifactId>swagger-spring-boot-starter</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>com.alibaba</groupId>
+            <artifactId>druid-spring-boot-starter</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>com.yonge.toolset</groupId>
+            <artifactId>toolset-feign</artifactId>
+            <version>1.0</version>
+        </dependency>
+
+        <dependency>
+            <groupId>com.yonge.cooleshow</groupId>
+            <artifactId>cooleshow-common</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>com.yonge.toolset</groupId>
+            <artifactId>thirdparty-component</artifactId>
+        </dependency>
+
+        <dependency>
+            <groupId>com.yonge.toolset</groupId>
+            <artifactId>toolset-mybatis</artifactId>
+            <version>${project.version}</version>
+        </dependency>
+
+        <dependency>
+            <groupId>com.yonge.toolset</groupId>
+            <artifactId>toolset-emoji</artifactId>
+            <version>1.0</version>
+        </dependency>
+
+        <!-- mybatis-plus -->
+        <dependency>
+            <groupId>com.baomidou</groupId>
+            <artifactId>mybatis-plus-boot-starter</artifactId>
+            <version>3.0.7.1</version>
+        </dependency>
+    </dependencies>
+</project>

+ 13 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/BbsApplication.java

@@ -0,0 +1,13 @@
+package com.yonge.cooleshow.bbs;
+
+import org.springframework.boot.SpringApplication;
+import org.springframework.boot.autoconfigure.SpringBootApplication;
+
+@SpringBootApplication
+public class BbsApplication {
+
+    public static void main(String[] args) {
+        SpringApplication.run(BbsApplication.class, args);
+    }
+
+}

+ 86 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/controller/BbsArticleController.java

@@ -0,0 +1,86 @@
+package com.yonge.cooleshow.bbs.controller;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.yonge.toolset.base.page.PageInfo;
+import com.yonge.cooleshow.common.controller.BaseController;
+import com.yonge.cooleshow.common.entity.HttpResponseResult;
+import com.yonge.cooleshow.biz.dal.support.PageUtil;
+
+import com.yonge.toolset.utils.string.StringUtil;
+import io.swagger.annotations.*;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import javax.validation.Valid;
+
+import com.yonge.cooleshow.bbs.vo.BbsArticleVo;
+import com.yonge.cooleshow.bbs.dto.search.BbsArticleSearch;
+import com.yonge.cooleshow.bbs.entity.BbsArticle;
+import com.yonge.cooleshow.bbs.service.BbsArticleService;
+
+@RestController
+@RequestMapping("/bbsArticle")
+@Api(value = "文章", tags = "文章")
+public class BbsArticleController extends BaseController {
+
+    @Autowired
+    private BbsArticleService bbsArticleService;
+
+	/**
+     * 查询单条
+     */
+    @GetMapping("/detail/{id}")
+    @ApiOperation(value = "详情", notes = "传入id")
+    public HttpResponseResult<BbsArticleVo> detail(@PathVariable("id") Long id) {
+    	return succeed(bbsArticleService.detail(id));
+	}
+    
+    /**
+     * 查询分页
+     */
+    @PostMapping("/page")
+    @ApiOperation(value = "查询分页", notes = "传入bbsArticleSearch")
+    public HttpResponseResult<PageInfo<BbsArticleVo>> page(@RequestBody BbsArticleSearch query) {
+		IPage<BbsArticleVo> pages = bbsArticleService.selectPage(PageUtil.getPage(query), query);
+        return succeed(PageUtil.pageInfo(pages));
+	}
+    
+    /**
+	 * 新增
+	 */
+	@PostMapping("/save")
+	@ApiOperation(value = "新增", notes = "传入bbsArticle")
+	public HttpResponseResult save(@Valid @RequestBody BbsArticle bbsArticle) {
+    	return status(bbsArticleService.save(bbsArticle));
+	}
+    
+    /**
+	 * 修改
+	 */
+	@PostMapping("/update")
+	@ApiOperation(value = "修改", notes = "传入bbsArticle")
+	public HttpResponseResult update(@Valid @RequestBody BbsArticle bbsArticle) {
+        return status(bbsArticleService.updateById(bbsArticle));
+	}
+    
+    /**
+	 * 新增或修改
+	 */
+    @PostMapping("/submit")
+    @ApiOperation(value = "新增或修改", notes = "传入bbsArticle")
+	public HttpResponseResult submit(@Valid @RequestBody BbsArticle bbsArticle) {
+        return status(bbsArticleService.saveOrUpdate(bbsArticle));
+    }
+
+ 	/**
+	 * 删除
+	 */
+	@PostMapping("/remove")
+	@ApiOperation(value = "逻辑删除", notes = "传入ids")
+	public HttpResponseResult remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
+        if (StringUtil.isEmpty(ids)) {
+			return failed("参数不能为空");
+		}
+		return status(bbsArticleService.removeByIds(StringUtil.toLongList(ids)));
+	}
+}

+ 86 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/controller/BbsCollectController.java

@@ -0,0 +1,86 @@
+package com.yonge.cooleshow.bbs.controller;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.yonge.toolset.base.page.PageInfo;
+import com.yonge.cooleshow.common.controller.BaseController;
+import com.yonge.cooleshow.common.entity.HttpResponseResult;
+import com.yonge.cooleshow.biz.dal.support.PageUtil;
+
+import com.yonge.toolset.utils.string.StringUtil;
+import io.swagger.annotations.*;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import javax.validation.Valid;
+
+import com.yonge.cooleshow.bbs.vo.BbsCollectVo;
+import com.yonge.cooleshow.bbs.dto.search.BbsCollectSearch;
+import com.yonge.cooleshow.bbs.entity.BbsCollect;
+import com.yonge.cooleshow.bbs.service.BbsCollectService;
+
+@RestController
+@RequestMapping("/bbsCollect")
+@Api(value = "收藏", tags = "收藏")
+public class BbsCollectController extends BaseController {
+
+    @Autowired
+    private BbsCollectService bbsCollectService;
+
+	/**
+     * 查询单条
+     */
+    @GetMapping("/detail/{id}")
+    @ApiOperation(value = "详情", notes = "传入id")
+    public HttpResponseResult<BbsCollectVo> detail(@PathVariable("id") Long id) {
+    	return succeed(bbsCollectService.detail(id));
+	}
+    
+    /**
+     * 查询分页
+     */
+    @PostMapping("/page")
+    @ApiOperation(value = "查询分页", notes = "传入bbsCollectSearch")
+    public HttpResponseResult<PageInfo<BbsCollectVo>> page(@RequestBody BbsCollectSearch query) {
+		IPage<BbsCollectVo> pages = bbsCollectService.selectPage(PageUtil.getPage(query), query);
+        return succeed(PageUtil.pageInfo(pages));
+	}
+    
+    /**
+	 * 新增
+	 */
+	@PostMapping("/save")
+	@ApiOperation(value = "新增", notes = "传入bbsCollect")
+	public HttpResponseResult save(@Valid @RequestBody BbsCollect bbsCollect) {
+    	return status(bbsCollectService.save(bbsCollect));
+	}
+    
+    /**
+	 * 修改
+	 */
+	@PostMapping("/update")
+	@ApiOperation(value = "修改", notes = "传入bbsCollect")
+	public HttpResponseResult update(@Valid @RequestBody BbsCollect bbsCollect) {
+        return status(bbsCollectService.updateById(bbsCollect));
+	}
+    
+    /**
+	 * 新增或修改
+	 */
+    @PostMapping("/submit")
+    @ApiOperation(value = "新增或修改", notes = "传入bbsCollect")
+	public HttpResponseResult submit(@Valid @RequestBody BbsCollect bbsCollect) {
+        return status(bbsCollectService.saveOrUpdate(bbsCollect));
+    }
+
+ 	/**
+	 * 删除
+	 */
+	@PostMapping("/remove")
+	@ApiOperation(value = "逻辑删除", notes = "传入ids")
+	public HttpResponseResult remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
+        if (StringUtil.isEmpty(ids)) {
+			return failed("参数不能为空");
+		}
+		return status(bbsCollectService.removeByIds(StringUtil.toLongList(ids)));
+	}
+}

+ 86 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/controller/BbsConfigLabelController.java

@@ -0,0 +1,86 @@
+package com.yonge.cooleshow.bbs.controller;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.yonge.toolset.base.page.PageInfo;
+import com.yonge.cooleshow.common.controller.BaseController;
+import com.yonge.cooleshow.common.entity.HttpResponseResult;
+import com.yonge.cooleshow.biz.dal.support.PageUtil;
+
+import com.yonge.toolset.utils.string.StringUtil;
+import io.swagger.annotations.*;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import javax.validation.Valid;
+
+import com.yonge.cooleshow.bbs.vo.BbsConfigLabelVo;
+import com.yonge.cooleshow.bbs.dto.search.BbsConfigLabelSearch;
+import com.yonge.cooleshow.bbs.entity.BbsConfigLabel;
+import com.yonge.cooleshow.bbs.service.BbsConfigLabelService;
+
+@RestController
+@RequestMapping("/bbsConfigLabel")
+@Api(value = "论坛标签设置", tags = "论坛标签设置")
+public class BbsConfigLabelController extends BaseController {
+
+    @Autowired
+    private BbsConfigLabelService bbsConfigLabelService;
+
+	/**
+     * 查询单条
+     */
+    @GetMapping("/detail/{id}")
+    @ApiOperation(value = "详情", notes = "传入id")
+    public HttpResponseResult<BbsConfigLabelVo> detail(@PathVariable("id") Long id) {
+    	return succeed(bbsConfigLabelService.detail(id));
+	}
+    
+    /**
+     * 查询分页
+     */
+    @PostMapping("/page")
+    @ApiOperation(value = "查询分页", notes = "传入bbsConfigLabelSearch")
+    public HttpResponseResult<PageInfo<BbsConfigLabelVo>> page(@RequestBody BbsConfigLabelSearch query) {
+		IPage<BbsConfigLabelVo> pages = bbsConfigLabelService.selectPage(PageUtil.getPage(query), query);
+        return succeed(PageUtil.pageInfo(pages));
+	}
+    
+    /**
+	 * 新增
+	 */
+	@PostMapping("/save")
+	@ApiOperation(value = "新增", notes = "传入bbsConfigLabel")
+	public HttpResponseResult save(@Valid @RequestBody BbsConfigLabel bbsConfigLabel) {
+    	return status(bbsConfigLabelService.save(bbsConfigLabel));
+	}
+    
+    /**
+	 * 修改
+	 */
+	@PostMapping("/update")
+	@ApiOperation(value = "修改", notes = "传入bbsConfigLabel")
+	public HttpResponseResult update(@Valid @RequestBody BbsConfigLabel bbsConfigLabel) {
+        return status(bbsConfigLabelService.updateById(bbsConfigLabel));
+	}
+    
+    /**
+	 * 新增或修改
+	 */
+    @PostMapping("/submit")
+    @ApiOperation(value = "新增或修改", notes = "传入bbsConfigLabel")
+	public HttpResponseResult submit(@Valid @RequestBody BbsConfigLabel bbsConfigLabel) {
+        return status(bbsConfigLabelService.saveOrUpdate(bbsConfigLabel));
+    }
+
+ 	/**
+	 * 删除
+	 */
+	@PostMapping("/remove")
+	@ApiOperation(value = "逻辑删除", notes = "传入ids")
+	public HttpResponseResult remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
+        if (StringUtil.isEmpty(ids)) {
+			return failed("参数不能为空");
+		}
+		return status(bbsConfigLabelService.removeByIds(StringUtil.toLongList(ids)));
+	}
+}

+ 86 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/controller/BbsFollowController.java

@@ -0,0 +1,86 @@
+package com.yonge.cooleshow.bbs.controller;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.yonge.toolset.base.page.PageInfo;
+import com.yonge.cooleshow.common.controller.BaseController;
+import com.yonge.cooleshow.common.entity.HttpResponseResult;
+import com.yonge.cooleshow.biz.dal.support.PageUtil;
+
+import com.yonge.toolset.utils.string.StringUtil;
+import io.swagger.annotations.*;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import javax.validation.Valid;
+
+import com.yonge.cooleshow.bbs.vo.BbsFollowVo;
+import com.yonge.cooleshow.bbs.dto.search.BbsFollowSearch;
+import com.yonge.cooleshow.bbs.entity.BbsFollow;
+import com.yonge.cooleshow.bbs.service.BbsFollowService;
+
+@RestController
+@RequestMapping("/bbsFollow")
+@Api(value = "关注", tags = "关注")
+public class BbsFollowController extends BaseController {
+
+    @Autowired
+    private BbsFollowService bbsFollowService;
+
+	/**
+     * 查询单条
+     */
+    @GetMapping("/detail/{id}")
+    @ApiOperation(value = "详情", notes = "传入id")
+    public HttpResponseResult<BbsFollowVo> detail(@PathVariable("id") Long id) {
+    	return succeed(bbsFollowService.detail(id));
+	}
+    
+    /**
+     * 查询分页
+     */
+    @PostMapping("/page")
+    @ApiOperation(value = "查询分页", notes = "传入bbsFollowSearch")
+    public HttpResponseResult<PageInfo<BbsFollowVo>> page(@RequestBody BbsFollowSearch query) {
+		IPage<BbsFollowVo> pages = bbsFollowService.selectPage(PageUtil.getPage(query), query);
+        return succeed(PageUtil.pageInfo(pages));
+	}
+    
+    /**
+	 * 新增
+	 */
+	@PostMapping("/save")
+	@ApiOperation(value = "新增", notes = "传入bbsFollow")
+	public HttpResponseResult save(@Valid @RequestBody BbsFollow bbsFollow) {
+    	return status(bbsFollowService.save(bbsFollow));
+	}
+    
+    /**
+	 * 修改
+	 */
+	@PostMapping("/update")
+	@ApiOperation(value = "修改", notes = "传入bbsFollow")
+	public HttpResponseResult update(@Valid @RequestBody BbsFollow bbsFollow) {
+        return status(bbsFollowService.updateById(bbsFollow));
+	}
+    
+    /**
+	 * 新增或修改
+	 */
+    @PostMapping("/submit")
+    @ApiOperation(value = "新增或修改", notes = "传入bbsFollow")
+	public HttpResponseResult submit(@Valid @RequestBody BbsFollow bbsFollow) {
+        return status(bbsFollowService.saveOrUpdate(bbsFollow));
+    }
+
+ 	/**
+	 * 删除
+	 */
+	@PostMapping("/remove")
+	@ApiOperation(value = "逻辑删除", notes = "传入ids")
+	public HttpResponseResult remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
+        if (StringUtil.isEmpty(ids)) {
+			return failed("参数不能为空");
+		}
+		return status(bbsFollowService.removeByIds(StringUtil.toLongList(ids)));
+	}
+}

+ 86 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/controller/BbsLikeController.java

@@ -0,0 +1,86 @@
+package com.yonge.cooleshow.bbs.controller;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.yonge.toolset.base.page.PageInfo;
+import com.yonge.cooleshow.common.controller.BaseController;
+import com.yonge.cooleshow.common.entity.HttpResponseResult;
+import com.yonge.cooleshow.biz.dal.support.PageUtil;
+
+import com.yonge.toolset.utils.string.StringUtil;
+import io.swagger.annotations.*;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import javax.validation.Valid;
+
+import com.yonge.cooleshow.bbs.vo.BbsLikeVo;
+import com.yonge.cooleshow.bbs.dto.search.BbsLikeSearch;
+import com.yonge.cooleshow.bbs.entity.BbsLike;
+import com.yonge.cooleshow.bbs.service.BbsLikeService;
+
+@RestController
+@RequestMapping("/bbsLike")
+@Api(value = "点赞", tags = "点赞")
+public class BbsLikeController extends BaseController {
+
+    @Autowired
+    private BbsLikeService bbsLikeService;
+
+	/**
+     * 查询单条
+     */
+    @GetMapping("/detail/{id}")
+    @ApiOperation(value = "详情", notes = "传入id")
+    public HttpResponseResult<BbsLikeVo> detail(@PathVariable("id") Long id) {
+    	return succeed(bbsLikeService.detail(id));
+	}
+    
+    /**
+     * 查询分页
+     */
+    @PostMapping("/page")
+    @ApiOperation(value = "查询分页", notes = "传入bbsLikeSearch")
+    public HttpResponseResult<PageInfo<BbsLikeVo>> page(@RequestBody BbsLikeSearch query) {
+		IPage<BbsLikeVo> pages = bbsLikeService.selectPage(PageUtil.getPage(query), query);
+        return succeed(PageUtil.pageInfo(pages));
+	}
+    
+    /**
+	 * 新增
+	 */
+	@PostMapping("/save")
+	@ApiOperation(value = "新增", notes = "传入bbsLike")
+	public HttpResponseResult save(@Valid @RequestBody BbsLike bbsLike) {
+    	return status(bbsLikeService.save(bbsLike));
+	}
+    
+    /**
+	 * 修改
+	 */
+	@PostMapping("/update")
+	@ApiOperation(value = "修改", notes = "传入bbsLike")
+	public HttpResponseResult update(@Valid @RequestBody BbsLike bbsLike) {
+        return status(bbsLikeService.updateById(bbsLike));
+	}
+    
+    /**
+	 * 新增或修改
+	 */
+    @PostMapping("/submit")
+    @ApiOperation(value = "新增或修改", notes = "传入bbsLike")
+	public HttpResponseResult submit(@Valid @RequestBody BbsLike bbsLike) {
+        return status(bbsLikeService.saveOrUpdate(bbsLike));
+    }
+
+ 	/**
+	 * 删除
+	 */
+	@PostMapping("/remove")
+	@ApiOperation(value = "逻辑删除", notes = "传入ids")
+	public HttpResponseResult remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
+        if (StringUtil.isEmpty(ids)) {
+			return failed("参数不能为空");
+		}
+		return status(bbsLikeService.removeByIds(StringUtil.toLongList(ids)));
+	}
+}

+ 86 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/controller/BbsPrivateMessageController.java

@@ -0,0 +1,86 @@
+package com.yonge.cooleshow.bbs.controller;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.yonge.toolset.base.page.PageInfo;
+import com.yonge.cooleshow.common.controller.BaseController;
+import com.yonge.cooleshow.common.entity.HttpResponseResult;
+import com.yonge.cooleshow.biz.dal.support.PageUtil;
+
+import com.yonge.toolset.utils.string.StringUtil;
+import io.swagger.annotations.*;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import javax.validation.Valid;
+
+import com.yonge.cooleshow.bbs.vo.BbsPrivateMessageVo;
+import com.yonge.cooleshow.bbs.dto.search.BbsPrivateMessageSearch;
+import com.yonge.cooleshow.bbs.entity.BbsPrivateMessage;
+import com.yonge.cooleshow.bbs.service.BbsPrivateMessageService;
+
+@RestController
+@RequestMapping("/bbsPrivateMessage")
+@Api(value = "私信", tags = "私信")
+public class BbsPrivateMessageController extends BaseController {
+
+    @Autowired
+    private BbsPrivateMessageService bbsPrivateMessageService;
+
+	/**
+     * 查询单条
+     */
+    @GetMapping("/detail/{id}")
+    @ApiOperation(value = "详情", notes = "传入id")
+    public HttpResponseResult<BbsPrivateMessageVo> detail(@PathVariable("id") Long id) {
+    	return succeed(bbsPrivateMessageService.detail(id));
+	}
+    
+    /**
+     * 查询分页
+     */
+    @PostMapping("/page")
+    @ApiOperation(value = "查询分页", notes = "传入bbsPrivateMessageSearch")
+    public HttpResponseResult<PageInfo<BbsPrivateMessageVo>> page(@RequestBody BbsPrivateMessageSearch query) {
+		IPage<BbsPrivateMessageVo> pages = bbsPrivateMessageService.selectPage(PageUtil.getPage(query), query);
+        return succeed(PageUtil.pageInfo(pages));
+	}
+    
+    /**
+	 * 新增
+	 */
+	@PostMapping("/save")
+	@ApiOperation(value = "新增", notes = "传入bbsPrivateMessage")
+	public HttpResponseResult save(@Valid @RequestBody BbsPrivateMessage bbsPrivateMessage) {
+    	return status(bbsPrivateMessageService.save(bbsPrivateMessage));
+	}
+    
+    /**
+	 * 修改
+	 */
+	@PostMapping("/update")
+	@ApiOperation(value = "修改", notes = "传入bbsPrivateMessage")
+	public HttpResponseResult update(@Valid @RequestBody BbsPrivateMessage bbsPrivateMessage) {
+        return status(bbsPrivateMessageService.updateById(bbsPrivateMessage));
+	}
+    
+    /**
+	 * 新增或修改
+	 */
+    @PostMapping("/submit")
+    @ApiOperation(value = "新增或修改", notes = "传入bbsPrivateMessage")
+	public HttpResponseResult submit(@Valid @RequestBody BbsPrivateMessage bbsPrivateMessage) {
+        return status(bbsPrivateMessageService.saveOrUpdate(bbsPrivateMessage));
+    }
+
+ 	/**
+	 * 删除
+	 */
+	@PostMapping("/remove")
+	@ApiOperation(value = "逻辑删除", notes = "传入ids")
+	public HttpResponseResult remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
+        if (StringUtil.isEmpty(ids)) {
+			return failed("参数不能为空");
+		}
+		return status(bbsPrivateMessageService.removeByIds(StringUtil.toLongList(ids)));
+	}
+}

+ 86 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/controller/BbsReplyController.java

@@ -0,0 +1,86 @@
+package com.yonge.cooleshow.bbs.controller;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.yonge.toolset.base.page.PageInfo;
+import com.yonge.cooleshow.common.controller.BaseController;
+import com.yonge.cooleshow.common.entity.HttpResponseResult;
+import com.yonge.cooleshow.biz.dal.support.PageUtil;
+
+import com.yonge.toolset.utils.string.StringUtil;
+import io.swagger.annotations.*;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.*;
+
+import javax.validation.Valid;
+
+import com.yonge.cooleshow.bbs.vo.BbsReplyVo;
+import com.yonge.cooleshow.bbs.dto.search.BbsReplySearch;
+import com.yonge.cooleshow.bbs.entity.BbsReply;
+import com.yonge.cooleshow.bbs.service.BbsReplyService;
+
+@RestController
+@RequestMapping("/bbsReply")
+@Api(value = "文章评论", tags = "文章评论")
+public class BbsReplyController extends BaseController {
+
+    @Autowired
+    private BbsReplyService bbsReplyService;
+
+	/**
+     * 查询单条
+     */
+    @GetMapping("/detail/{id}")
+    @ApiOperation(value = "详情", notes = "传入id")
+    public HttpResponseResult<BbsReplyVo> detail(@PathVariable("id") Long id) {
+    	return succeed(bbsReplyService.detail(id));
+	}
+    
+    /**
+     * 查询分页
+     */
+    @PostMapping("/page")
+    @ApiOperation(value = "查询分页", notes = "传入bbsReplySearch")
+    public HttpResponseResult<PageInfo<BbsReplyVo>> page(@RequestBody BbsReplySearch query) {
+		IPage<BbsReplyVo> pages = bbsReplyService.selectPage(PageUtil.getPage(query), query);
+        return succeed(PageUtil.pageInfo(pages));
+	}
+    
+    /**
+	 * 新增
+	 */
+	@PostMapping("/save")
+	@ApiOperation(value = "新增", notes = "传入bbsReply")
+	public HttpResponseResult save(@Valid @RequestBody BbsReply bbsReply) {
+    	return status(bbsReplyService.save(bbsReply));
+	}
+    
+    /**
+	 * 修改
+	 */
+	@PostMapping("/update")
+	@ApiOperation(value = "修改", notes = "传入bbsReply")
+	public HttpResponseResult update(@Valid @RequestBody BbsReply bbsReply) {
+        return status(bbsReplyService.updateById(bbsReply));
+	}
+    
+    /**
+	 * 新增或修改
+	 */
+    @PostMapping("/submit")
+    @ApiOperation(value = "新增或修改", notes = "传入bbsReply")
+	public HttpResponseResult submit(@Valid @RequestBody BbsReply bbsReply) {
+        return status(bbsReplyService.saveOrUpdate(bbsReply));
+    }
+
+ 	/**
+	 * 删除
+	 */
+	@PostMapping("/remove")
+	@ApiOperation(value = "逻辑删除", notes = "传入ids")
+	public HttpResponseResult remove(@ApiParam(value = "主键集合", required = true) @RequestParam String ids) {
+        if (StringUtil.isEmpty(ids)) {
+			return failed("参数不能为空");
+		}
+		return status(bbsReplyService.removeByIds(StringUtil.toLongList(ids)));
+	}
+}

+ 30 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dao/BbsArticleDao.java

@@ -0,0 +1,30 @@
+package com.yonge.cooleshow.bbs.dao;
+
+import java.util.List;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import org.apache.ibatis.annotations.Param;
+import com.yonge.cooleshow.bbs.entity.BbsArticle;
+import com.yonge.cooleshow.bbs.vo.BbsArticleVo;
+import com.yonge.cooleshow.bbs.dto.search.BbsArticleSearch;
+
+
+public interface BbsArticleDao extends BaseMapper<BbsArticle>{
+	/**
+	 * 查询详情
+     * @author liweifan
+     * @date 2022-06-09 17:27:11
+     * @return: com.yonge.cooleshow.bbs.vo.BbsArticleVo
+	 */
+	BbsArticleVo detail(@Param("id") Long id);
+
+	/**
+	 * 分页查询
+     * @author liweifan
+     * @date 2022-06-09 17:27:11
+     * @return: com.yonge.cooleshow.bbs.vo.BbsArticleVo
+	 */
+	List<BbsArticleVo> selectPage(@Param("page") IPage page, @Param("param") BbsArticleSearch bbsArticle);
+	
+}

+ 30 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dao/BbsCollectDao.java

@@ -0,0 +1,30 @@
+package com.yonge.cooleshow.bbs.dao;
+
+import java.util.List;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import org.apache.ibatis.annotations.Param;
+import com.yonge.cooleshow.bbs.entity.BbsCollect;
+import com.yonge.cooleshow.bbs.vo.BbsCollectVo;
+import com.yonge.cooleshow.bbs.dto.search.BbsCollectSearch;
+
+
+public interface BbsCollectDao extends BaseMapper<BbsCollect>{
+	/**
+	 * 查询详情
+     * @author liweifan
+     * @date 2022-06-09 17:27:11
+     * @return: com.yonge.cooleshow.bbs.vo.BbsCollectVo
+	 */
+	BbsCollectVo detail(@Param("id") Long id);
+
+	/**
+	 * 分页查询
+     * @author liweifan
+     * @date 2022-06-09 17:27:11
+     * @return: com.yonge.cooleshow.bbs.vo.BbsCollectVo
+	 */
+	List<BbsCollectVo> selectPage(@Param("page") IPage page, @Param("param") BbsCollectSearch bbsCollect);
+	
+}

+ 30 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dao/BbsConfigLabelDao.java

@@ -0,0 +1,30 @@
+package com.yonge.cooleshow.bbs.dao;
+
+import java.util.List;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import org.apache.ibatis.annotations.Param;
+import com.yonge.cooleshow.bbs.entity.BbsConfigLabel;
+import com.yonge.cooleshow.bbs.vo.BbsConfigLabelVo;
+import com.yonge.cooleshow.bbs.dto.search.BbsConfigLabelSearch;
+
+
+public interface BbsConfigLabelDao extends BaseMapper<BbsConfigLabel>{
+	/**
+	 * 查询详情
+     * @author liweifan
+     * @date 2022-06-09 17:27:11
+     * @return: com.yonge.cooleshow.bbs.vo.BbsConfigLabelVo
+	 */
+	BbsConfigLabelVo detail(@Param("id") Long id);
+
+	/**
+	 * 分页查询
+     * @author liweifan
+     * @date 2022-06-09 17:27:11
+     * @return: com.yonge.cooleshow.bbs.vo.BbsConfigLabelVo
+	 */
+	List<BbsConfigLabelVo> selectPage(@Param("page") IPage page, @Param("param") BbsConfigLabelSearch bbsConfigLabel);
+	
+}

+ 30 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dao/BbsFollowDao.java

@@ -0,0 +1,30 @@
+package com.yonge.cooleshow.bbs.dao;
+
+import java.util.List;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import org.apache.ibatis.annotations.Param;
+import com.yonge.cooleshow.bbs.entity.BbsFollow;
+import com.yonge.cooleshow.bbs.vo.BbsFollowVo;
+import com.yonge.cooleshow.bbs.dto.search.BbsFollowSearch;
+
+
+public interface BbsFollowDao extends BaseMapper<BbsFollow>{
+	/**
+	 * 查询详情
+     * @author liweifan
+     * @date 2022-06-09 17:27:11
+     * @return: com.yonge.cooleshow.bbs.vo.BbsFollowVo
+	 */
+	BbsFollowVo detail(@Param("id") Long id);
+
+	/**
+	 * 分页查询
+     * @author liweifan
+     * @date 2022-06-09 17:27:11
+     * @return: com.yonge.cooleshow.bbs.vo.BbsFollowVo
+	 */
+	List<BbsFollowVo> selectPage(@Param("page") IPage page, @Param("param") BbsFollowSearch bbsFollow);
+	
+}

+ 30 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dao/BbsLikeDao.java

@@ -0,0 +1,30 @@
+package com.yonge.cooleshow.bbs.dao;
+
+import java.util.List;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import org.apache.ibatis.annotations.Param;
+import com.yonge.cooleshow.bbs.entity.BbsLike;
+import com.yonge.cooleshow.bbs.vo.BbsLikeVo;
+import com.yonge.cooleshow.bbs.dto.search.BbsLikeSearch;
+
+
+public interface BbsLikeDao extends BaseMapper<BbsLike>{
+	/**
+	 * 查询详情
+     * @author liweifan
+     * @date 2022-06-09 17:27:11
+     * @return: com.yonge.cooleshow.bbs.vo.BbsLikeVo
+	 */
+	BbsLikeVo detail(@Param("id") Long id);
+
+	/**
+	 * 分页查询
+     * @author liweifan
+     * @date 2022-06-09 17:27:11
+     * @return: com.yonge.cooleshow.bbs.vo.BbsLikeVo
+	 */
+	List<BbsLikeVo> selectPage(@Param("page") IPage page, @Param("param") BbsLikeSearch bbsLike);
+	
+}

+ 30 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dao/BbsPrivateMessageDao.java

@@ -0,0 +1,30 @@
+package com.yonge.cooleshow.bbs.dao;
+
+import java.util.List;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import org.apache.ibatis.annotations.Param;
+import com.yonge.cooleshow.bbs.entity.BbsPrivateMessage;
+import com.yonge.cooleshow.bbs.vo.BbsPrivateMessageVo;
+import com.yonge.cooleshow.bbs.dto.search.BbsPrivateMessageSearch;
+
+
+public interface BbsPrivateMessageDao extends BaseMapper<BbsPrivateMessage>{
+	/**
+	 * 查询详情
+     * @author liweifan
+     * @date 2022-06-09 17:27:11
+     * @return: com.yonge.cooleshow.bbs.vo.BbsPrivateMessageVo
+	 */
+	BbsPrivateMessageVo detail(@Param("id") Long id);
+
+	/**
+	 * 分页查询
+     * @author liweifan
+     * @date 2022-06-09 17:27:11
+     * @return: com.yonge.cooleshow.bbs.vo.BbsPrivateMessageVo
+	 */
+	List<BbsPrivateMessageVo> selectPage(@Param("page") IPage page, @Param("param") BbsPrivateMessageSearch bbsPrivateMessage);
+	
+}

+ 30 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dao/BbsReplyDao.java

@@ -0,0 +1,30 @@
+package com.yonge.cooleshow.bbs.dao;
+
+import java.util.List;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import org.apache.ibatis.annotations.Param;
+import com.yonge.cooleshow.bbs.entity.BbsReply;
+import com.yonge.cooleshow.bbs.vo.BbsReplyVo;
+import com.yonge.cooleshow.bbs.dto.search.BbsReplySearch;
+
+
+public interface BbsReplyDao extends BaseMapper<BbsReply>{
+	/**
+	 * 查询详情
+     * @author liweifan
+     * @date 2022-06-09 17:27:11
+     * @return: com.yonge.cooleshow.bbs.vo.BbsReplyVo
+	 */
+	BbsReplyVo detail(@Param("id") Long id);
+
+	/**
+	 * 分页查询
+     * @author liweifan
+     * @date 2022-06-09 17:27:11
+     * @return: com.yonge.cooleshow.bbs.vo.BbsReplyVo
+	 */
+	List<BbsReplyVo> selectPage(@Param("page") IPage page, @Param("param") BbsReplySearch bbsReply);
+	
+}

+ 24 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dto/BbsArticleDto.java

@@ -0,0 +1,24 @@
+package com.yonge.cooleshow.bbs.dto;
+
+import com.yonge.cooleshow.bbs.entity.BbsArticle;
+import io.swagger.annotations.ApiModel;
+import org.apache.commons.beanutils.BeanUtils;
+
+/**
+ * @Author: liweifan
+ * @Data: 2022-06-09 17:27:11
+ */
+@ApiModel(value = "BbsArticleDto对象", description = "文章数据传输对象")
+public class BbsArticleDto extends BbsArticle{
+	private static final long serialVersionUID = 1L;
+    
+    public BbsArticleDto buildDto(BbsArticle bbsArticle){
+        try {
+            BeanUtils.copyProperties(this,bbsArticle);
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+        return this;
+    }
+
+}

+ 24 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dto/BbsCollectDto.java

@@ -0,0 +1,24 @@
+package com.yonge.cooleshow.bbs.dto;
+
+import com.yonge.cooleshow.bbs.entity.BbsCollect;
+import io.swagger.annotations.ApiModel;
+import org.apache.commons.beanutils.BeanUtils;
+
+/**
+ * @Author: liweifan
+ * @Data: 2022-06-09 17:27:11
+ */
+@ApiModel(value = "BbsCollectDto对象", description = "收藏数据传输对象")
+public class BbsCollectDto extends BbsCollect{
+	private static final long serialVersionUID = 1L;
+    
+    public BbsCollectDto buildDto(BbsCollect bbsCollect){
+        try {
+            BeanUtils.copyProperties(this,bbsCollect);
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+        return this;
+    }
+
+}

+ 24 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dto/BbsConfigLabelDto.java

@@ -0,0 +1,24 @@
+package com.yonge.cooleshow.bbs.dto;
+
+import com.yonge.cooleshow.bbs.entity.BbsConfigLabel;
+import io.swagger.annotations.ApiModel;
+import org.apache.commons.beanutils.BeanUtils;
+
+/**
+ * @Author: liweifan
+ * @Data: 2022-06-09 17:27:11
+ */
+@ApiModel(value = "BbsConfigLabelDto对象", description = "论坛标签设置数据传输对象")
+public class BbsConfigLabelDto extends BbsConfigLabel{
+	private static final long serialVersionUID = 1L;
+    
+    public BbsConfigLabelDto buildDto(BbsConfigLabel bbsConfigLabel){
+        try {
+            BeanUtils.copyProperties(this,bbsConfigLabel);
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+        return this;
+    }
+
+}

+ 24 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dto/BbsFollowDto.java

@@ -0,0 +1,24 @@
+package com.yonge.cooleshow.bbs.dto;
+
+import com.yonge.cooleshow.bbs.entity.BbsFollow;
+import io.swagger.annotations.ApiModel;
+import org.apache.commons.beanutils.BeanUtils;
+
+/**
+ * @Author: liweifan
+ * @Data: 2022-06-09 17:27:11
+ */
+@ApiModel(value = "BbsFollowDto对象", description = "关注数据传输对象")
+public class BbsFollowDto extends BbsFollow{
+	private static final long serialVersionUID = 1L;
+    
+    public BbsFollowDto buildDto(BbsFollow bbsFollow){
+        try {
+            BeanUtils.copyProperties(this,bbsFollow);
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+        return this;
+    }
+
+}

+ 24 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dto/BbsLikeDto.java

@@ -0,0 +1,24 @@
+package com.yonge.cooleshow.bbs.dto;
+
+import com.yonge.cooleshow.bbs.entity.BbsLike;
+import io.swagger.annotations.ApiModel;
+import org.apache.commons.beanutils.BeanUtils;
+
+/**
+ * @Author: liweifan
+ * @Data: 2022-06-09 17:27:11
+ */
+@ApiModel(value = "BbsLikeDto对象", description = "点赞数据传输对象")
+public class BbsLikeDto extends BbsLike{
+	private static final long serialVersionUID = 1L;
+    
+    public BbsLikeDto buildDto(BbsLike bbsLike){
+        try {
+            BeanUtils.copyProperties(this,bbsLike);
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+        return this;
+    }
+
+}

+ 24 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dto/BbsPrivateMessageDto.java

@@ -0,0 +1,24 @@
+package com.yonge.cooleshow.bbs.dto;
+
+import com.yonge.cooleshow.bbs.entity.BbsPrivateMessage;
+import io.swagger.annotations.ApiModel;
+import org.apache.commons.beanutils.BeanUtils;
+
+/**
+ * @Author: liweifan
+ * @Data: 2022-06-09 17:27:11
+ */
+@ApiModel(value = "BbsPrivateMessageDto对象", description = "私信数据传输对象")
+public class BbsPrivateMessageDto extends BbsPrivateMessage{
+	private static final long serialVersionUID = 1L;
+    
+    public BbsPrivateMessageDto buildDto(BbsPrivateMessage bbsPrivateMessage){
+        try {
+            BeanUtils.copyProperties(this,bbsPrivateMessage);
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+        return this;
+    }
+
+}

+ 24 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dto/BbsReplyDto.java

@@ -0,0 +1,24 @@
+package com.yonge.cooleshow.bbs.dto;
+
+import com.yonge.cooleshow.bbs.entity.BbsReply;
+import io.swagger.annotations.ApiModel;
+import org.apache.commons.beanutils.BeanUtils;
+
+/**
+ * @Author: liweifan
+ * @Data: 2022-06-09 17:27:11
+ */
+@ApiModel(value = "BbsReplyDto对象", description = "文章评论数据传输对象")
+public class BbsReplyDto extends BbsReply{
+	private static final long serialVersionUID = 1L;
+    
+    public BbsReplyDto buildDto(BbsReply bbsReply){
+        try {
+            BeanUtils.copyProperties(this,bbsReply);
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+        return this;
+    }
+
+}

+ 14 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dto/search/BbsArticleSearch.java

@@ -0,0 +1,14 @@
+package com.yonge.cooleshow.bbs.dto.search;
+
+import com.yonge.toolset.base.page.QueryInfo;
+import io.swagger.annotations.ApiModel;
+
+/**
+ * @Author: liweifan
+ * @Data: 2022-06-09 17:27:11
+ */
+@ApiModel(value = "BbsArticleSearch对象", description = "文章查询对象")
+public class BbsArticleSearch extends QueryInfo{
+	private static final long serialVersionUID = 1L;
+
+}

+ 14 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dto/search/BbsCollectSearch.java

@@ -0,0 +1,14 @@
+package com.yonge.cooleshow.bbs.dto.search;
+
+import com.yonge.toolset.base.page.QueryInfo;
+import io.swagger.annotations.ApiModel;
+
+/**
+ * @Author: liweifan
+ * @Data: 2022-06-09 17:27:11
+ */
+@ApiModel(value = "BbsCollectSearch对象", description = "收藏查询对象")
+public class BbsCollectSearch extends QueryInfo{
+	private static final long serialVersionUID = 1L;
+
+}

+ 14 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dto/search/BbsConfigLabelSearch.java

@@ -0,0 +1,14 @@
+package com.yonge.cooleshow.bbs.dto.search;
+
+import com.yonge.toolset.base.page.QueryInfo;
+import io.swagger.annotations.ApiModel;
+
+/**
+ * @Author: liweifan
+ * @Data: 2022-06-09 17:27:11
+ */
+@ApiModel(value = "BbsConfigLabelSearch对象", description = "论坛标签设置查询对象")
+public class BbsConfigLabelSearch extends QueryInfo{
+	private static final long serialVersionUID = 1L;
+
+}

+ 14 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dto/search/BbsFollowSearch.java

@@ -0,0 +1,14 @@
+package com.yonge.cooleshow.bbs.dto.search;
+
+import com.yonge.toolset.base.page.QueryInfo;
+import io.swagger.annotations.ApiModel;
+
+/**
+ * @Author: liweifan
+ * @Data: 2022-06-09 17:27:11
+ */
+@ApiModel(value = "BbsFollowSearch对象", description = "关注查询对象")
+public class BbsFollowSearch extends QueryInfo{
+	private static final long serialVersionUID = 1L;
+
+}

+ 14 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dto/search/BbsLikeSearch.java

@@ -0,0 +1,14 @@
+package com.yonge.cooleshow.bbs.dto.search;
+
+import com.yonge.toolset.base.page.QueryInfo;
+import io.swagger.annotations.ApiModel;
+
+/**
+ * @Author: liweifan
+ * @Data: 2022-06-09 17:27:11
+ */
+@ApiModel(value = "BbsLikeSearch对象", description = "点赞查询对象")
+public class BbsLikeSearch extends QueryInfo{
+	private static final long serialVersionUID = 1L;
+
+}

+ 14 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dto/search/BbsPrivateMessageSearch.java

@@ -0,0 +1,14 @@
+package com.yonge.cooleshow.bbs.dto.search;
+
+import com.yonge.toolset.base.page.QueryInfo;
+import io.swagger.annotations.ApiModel;
+
+/**
+ * @Author: liweifan
+ * @Data: 2022-06-09 17:27:11
+ */
+@ApiModel(value = "BbsPrivateMessageSearch对象", description = "私信查询对象")
+public class BbsPrivateMessageSearch extends QueryInfo{
+	private static final long serialVersionUID = 1L;
+
+}

+ 14 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/dto/search/BbsReplySearch.java

@@ -0,0 +1,14 @@
+package com.yonge.cooleshow.bbs.dto.search;
+
+import com.yonge.toolset.base.page.QueryInfo;
+import io.swagger.annotations.ApiModel;
+
+/**
+ * @Author: liweifan
+ * @Data: 2022-06-09 17:27:11
+ */
+@ApiModel(value = "BbsReplySearch对象", description = "文章评论查询对象")
+public class BbsReplySearch extends QueryInfo{
+	private static final long serialVersionUID = 1L;
+
+}

+ 213 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/entity/BbsArticle.java

@@ -0,0 +1,213 @@
+package com.yonge.cooleshow.bbs.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+
+import java.io.Serializable;
+import java.util.Date;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+
+/**
+ * 文章
+ */
+@TableName("bbs_article")
+@ApiModel(value = "BbsArticle对象", description = "文章")
+public class BbsArticle implements Serializable {
+	private static final long serialVersionUID = 1L;
+    @TableId(value = "id_", type = IdType.AUTO)
+    private Long id;
+    @ApiModelProperty("发布者id ")
+	@TableField(value = "user_id_")
+    private Long userId;
+    @ApiModelProperty("文章标题 ")
+	@TableField(value = "title_")
+    private String title;
+    @ApiModelProperty("文章内容 ")
+	@TableField(value = "content_")
+    private String content;
+    @ApiModelProperty("标签id ")
+	@TableField(value = "label_id_")
+    private Integer labelId;
+    @ApiModelProperty("标签名称(冗余字段) ")
+	@TableField(value = "label_name_")
+    private String labelName;
+    @ApiModelProperty("阅读量 ")
+	@TableField(value = "views_count_")
+    private Long viewsCount;
+    @ApiModelProperty("点赞量 ")
+	@TableField(value = "likes_count_")
+    private Long likesCount;
+    @ApiModelProperty("评论量 ")
+	@TableField(value = "comments_count_")
+    private Long commentsCount;
+    @ApiModelProperty("收藏量 ")
+	@TableField(value = "collects_count_")
+    private Long collectsCount;
+    @ApiModelProperty("草稿:DRAFT,审核中:DOING,通过:PASS,驳回:REJECT ")
+	@TableField(value = "status_")
+    private String status;
+    @ApiModelProperty("是否置顶 0:未置顶 1:置顶 ")
+	@TableField(value = "top_flag_")
+    private Byte topFlag;
+    @ApiModelProperty("是否可评论 0:不可评论 1:可评论 ")
+	@TableField(value = "reply_flag_")
+    private Byte replyFlag;
+    @ApiModelProperty("审核通过时间 ")
+	@TableField(value = "examine_time_")
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
+    private Date examineTime;
+	@TableField(value = "created_time_")
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
+    private Date createdTime;
+	@TableField(value = "updated_time_")
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
+    private Date updatedTime;
+    @ApiModelProperty("0:正常 1:删除 ")
+	@TableField(value = "del_flag_")
+    private Byte delFlag;
+
+	public Long getId() {
+        return id;
+    }
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+    
+	public Long getUserId() {
+        return userId;
+    }
+
+    public void setUserId(Long userId) {
+        this.userId = userId;
+    }
+    
+	public String getTitle() {
+        return title;
+    }
+
+    public void setTitle(String title) {
+        this.title = title;
+    }
+    
+	public String getContent() {
+        return content;
+    }
+
+    public void setContent(String content) {
+        this.content = content;
+    }
+    
+	public Integer getLabelId() {
+        return labelId;
+    }
+
+    public void setLabelId(Integer labelId) {
+        this.labelId = labelId;
+    }
+    
+	public String getLabelName() {
+        return labelName;
+    }
+
+    public void setLabelName(String labelName) {
+        this.labelName = labelName;
+    }
+    
+	public Long getViewsCount() {
+        return viewsCount;
+    }
+
+    public void setViewsCount(Long viewsCount) {
+        this.viewsCount = viewsCount;
+    }
+    
+	public Long getLikesCount() {
+        return likesCount;
+    }
+
+    public void setLikesCount(Long likesCount) {
+        this.likesCount = likesCount;
+    }
+    
+	public Long getCommentsCount() {
+        return commentsCount;
+    }
+
+    public void setCommentsCount(Long commentsCount) {
+        this.commentsCount = commentsCount;
+    }
+    
+	public Long getCollectsCount() {
+        return collectsCount;
+    }
+
+    public void setCollectsCount(Long collectsCount) {
+        this.collectsCount = collectsCount;
+    }
+    
+	public String getStatus() {
+        return status;
+    }
+
+    public void setStatus(String status) {
+        this.status = status;
+    }
+    
+	public Byte getTopFlag() {
+        return topFlag;
+    }
+
+    public void setTopFlag(Byte topFlag) {
+        this.topFlag = topFlag;
+    }
+    
+	public Byte getReplyFlag() {
+        return replyFlag;
+    }
+
+    public void setReplyFlag(Byte replyFlag) {
+        this.replyFlag = replyFlag;
+    }
+    
+	public Date getExamineTime() {
+        return examineTime;
+    }
+
+    public void setExamineTime(Date examineTime) {
+        this.examineTime = examineTime;
+    }
+    
+	public Date getCreatedTime() {
+        return createdTime;
+    }
+
+    public void setCreatedTime(Date createdTime) {
+        this.createdTime = createdTime;
+    }
+    
+	public Date getUpdatedTime() {
+        return updatedTime;
+    }
+
+    public void setUpdatedTime(Date updatedTime) {
+        this.updatedTime = updatedTime;
+    }
+    
+	public Byte getDelFlag() {
+        return delFlag;
+    }
+
+    public void setDelFlag(Byte delFlag) {
+        this.delFlag = delFlag;
+    }
+    
+}

+ 68 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/entity/BbsCollect.java

@@ -0,0 +1,68 @@
+package com.yonge.cooleshow.bbs.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+
+import java.io.Serializable;
+import java.util.Date;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+
+/**
+ * 收藏
+ */
+@TableName("bbs_collect")
+@ApiModel(value = "BbsCollect对象", description = "收藏")
+public class BbsCollect implements Serializable {
+	private static final long serialVersionUID = 1L;
+    @TableId(value = "id_", type = IdType.AUTO)
+    private Long id;
+    @ApiModelProperty("文章id ")
+	@TableField(value = "article_id_")
+    private Long articleId;
+    @ApiModelProperty("收藏用户id ")
+	@TableField(value = "collect_user_id_")
+    private Long collectUserId;
+    @ApiModelProperty("收藏日期 ")
+	@TableField(value = "created_time_")
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
+    private Date createdTime;
+
+	public Long getId() {
+        return id;
+    }
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+    
+	public Long getArticleId() {
+        return articleId;
+    }
+
+    public void setArticleId(Long articleId) {
+        this.articleId = articleId;
+    }
+    
+	public Long getCollectUserId() {
+        return collectUserId;
+    }
+
+    public void setCollectUserId(Long collectUserId) {
+        this.collectUserId = collectUserId;
+    }
+    
+	public Date getCreatedTime() {
+        return createdTime;
+    }
+
+    public void setCreatedTime(Date createdTime) {
+        this.createdTime = createdTime;
+    }
+    
+}

+ 101 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/entity/BbsConfigLabel.java

@@ -0,0 +1,101 @@
+package com.yonge.cooleshow.bbs.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+
+import java.io.Serializable;
+import java.util.Date;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+
+/**
+ * 论坛标签设置
+ */
+@TableName("bbs_config_label")
+@ApiModel(value = "BbsConfigLabel对象", description = "论坛标签设置")
+public class BbsConfigLabel implements Serializable {
+	private static final long serialVersionUID = 1L;
+    @TableId(value = "id_", type = IdType.AUTO)
+    private Long id;
+    @ApiModelProperty("标签 ")
+	@TableField(value = "label_name_")
+    private String labelName;
+    @ApiModelProperty("创建者 ")
+	@TableField(value = "create_by_")
+    private Long createBy;
+    @ApiModelProperty("修改者 ")
+	@TableField(value = "update_by_")
+    private Long updateBy;
+	@TableField(value = "created_time_")
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
+    private Date createdTime;
+	@TableField(value = "updated_time_")
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
+    private Date updatedTime;
+    @ApiModelProperty("0:正常 1:删除 ")
+	@TableField(value = "del_flag_")
+    private Byte delFlag;
+
+	public Long getId() {
+        return id;
+    }
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+    
+	public String getLabelName() {
+        return labelName;
+    }
+
+    public void setLabelName(String labelName) {
+        this.labelName = labelName;
+    }
+    
+	public Long getCreateBy() {
+        return createBy;
+    }
+
+    public void setCreateBy(Long createBy) {
+        this.createBy = createBy;
+    }
+    
+	public Long getUpdateBy() {
+        return updateBy;
+    }
+
+    public void setUpdateBy(Long updateBy) {
+        this.updateBy = updateBy;
+    }
+    
+	public Date getCreatedTime() {
+        return createdTime;
+    }
+
+    public void setCreatedTime(Date createdTime) {
+        this.createdTime = createdTime;
+    }
+    
+	public Date getUpdatedTime() {
+        return updatedTime;
+    }
+
+    public void setUpdatedTime(Date updatedTime) {
+        this.updatedTime = updatedTime;
+    }
+    
+	public Byte getDelFlag() {
+        return delFlag;
+    }
+
+    public void setDelFlag(Byte delFlag) {
+        this.delFlag = delFlag;
+    }
+    
+}

+ 68 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/entity/BbsFollow.java

@@ -0,0 +1,68 @@
+package com.yonge.cooleshow.bbs.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+
+import java.io.Serializable;
+import java.util.Date;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+
+/**
+ * 关注
+ */
+@TableName("bbs_follow")
+@ApiModel(value = "BbsFollow对象", description = "关注")
+public class BbsFollow implements Serializable {
+	private static final long serialVersionUID = 1L;
+    @TableId(value = "id_", type = IdType.AUTO)
+    private Long id;
+    @ApiModelProperty("用户id ")
+	@TableField(value = "user_id_")
+    private Long userId;
+    @ApiModelProperty("关注用户id ")
+	@TableField(value = "friend_user_id")
+    private Long friendUserId;
+    @ApiModelProperty("关注时间 ")
+	@TableField(value = "created_time_")
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
+    private Date createdTime;
+
+	public Long getId() {
+        return id;
+    }
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+    
+	public Long getUserId() {
+        return userId;
+    }
+
+    public void setUserId(Long userId) {
+        this.userId = userId;
+    }
+    
+	public Long getFriendUserId() {
+        return friendUserId;
+    }
+
+    public void setFriendUserId(Long friendUserId) {
+        this.friendUserId = friendUserId;
+    }
+    
+	public Date getCreatedTime() {
+        return createdTime;
+    }
+
+    public void setCreatedTime(Date createdTime) {
+        this.createdTime = createdTime;
+    }
+    
+}

+ 68 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/entity/BbsLike.java

@@ -0,0 +1,68 @@
+package com.yonge.cooleshow.bbs.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+
+import java.io.Serializable;
+import java.util.Date;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+
+/**
+ * 点赞
+ */
+@TableName("bbs_like")
+@ApiModel(value = "BbsLike对象", description = "点赞")
+public class BbsLike implements Serializable {
+	private static final long serialVersionUID = 1L;
+    @TableId(value = "id_", type = IdType.AUTO)
+    private Long id;
+    @ApiModelProperty("文章id ")
+	@TableField(value = "article_id_")
+    private Long articleId;
+    @ApiModelProperty("点赞用户id ")
+	@TableField(value = "like_user_id_")
+    private Long likeUserId;
+    @ApiModelProperty("点赞日期 ")
+	@TableField(value = "created_time_")
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
+    private Date createdTime;
+
+	public Long getId() {
+        return id;
+    }
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+    
+	public Long getArticleId() {
+        return articleId;
+    }
+
+    public void setArticleId(Long articleId) {
+        this.articleId = articleId;
+    }
+    
+	public Long getLikeUserId() {
+        return likeUserId;
+    }
+
+    public void setLikeUserId(Long likeUserId) {
+        this.likeUserId = likeUserId;
+    }
+    
+	public Date getCreatedTime() {
+        return createdTime;
+    }
+
+    public void setCreatedTime(Date createdTime) {
+        this.createdTime = createdTime;
+    }
+    
+}

+ 79 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/entity/BbsPrivateMessage.java

@@ -0,0 +1,79 @@
+package com.yonge.cooleshow.bbs.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+
+import java.io.Serializable;
+import java.util.Date;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+
+/**
+ * 私信
+ */
+@TableName("bbs_private_message")
+@ApiModel(value = "BbsPrivateMessage对象", description = "私信")
+public class BbsPrivateMessage implements Serializable {
+	private static final long serialVersionUID = 1L;
+    @TableId(value = "id", type = IdType.AUTO)
+    private Long id;
+    @ApiModelProperty("发送用户id ")
+	@TableField(value = "send_user_id_")
+    private Long sendUserId;
+    @ApiModelProperty("接受方用户id ")
+	@TableField(value = "receiver_user_id_")
+    private Long receiverUserId;
+    @ApiModelProperty("发送消息内容 ")
+	@TableField(value = "message_content_")
+    private String messageContent;
+    @ApiModelProperty("发送时间 ")
+	@TableField(value = "created_time_")
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
+    private Date createdTime;
+
+	public Long getId() {
+        return id;
+    }
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+    
+	public Long getSendUserId() {
+        return sendUserId;
+    }
+
+    public void setSendUserId(Long sendUserId) {
+        this.sendUserId = sendUserId;
+    }
+    
+	public Long getReceiverUserId() {
+        return receiverUserId;
+    }
+
+    public void setReceiverUserId(Long receiverUserId) {
+        this.receiverUserId = receiverUserId;
+    }
+    
+	public String getMessageContent() {
+        return messageContent;
+    }
+
+    public void setMessageContent(String messageContent) {
+        this.messageContent = messageContent;
+    }
+    
+	public Date getCreatedTime() {
+        return createdTime;
+    }
+
+    public void setCreatedTime(Date createdTime) {
+        this.createdTime = createdTime;
+    }
+    
+}

+ 113 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/entity/BbsReply.java

@@ -0,0 +1,113 @@
+package com.yonge.cooleshow.bbs.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import io.swagger.annotations.ApiModel;
+import io.swagger.annotations.ApiModelProperty;
+
+import java.io.Serializable;
+import java.util.Date;
+import com.fasterxml.jackson.annotation.JsonFormat;
+import org.springframework.format.annotation.DateTimeFormat;
+
+/**
+ * 文章评论
+ */
+@TableName("bbs_reply")
+@ApiModel(value = "BbsReply对象", description = "文章评论")
+public class BbsReply implements Serializable {
+	private static final long serialVersionUID = 1L;
+    @TableId(value = "id_", type = IdType.AUTO)
+    private Long id;
+    @ApiModelProperty("上级id ")
+	@TableField(value = "parent_id_")
+    private Long parentId;
+    @ApiModelProperty("文章id ")
+	@TableField(value = "article_id")
+    private Long articleId;
+    @ApiModelProperty("评论者id ")
+	@TableField(value = "user_id_")
+    private Long userId;
+    @ApiModelProperty("评论内容 ")
+	@TableField(value = "content_")
+    private String content;
+    @ApiModelProperty("审核中:DOING,通过:PASS,驳回:REJECT ")
+	@TableField(value = "status_")
+    private String status;
+    @ApiModelProperty("评论日期 ")
+	@TableField(value = "created_time_")
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
+    private Date createdTime;
+	@TableField(value = "updated_time_")
+    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
+    private Date updatedTime;
+
+	public Long getId() {
+        return id;
+    }
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+    
+	public Long getParentId() {
+        return parentId;
+    }
+
+    public void setParentId(Long parentId) {
+        this.parentId = parentId;
+    }
+    
+	public Long getArticleId() {
+        return articleId;
+    }
+
+    public void setArticleId(Long articleId) {
+        this.articleId = articleId;
+    }
+    
+	public Long getUserId() {
+        return userId;
+    }
+
+    public void setUserId(Long userId) {
+        this.userId = userId;
+    }
+    
+	public String getContent() {
+        return content;
+    }
+
+    public void setContent(String content) {
+        this.content = content;
+    }
+    
+	public String getStatus() {
+        return status;
+    }
+
+    public void setStatus(String status) {
+        this.status = status;
+    }
+    
+	public Date getCreatedTime() {
+        return createdTime;
+    }
+
+    public void setCreatedTime(Date createdTime) {
+        this.createdTime = createdTime;
+    }
+    
+	public Date getUpdatedTime() {
+        return updatedTime;
+    }
+
+    public void setUpdatedTime(Date updatedTime) {
+        this.updatedTime = updatedTime;
+    }
+    
+}

+ 29 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/service/BbsArticleService.java

@@ -0,0 +1,29 @@
+package com.yonge.cooleshow.bbs.service;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.yonge.cooleshow.bbs.vo.BbsArticleVo;
+import com.yonge.cooleshow.bbs.dto.search.BbsArticleSearch;
+import com.yonge.cooleshow.bbs.entity.BbsArticle;
+
+/**
+ * 文章 服务类
+ * @author liweifan
+ * @date 2022-06-09
+ */
+public interface BbsArticleService extends IService<BbsArticle>  {
+
+	/**
+     * 查询详情
+     * @author liweifan
+ 	 * @date 2022-06-09
+     */
+	BbsArticleVo detail(Long id);
+
+    /**
+     * 分页查询
+     * @author liweifan
+ 	 * @date 2022-06-09
+     */
+    IPage<BbsArticleVo> selectPage(IPage<BbsArticleVo> page, BbsArticleSearch query);
+}

+ 29 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/service/BbsCollectService.java

@@ -0,0 +1,29 @@
+package com.yonge.cooleshow.bbs.service;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.yonge.cooleshow.bbs.vo.BbsCollectVo;
+import com.yonge.cooleshow.bbs.dto.search.BbsCollectSearch;
+import com.yonge.cooleshow.bbs.entity.BbsCollect;
+
+/**
+ * 收藏 服务类
+ * @author liweifan
+ * @date 2022-06-09
+ */
+public interface BbsCollectService extends IService<BbsCollect>  {
+
+	/**
+     * 查询详情
+     * @author liweifan
+ 	 * @date 2022-06-09
+     */
+	BbsCollectVo detail(Long id);
+
+    /**
+     * 分页查询
+     * @author liweifan
+ 	 * @date 2022-06-09
+     */
+    IPage<BbsCollectVo> selectPage(IPage<BbsCollectVo> page, BbsCollectSearch query);
+}

+ 29 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/service/BbsConfigLabelService.java

@@ -0,0 +1,29 @@
+package com.yonge.cooleshow.bbs.service;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.yonge.cooleshow.bbs.vo.BbsConfigLabelVo;
+import com.yonge.cooleshow.bbs.dto.search.BbsConfigLabelSearch;
+import com.yonge.cooleshow.bbs.entity.BbsConfigLabel;
+
+/**
+ * 论坛标签设置 服务类
+ * @author liweifan
+ * @date 2022-06-09
+ */
+public interface BbsConfigLabelService extends IService<BbsConfigLabel>  {
+
+	/**
+     * 查询详情
+     * @author liweifan
+ 	 * @date 2022-06-09
+     */
+	BbsConfigLabelVo detail(Long id);
+
+    /**
+     * 分页查询
+     * @author liweifan
+ 	 * @date 2022-06-09
+     */
+    IPage<BbsConfigLabelVo> selectPage(IPage<BbsConfigLabelVo> page, BbsConfigLabelSearch query);
+}

+ 29 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/service/BbsFollowService.java

@@ -0,0 +1,29 @@
+package com.yonge.cooleshow.bbs.service;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.yonge.cooleshow.bbs.vo.BbsFollowVo;
+import com.yonge.cooleshow.bbs.dto.search.BbsFollowSearch;
+import com.yonge.cooleshow.bbs.entity.BbsFollow;
+
+/**
+ * 关注 服务类
+ * @author liweifan
+ * @date 2022-06-09
+ */
+public interface BbsFollowService extends IService<BbsFollow>  {
+
+	/**
+     * 查询详情
+     * @author liweifan
+ 	 * @date 2022-06-09
+     */
+	BbsFollowVo detail(Long id);
+
+    /**
+     * 分页查询
+     * @author liweifan
+ 	 * @date 2022-06-09
+     */
+    IPage<BbsFollowVo> selectPage(IPage<BbsFollowVo> page, BbsFollowSearch query);
+}

+ 29 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/service/BbsLikeService.java

@@ -0,0 +1,29 @@
+package com.yonge.cooleshow.bbs.service;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.yonge.cooleshow.bbs.vo.BbsLikeVo;
+import com.yonge.cooleshow.bbs.dto.search.BbsLikeSearch;
+import com.yonge.cooleshow.bbs.entity.BbsLike;
+
+/**
+ * 点赞 服务类
+ * @author liweifan
+ * @date 2022-06-09
+ */
+public interface BbsLikeService extends IService<BbsLike>  {
+
+	/**
+     * 查询详情
+     * @author liweifan
+ 	 * @date 2022-06-09
+     */
+	BbsLikeVo detail(Long id);
+
+    /**
+     * 分页查询
+     * @author liweifan
+ 	 * @date 2022-06-09
+     */
+    IPage<BbsLikeVo> selectPage(IPage<BbsLikeVo> page, BbsLikeSearch query);
+}

+ 29 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/service/BbsPrivateMessageService.java

@@ -0,0 +1,29 @@
+package com.yonge.cooleshow.bbs.service;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.yonge.cooleshow.bbs.vo.BbsPrivateMessageVo;
+import com.yonge.cooleshow.bbs.dto.search.BbsPrivateMessageSearch;
+import com.yonge.cooleshow.bbs.entity.BbsPrivateMessage;
+
+/**
+ * 私信 服务类
+ * @author liweifan
+ * @date 2022-06-09
+ */
+public interface BbsPrivateMessageService extends IService<BbsPrivateMessage>  {
+
+	/**
+     * 查询详情
+     * @author liweifan
+ 	 * @date 2022-06-09
+     */
+	BbsPrivateMessageVo detail(Long id);
+
+    /**
+     * 分页查询
+     * @author liweifan
+ 	 * @date 2022-06-09
+     */
+    IPage<BbsPrivateMessageVo> selectPage(IPage<BbsPrivateMessageVo> page, BbsPrivateMessageSearch query);
+}

+ 29 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/service/BbsReplyService.java

@@ -0,0 +1,29 @@
+package com.yonge.cooleshow.bbs.service;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.yonge.cooleshow.bbs.vo.BbsReplyVo;
+import com.yonge.cooleshow.bbs.dto.search.BbsReplySearch;
+import com.yonge.cooleshow.bbs.entity.BbsReply;
+
+/**
+ * 文章评论 服务类
+ * @author liweifan
+ * @date 2022-06-09
+ */
+public interface BbsReplyService extends IService<BbsReply>  {
+
+	/**
+     * 查询详情
+     * @author liweifan
+ 	 * @date 2022-06-09
+     */
+	BbsReplyVo detail(Long id);
+
+    /**
+     * 分页查询
+     * @author liweifan
+ 	 * @date 2022-06-09
+     */
+    IPage<BbsReplyVo> selectPage(IPage<BbsReplyVo> page, BbsReplySearch query);
+}

+ 29 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/service/impl/BbsArticleServiceImpl.java

@@ -0,0 +1,29 @@
+package com.yonge.cooleshow.bbs.service.impl;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import com.yonge.cooleshow.bbs.entity.BbsArticle;
+import com.yonge.cooleshow.bbs.vo.BbsArticleVo;
+import com.yonge.cooleshow.bbs.dto.search.BbsArticleSearch;
+import com.yonge.cooleshow.bbs.dao.BbsArticleDao;
+import com.yonge.cooleshow.bbs.service.BbsArticleService;
+
+
+@Service
+public class BbsArticleServiceImpl extends ServiceImpl<BbsArticleDao, BbsArticle> implements BbsArticleService {
+    private final static Logger log = LoggerFactory.getLogger(BbsArticleServiceImpl.class);
+
+	@Override
+    public BbsArticleVo detail(Long id) {
+        return baseMapper.detail(id);
+    }
+    
+     @Override
+    public IPage<BbsArticleVo> selectPage(IPage<BbsArticleVo> page, BbsArticleSearch query){
+        return page.setRecords(baseMapper.selectPage(page, query));
+    }
+	
+}

+ 29 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/service/impl/BbsCollectServiceImpl.java

@@ -0,0 +1,29 @@
+package com.yonge.cooleshow.bbs.service.impl;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import com.yonge.cooleshow.bbs.entity.BbsCollect;
+import com.yonge.cooleshow.bbs.vo.BbsCollectVo;
+import com.yonge.cooleshow.bbs.dto.search.BbsCollectSearch;
+import com.yonge.cooleshow.bbs.dao.BbsCollectDao;
+import com.yonge.cooleshow.bbs.service.BbsCollectService;
+
+
+@Service
+public class BbsCollectServiceImpl extends ServiceImpl<BbsCollectDao, BbsCollect> implements BbsCollectService {
+    private final static Logger log = LoggerFactory.getLogger(BbsCollectServiceImpl.class);
+
+	@Override
+    public BbsCollectVo detail(Long id) {
+        return baseMapper.detail(id);
+    }
+    
+     @Override
+    public IPage<BbsCollectVo> selectPage(IPage<BbsCollectVo> page, BbsCollectSearch query){
+        return page.setRecords(baseMapper.selectPage(page, query));
+    }
+	
+}

+ 29 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/service/impl/BbsConfigLabelServiceImpl.java

@@ -0,0 +1,29 @@
+package com.yonge.cooleshow.bbs.service.impl;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import com.yonge.cooleshow.bbs.entity.BbsConfigLabel;
+import com.yonge.cooleshow.bbs.vo.BbsConfigLabelVo;
+import com.yonge.cooleshow.bbs.dto.search.BbsConfigLabelSearch;
+import com.yonge.cooleshow.bbs.dao.BbsConfigLabelDao;
+import com.yonge.cooleshow.bbs.service.BbsConfigLabelService;
+
+
+@Service
+public class BbsConfigLabelServiceImpl extends ServiceImpl<BbsConfigLabelDao, BbsConfigLabel> implements BbsConfigLabelService {
+    private final static Logger log = LoggerFactory.getLogger(BbsConfigLabelServiceImpl.class);
+
+	@Override
+    public BbsConfigLabelVo detail(Long id) {
+        return baseMapper.detail(id);
+    }
+    
+     @Override
+    public IPage<BbsConfigLabelVo> selectPage(IPage<BbsConfigLabelVo> page, BbsConfigLabelSearch query){
+        return page.setRecords(baseMapper.selectPage(page, query));
+    }
+	
+}

+ 29 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/service/impl/BbsFollowServiceImpl.java

@@ -0,0 +1,29 @@
+package com.yonge.cooleshow.bbs.service.impl;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import com.yonge.cooleshow.bbs.entity.BbsFollow;
+import com.yonge.cooleshow.bbs.vo.BbsFollowVo;
+import com.yonge.cooleshow.bbs.dto.search.BbsFollowSearch;
+import com.yonge.cooleshow.bbs.dao.BbsFollowDao;
+import com.yonge.cooleshow.bbs.service.BbsFollowService;
+
+
+@Service
+public class BbsFollowServiceImpl extends ServiceImpl<BbsFollowDao, BbsFollow> implements BbsFollowService {
+    private final static Logger log = LoggerFactory.getLogger(BbsFollowServiceImpl.class);
+
+	@Override
+    public BbsFollowVo detail(Long id) {
+        return baseMapper.detail(id);
+    }
+    
+     @Override
+    public IPage<BbsFollowVo> selectPage(IPage<BbsFollowVo> page, BbsFollowSearch query){
+        return page.setRecords(baseMapper.selectPage(page, query));
+    }
+	
+}

+ 29 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/service/impl/BbsLikeServiceImpl.java

@@ -0,0 +1,29 @@
+package com.yonge.cooleshow.bbs.service.impl;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import com.yonge.cooleshow.bbs.entity.BbsLike;
+import com.yonge.cooleshow.bbs.vo.BbsLikeVo;
+import com.yonge.cooleshow.bbs.dto.search.BbsLikeSearch;
+import com.yonge.cooleshow.bbs.dao.BbsLikeDao;
+import com.yonge.cooleshow.bbs.service.BbsLikeService;
+
+
+@Service
+public class BbsLikeServiceImpl extends ServiceImpl<BbsLikeDao, BbsLike> implements BbsLikeService {
+    private final static Logger log = LoggerFactory.getLogger(BbsLikeServiceImpl.class);
+
+	@Override
+    public BbsLikeVo detail(Long id) {
+        return baseMapper.detail(id);
+    }
+    
+     @Override
+    public IPage<BbsLikeVo> selectPage(IPage<BbsLikeVo> page, BbsLikeSearch query){
+        return page.setRecords(baseMapper.selectPage(page, query));
+    }
+	
+}

+ 29 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/service/impl/BbsPrivateMessageServiceImpl.java

@@ -0,0 +1,29 @@
+package com.yonge.cooleshow.bbs.service.impl;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import com.yonge.cooleshow.bbs.entity.BbsPrivateMessage;
+import com.yonge.cooleshow.bbs.vo.BbsPrivateMessageVo;
+import com.yonge.cooleshow.bbs.dto.search.BbsPrivateMessageSearch;
+import com.yonge.cooleshow.bbs.dao.BbsPrivateMessageDao;
+import com.yonge.cooleshow.bbs.service.BbsPrivateMessageService;
+
+
+@Service
+public class BbsPrivateMessageServiceImpl extends ServiceImpl<BbsPrivateMessageDao, BbsPrivateMessage> implements BbsPrivateMessageService {
+    private final static Logger log = LoggerFactory.getLogger(BbsPrivateMessageServiceImpl.class);
+
+	@Override
+    public BbsPrivateMessageVo detail(Long id) {
+        return baseMapper.detail(id);
+    }
+    
+     @Override
+    public IPage<BbsPrivateMessageVo> selectPage(IPage<BbsPrivateMessageVo> page, BbsPrivateMessageSearch query){
+        return page.setRecords(baseMapper.selectPage(page, query));
+    }
+	
+}

+ 29 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/service/impl/BbsReplyServiceImpl.java

@@ -0,0 +1,29 @@
+package com.yonge.cooleshow.bbs.service.impl;
+
+import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import org.springframework.stereotype.Service;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+import com.yonge.cooleshow.bbs.entity.BbsReply;
+import com.yonge.cooleshow.bbs.vo.BbsReplyVo;
+import com.yonge.cooleshow.bbs.dto.search.BbsReplySearch;
+import com.yonge.cooleshow.bbs.dao.BbsReplyDao;
+import com.yonge.cooleshow.bbs.service.BbsReplyService;
+
+
+@Service
+public class BbsReplyServiceImpl extends ServiceImpl<BbsReplyDao, BbsReply> implements BbsReplyService {
+    private final static Logger log = LoggerFactory.getLogger(BbsReplyServiceImpl.class);
+
+	@Override
+    public BbsReplyVo detail(Long id) {
+        return baseMapper.detail(id);
+    }
+    
+     @Override
+    public IPage<BbsReplyVo> selectPage(IPage<BbsReplyVo> page, BbsReplySearch query){
+        return page.setRecords(baseMapper.selectPage(page, query));
+    }
+	
+}

+ 24 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/vo/BbsArticleVo.java

@@ -0,0 +1,24 @@
+package com.yonge.cooleshow.bbs.vo;
+
+import com.yonge.cooleshow.bbs.entity.BbsArticle;
+import io.swagger.annotations.ApiModel;
+import org.apache.commons.beanutils.BeanUtils;
+
+/**
+ * @Author: liweifan
+ * @Data: 2022-06-09 17:27:11
+ */
+@ApiModel(value = "BbsArticleVo对象", description = "文章查询视图对象")
+public class BbsArticleVo extends BbsArticle{
+	private static final long serialVersionUID = 1L;
+    
+    public BbsArticleVo buildVo(BbsArticle bbsArticle){
+        try {
+            BeanUtils.copyProperties(this,bbsArticle);
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+        return this;
+    }
+
+}

+ 24 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/vo/BbsCollectVo.java

@@ -0,0 +1,24 @@
+package com.yonge.cooleshow.bbs.vo;
+
+import com.yonge.cooleshow.bbs.entity.BbsCollect;
+import io.swagger.annotations.ApiModel;
+import org.apache.commons.beanutils.BeanUtils;
+
+/**
+ * @Author: liweifan
+ * @Data: 2022-06-09 17:27:11
+ */
+@ApiModel(value = "BbsCollectVo对象", description = "收藏查询视图对象")
+public class BbsCollectVo extends BbsCollect{
+	private static final long serialVersionUID = 1L;
+    
+    public BbsCollectVo buildVo(BbsCollect bbsCollect){
+        try {
+            BeanUtils.copyProperties(this,bbsCollect);
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+        return this;
+    }
+
+}

+ 24 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/vo/BbsConfigLabelVo.java

@@ -0,0 +1,24 @@
+package com.yonge.cooleshow.bbs.vo;
+
+import com.yonge.cooleshow.bbs.entity.BbsConfigLabel;
+import io.swagger.annotations.ApiModel;
+import org.apache.commons.beanutils.BeanUtils;
+
+/**
+ * @Author: liweifan
+ * @Data: 2022-06-09 17:27:11
+ */
+@ApiModel(value = "BbsConfigLabelVo对象", description = "论坛标签设置查询视图对象")
+public class BbsConfigLabelVo extends BbsConfigLabel{
+	private static final long serialVersionUID = 1L;
+    
+    public BbsConfigLabelVo buildVo(BbsConfigLabel bbsConfigLabel){
+        try {
+            BeanUtils.copyProperties(this,bbsConfigLabel);
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+        return this;
+    }
+
+}

+ 24 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/vo/BbsFollowVo.java

@@ -0,0 +1,24 @@
+package com.yonge.cooleshow.bbs.vo;
+
+import com.yonge.cooleshow.bbs.entity.BbsFollow;
+import io.swagger.annotations.ApiModel;
+import org.apache.commons.beanutils.BeanUtils;
+
+/**
+ * @Author: liweifan
+ * @Data: 2022-06-09 17:27:11
+ */
+@ApiModel(value = "BbsFollowVo对象", description = "关注查询视图对象")
+public class BbsFollowVo extends BbsFollow{
+	private static final long serialVersionUID = 1L;
+    
+    public BbsFollowVo buildVo(BbsFollow bbsFollow){
+        try {
+            BeanUtils.copyProperties(this,bbsFollow);
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+        return this;
+    }
+
+}

+ 24 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/vo/BbsLikeVo.java

@@ -0,0 +1,24 @@
+package com.yonge.cooleshow.bbs.vo;
+
+import com.yonge.cooleshow.bbs.entity.BbsLike;
+import io.swagger.annotations.ApiModel;
+import org.apache.commons.beanutils.BeanUtils;
+
+/**
+ * @Author: liweifan
+ * @Data: 2022-06-09 17:27:11
+ */
+@ApiModel(value = "BbsLikeVo对象", description = "点赞查询视图对象")
+public class BbsLikeVo extends BbsLike{
+	private static final long serialVersionUID = 1L;
+    
+    public BbsLikeVo buildVo(BbsLike bbsLike){
+        try {
+            BeanUtils.copyProperties(this,bbsLike);
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+        return this;
+    }
+
+}

+ 24 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/vo/BbsPrivateMessageVo.java

@@ -0,0 +1,24 @@
+package com.yonge.cooleshow.bbs.vo;
+
+import com.yonge.cooleshow.bbs.entity.BbsPrivateMessage;
+import io.swagger.annotations.ApiModel;
+import org.apache.commons.beanutils.BeanUtils;
+
+/**
+ * @Author: liweifan
+ * @Data: 2022-06-09 17:27:11
+ */
+@ApiModel(value = "BbsPrivateMessageVo对象", description = "私信查询视图对象")
+public class BbsPrivateMessageVo extends BbsPrivateMessage{
+	private static final long serialVersionUID = 1L;
+    
+    public BbsPrivateMessageVo buildVo(BbsPrivateMessage bbsPrivateMessage){
+        try {
+            BeanUtils.copyProperties(this,bbsPrivateMessage);
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+        return this;
+    }
+
+}

+ 24 - 0
cooleshow-bbs/src/main/java/com/yonge/cooleshow/bbs/vo/BbsReplyVo.java

@@ -0,0 +1,24 @@
+package com.yonge.cooleshow.bbs.vo;
+
+import com.yonge.cooleshow.bbs.entity.BbsReply;
+import io.swagger.annotations.ApiModel;
+import org.apache.commons.beanutils.BeanUtils;
+
+/**
+ * @Author: liweifan
+ * @Data: 2022-06-09 17:27:11
+ */
+@ApiModel(value = "BbsReplyVo对象", description = "文章评论查询视图对象")
+public class BbsReplyVo extends BbsReply{
+	private static final long serialVersionUID = 1L;
+    
+    public BbsReplyVo buildVo(BbsReply bbsReply){
+        try {
+            BeanUtils.copyProperties(this,bbsReply);
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+        return this;
+    }
+
+}

+ 12 - 0
cooleshow-bbs/src/main/resources/bootstrap-prod.yml

@@ -0,0 +1,12 @@
+spring:
+  cloud:
+    nacos:
+      config:
+        server-addr: 47.114.1.200:8848
+        namespace: 6f8374a9-598f-4889-bb17-476070ffb8de
+        group: DEFAULT_GROUP
+        prefix: bbs
+        file-extension: yaml
+        refresh:
+          enabled: true
+        enabled: true

+ 57 - 0
cooleshow-bbs/src/main/resources/config/mybatis/BbsArticleMapper.xml

@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE  mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.yonge.cooleshow.bbs.dao.BbsArticleDao">
+	<resultMap id="BaseResultMap" type="com.yonge.cooleshow.bbs.entity.BbsArticle">
+            <result column="id_" property="id" />
+	        <result column="user_id_" property="userId" />
+	        <result column="title_" property="title" />
+	        <result column="content_" property="content" />
+	        <result column="label_id_" property="labelId" />
+	        <result column="label_name_" property="labelName" />
+	        <result column="views_count_" property="viewsCount" />
+	        <result column="likes_count_" property="likesCount" />
+	        <result column="comments_count_" property="commentsCount" />
+	        <result column="collects_count_" property="collectsCount" />
+	        <result column="status_" property="status" />
+	        <result column="top_flag_" property="topFlag" />
+	        <result column="reply_flag_" property="replyFlag" />
+	        <result column="examine_time_" property="examineTime" />
+	        <result column="created_time_" property="createdTime" />
+	        <result column="updated_time_" property="updatedTime" />
+	        <result column="del_flag_" property="delFlag" />
+		</resultMap>  
+    
+    <!-- 表字段 -->
+    <sql id="baseColumns">
+         t.id_ as id
+        , t.user_id_ as userId
+        , t.title_ as title
+        , t.content_ as content
+        , t.label_id_ as labelId
+        , t.label_name_ as labelName
+        , t.views_count_ as viewsCount
+        , t.likes_count_ as likesCount
+        , t.comments_count_ as commentsCount
+        , t.collects_count_ as collectsCount
+        , t.status_ as status
+        , t.top_flag_ as topFlag
+        , t.reply_flag_ as replyFlag
+        , t.examine_time_ as examineTime
+        , t.created_time_ as createdTime
+        , t.updated_time_ as updatedTime
+        , t.del_flag_ as delFlag
+        </sql> 
+    
+    <select id="detail" resultType="com.yonge.cooleshow.bbs.vo.BbsArticleVo">
+        SELECT
+            <include refid="baseColumns"/>
+        FROM bbs_article t
+        where t.id_ = #{id}
+    </select>
+    
+    <select id="selectPage" resultType="com.yonge.cooleshow.bbs.vo.BbsArticleVo">
+		SELECT         
+        	<include refid="baseColumns" />
+		FROM bbs_article t
+	</select>
+</mapper>

+ 31 - 0
cooleshow-bbs/src/main/resources/config/mybatis/BbsCollectMapper.xml

@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE  mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.yonge.cooleshow.bbs.dao.BbsCollectDao">
+	<resultMap id="BaseResultMap" type="com.yonge.cooleshow.bbs.entity.BbsCollect">
+            <result column="id_" property="id" />
+	        <result column="article_id_" property="articleId" />
+	        <result column="collect_user_id_" property="collectUserId" />
+	        <result column="created_time_" property="createdTime" />
+		</resultMap>  
+    
+    <!-- 表字段 -->
+    <sql id="baseColumns">
+         t.id_ as id
+        , t.article_id_ as articleId
+        , t.collect_user_id_ as collectUserId
+        , t.created_time_ as createdTime
+        </sql> 
+    
+    <select id="detail" resultType="com.yonge.cooleshow.bbs.vo.BbsCollectVo">
+        SELECT
+            <include refid="baseColumns"/>
+        FROM bbs_collect t
+        where t.id_ = #{id}
+    </select>
+    
+    <select id="selectPage" resultType="com.yonge.cooleshow.bbs.vo.BbsCollectVo">
+		SELECT         
+        	<include refid="baseColumns" />
+		FROM bbs_collect t
+	</select>
+</mapper>

+ 37 - 0
cooleshow-bbs/src/main/resources/config/mybatis/BbsConfigLabelMapper.xml

@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE  mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.yonge.cooleshow.bbs.dao.BbsConfigLabelDao">
+	<resultMap id="BaseResultMap" type="com.yonge.cooleshow.bbs.entity.BbsConfigLabel">
+            <result column="id_" property="id" />
+	        <result column="label_name_" property="labelName" />
+	        <result column="create_by_" property="createBy" />
+	        <result column="update_by_" property="updateBy" />
+	        <result column="created_time_" property="createdTime" />
+	        <result column="updated_time_" property="updatedTime" />
+	        <result column="del_flag_" property="delFlag" />
+		</resultMap>  
+    
+    <!-- 表字段 -->
+    <sql id="baseColumns">
+         t.id_ as id
+        , t.label_name_ as labelName
+        , t.create_by_ as createBy
+        , t.update_by_ as updateBy
+        , t.created_time_ as createdTime
+        , t.updated_time_ as updatedTime
+        , t.del_flag_ as delFlag
+        </sql> 
+    
+    <select id="detail" resultType="com.yonge.cooleshow.bbs.vo.BbsConfigLabelVo">
+        SELECT
+            <include refid="baseColumns"/>
+        FROM bbs_config_label t
+        where t.id_ = #{id}
+    </select>
+    
+    <select id="selectPage" resultType="com.yonge.cooleshow.bbs.vo.BbsConfigLabelVo">
+		SELECT         
+        	<include refid="baseColumns" />
+		FROM bbs_config_label t
+	</select>
+</mapper>

+ 31 - 0
cooleshow-bbs/src/main/resources/config/mybatis/BbsFollowMapper.xml

@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE  mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.yonge.cooleshow.bbs.dao.BbsFollowDao">
+	<resultMap id="BaseResultMap" type="com.yonge.cooleshow.bbs.entity.BbsFollow">
+            <result column="id_" property="id" />
+	        <result column="user_id_" property="userId" />
+	        <result column="friend_user_id" property="friendUserId" />
+	        <result column="created_time_" property="createdTime" />
+		</resultMap>  
+    
+    <!-- 表字段 -->
+    <sql id="baseColumns">
+         t.id_ as id
+        , t.user_id_ as userId
+        , t.friend_user_id as friendUserId
+        , t.created_time_ as createdTime
+        </sql> 
+    
+    <select id="detail" resultType="com.yonge.cooleshow.bbs.vo.BbsFollowVo">
+        SELECT
+            <include refid="baseColumns"/>
+        FROM bbs_follow t
+        where t.id_ = #{id}
+    </select>
+    
+    <select id="selectPage" resultType="com.yonge.cooleshow.bbs.vo.BbsFollowVo">
+		SELECT         
+        	<include refid="baseColumns" />
+		FROM bbs_follow t
+	</select>
+</mapper>

+ 31 - 0
cooleshow-bbs/src/main/resources/config/mybatis/BbsLikeMapper.xml

@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE  mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.yonge.cooleshow.bbs.dao.BbsLikeDao">
+	<resultMap id="BaseResultMap" type="com.yonge.cooleshow.bbs.entity.BbsLike">
+            <result column="id_" property="id" />
+	        <result column="article_id_" property="articleId" />
+	        <result column="like_user_id_" property="likeUserId" />
+	        <result column="created_time_" property="createdTime" />
+		</resultMap>  
+    
+    <!-- 表字段 -->
+    <sql id="baseColumns">
+         t.id_ as id
+        , t.article_id_ as articleId
+        , t.like_user_id_ as likeUserId
+        , t.created_time_ as createdTime
+        </sql> 
+    
+    <select id="detail" resultType="com.yonge.cooleshow.bbs.vo.BbsLikeVo">
+        SELECT
+            <include refid="baseColumns"/>
+        FROM bbs_like t
+        where t.id_ = #{id}
+    </select>
+    
+    <select id="selectPage" resultType="com.yonge.cooleshow.bbs.vo.BbsLikeVo">
+		SELECT         
+        	<include refid="baseColumns" />
+		FROM bbs_like t
+	</select>
+</mapper>

+ 33 - 0
cooleshow-bbs/src/main/resources/config/mybatis/BbsPrivateMessageMapper.xml

@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE  mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.yonge.cooleshow.bbs.dao.BbsPrivateMessageDao">
+	<resultMap id="BaseResultMap" type="com.yonge.cooleshow.bbs.entity.BbsPrivateMessage">
+            <result column="id" property="id" />
+	        <result column="send_user_id_" property="sendUserId" />
+	        <result column="receiver_user_id_" property="receiverUserId" />
+	        <result column="message_content_" property="messageContent" />
+	        <result column="created_time_" property="createdTime" />
+		</resultMap>  
+    
+    <!-- 表字段 -->
+    <sql id="baseColumns">
+         t.id as id
+        , t.send_user_id_ as sendUserId
+        , t.receiver_user_id_ as receiverUserId
+        , t.message_content_ as messageContent
+        , t.created_time_ as createdTime
+        </sql> 
+    
+    <select id="detail" resultType="com.yonge.cooleshow.bbs.vo.BbsPrivateMessageVo">
+        SELECT
+            <include refid="baseColumns"/>
+        FROM bbs_private_message t
+        where t.id = #{id}
+    </select>
+    
+    <select id="selectPage" resultType="com.yonge.cooleshow.bbs.vo.BbsPrivateMessageVo">
+		SELECT         
+        	<include refid="baseColumns" />
+		FROM bbs_private_message t
+	</select>
+</mapper>

+ 39 - 0
cooleshow-bbs/src/main/resources/config/mybatis/BbsReplyMapper.xml

@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE  mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
+<mapper namespace="com.yonge.cooleshow.bbs.dao.BbsReplyDao">
+	<resultMap id="BaseResultMap" type="com.yonge.cooleshow.bbs.entity.BbsReply">
+            <result column="id_" property="id" />
+	        <result column="parent_id_" property="parentId" />
+	        <result column="article_id" property="articleId" />
+	        <result column="user_id_" property="userId" />
+	        <result column="content_" property="content" />
+	        <result column="status_" property="status" />
+	        <result column="created_time_" property="createdTime" />
+	        <result column="updated_time_" property="updatedTime" />
+		</resultMap>  
+    
+    <!-- 表字段 -->
+    <sql id="baseColumns">
+         t.id_ as id
+        , t.parent_id_ as parentId
+        , t.article_id as articleId
+        , t.user_id_ as userId
+        , t.content_ as content
+        , t.status_ as status
+        , t.created_time_ as createdTime
+        , t.updated_time_ as updatedTime
+        </sql> 
+    
+    <select id="detail" resultType="com.yonge.cooleshow.bbs.vo.BbsReplyVo">
+        SELECT
+            <include refid="baseColumns"/>
+        FROM bbs_reply t
+        where t.id_ = #{id}
+    </select>
+    
+    <select id="selectPage" resultType="com.yonge.cooleshow.bbs.vo.BbsReplyVo">
+		SELECT         
+        	<include refid="baseColumns" />
+		FROM bbs_reply t
+	</select>
+</mapper>