- 新增评论分页查询接口与实现逻辑 - 支持查询一级评论及其最早回复的二级评论 - 支持从KV服务批量获取评论内容 - 支持从用户服务批量获取用户信息并组装- 新增评论热度字段用于排序 - 修改MyBatis代码生成配置至comment模块 - 调整评论表结构,优化字段定义 - 完善相关DTO、VO及Mapper文件 - 添加HTTP客户端测试用例
145 lines
4.5 KiB
XML
145 lines
4.5 KiB
XML
<project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0"
|
||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||
<modelVersion>4.0.0</modelVersion>
|
||
<!-- 指定父项目 -->
|
||
<parent>
|
||
<groupId>com.hanserwei</groupId>
|
||
<artifactId>han-note-comment</artifactId>
|
||
<version>${revision}</version>
|
||
</parent>
|
||
|
||
<!-- 打包方式 -->
|
||
<packaging>jar</packaging>
|
||
|
||
<artifactId>han-note-comment-biz</artifactId>
|
||
<name>${project.artifactId}</name>
|
||
<description>评论服务业务层</description>
|
||
|
||
<dependencies>
|
||
<dependency>
|
||
<groupId>com.hanserwei</groupId>
|
||
<artifactId>hanserwei-common</artifactId>
|
||
</dependency>
|
||
|
||
<!-- 业务接口日志组件 -->
|
||
<dependency>
|
||
<groupId>com.hanserwei</groupId>
|
||
<artifactId>hanserwei-spring-boot-starter-biz-operationlog</artifactId>
|
||
</dependency>
|
||
|
||
<!-- 上下文组件 -->
|
||
<dependency>
|
||
<groupId>com.hanserwei</groupId>
|
||
<artifactId>hanserwei-spring-boot-starter-biz-context</artifactId>
|
||
</dependency>
|
||
|
||
<!-- Jackson 组件 -->
|
||
<dependency>
|
||
<groupId>com.hanserwei</groupId>
|
||
<artifactId>hanserwei-spring-boot-starter-jackson</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-web</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-test</artifactId>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
|
||
<!-- Mybatis-plus -->
|
||
<dependency>
|
||
<groupId>com.baomidou</groupId>
|
||
<artifactId>mybatis-plus-spring-boot3-starter</artifactId>
|
||
</dependency>
|
||
|
||
<!-- MySQL 驱动 -->
|
||
<dependency>
|
||
<groupId>com.mysql</groupId>
|
||
<artifactId>mysql-connector-j</artifactId>
|
||
</dependency>
|
||
|
||
<!-- Druid 数据库连接池 -->
|
||
<dependency>
|
||
<groupId>com.alibaba</groupId>
|
||
<artifactId>druid-spring-boot-3-starter</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>org.springframework.cloud</groupId>
|
||
<artifactId>spring-cloud-starter-bootstrap</artifactId>
|
||
</dependency>
|
||
|
||
<!-- 服务发现 -->
|
||
<dependency>
|
||
<groupId>com.alibaba.cloud</groupId>
|
||
<artifactId>spring-cloud-starter-alibaba-nacos-discovery</artifactId>
|
||
</dependency>
|
||
|
||
<!-- Rocket MQ -->
|
||
<dependency>
|
||
<groupId>org.apache.rocketmq</groupId>
|
||
<artifactId>rocketmq-spring-boot-starter</artifactId>
|
||
</dependency>
|
||
|
||
<!-- Spring Retry 重试框架 -->
|
||
<dependency>
|
||
<groupId>org.springframework.retry</groupId>
|
||
<artifactId>spring-retry</artifactId>
|
||
</dependency>
|
||
|
||
<!-- AOP 切面(Spring Retry 重试框架需要) -->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-aop</artifactId>
|
||
</dependency>
|
||
|
||
<!-- Rocket MQ 客户端 -->
|
||
<dependency>
|
||
<groupId>org.apache.rocketmq</groupId>
|
||
<artifactId>rocketmq-client</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.hanserwei</groupId>
|
||
<artifactId>han-note-distributed-id-generator-api</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.hanserwei</groupId>
|
||
<artifactId>han-note-kv-api</artifactId>
|
||
</dependency>
|
||
|
||
<!-- 快手 Buffer Trigger -->
|
||
<dependency>
|
||
<groupId>com.github.phantomthief</groupId>
|
||
<artifactId>buffer-trigger</artifactId>
|
||
</dependency>
|
||
|
||
<!-- Redis -->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-data-redis</artifactId>
|
||
</dependency>
|
||
|
||
<dependency>
|
||
<groupId>com.hanserwei</groupId>
|
||
<artifactId>han-note-user-api</artifactId>
|
||
</dependency>
|
||
|
||
|
||
</dependencies>
|
||
|
||
<build>
|
||
<plugins>
|
||
<plugin>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||
</plugin>
|
||
</plugins>
|
||
</build>
|
||
</project>
|