为什么:联调 10-19 开始,前端照 api-phase1.md §1.9 写会 404,需要先把这 5 个补齐。 契约先行(12-上线检查清单 §一):先重写 api-phase1.md §1.9 —— 把 commerce 三条移出本节标"已实现", 补齐 5 个接口的请求/响应字段、错误码、分页口径、幂等矩阵,并新增 200007 CREATOR_NOT_ACTIVE。 - GET /app/config(匿名):硬编码白名单 6 键 + 契约默认值兜底,绝不整表下发 - GET /app/notices(匿名):ops_notice 只读分页(status/target/发布与过期时间),无数据返回空列表 - POST /app/creator/apply:幂等,防重靠 DB 唯一索引 uk_creator_user,并发冲突读回既有记录 - GET /app/creator/works:非生效创作者报 200007 + 分状态提示,不返回空数组冒充成功 - GET /app/creator/stats:与后台 07 看板同口径(字段/notes 逐条一致),null + notes 语义保留 - 冻结模块零改动:module-creator 仅新增 CreatorAppService/两个 VO 与 1 个公开方法 pageMyDramasOf, 既有 pageMyDramas 一行未动;module-system 仅新增 OpsNotice 实体与 Mapper - Swagger 中文注解按 S1 规范补齐;白名单与 /app/notices 加进安全白名单 - 实测:mvn test 98 条全过(app-api 41→56);package 通过;端到端五接口全部符合预期 (重复 apply 同 id + created:false、pending 看 works/stats 报 200007、approved 后正常)
71 lines
2.6 KiB
XML
71 lines
2.6 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
||
<!-- Author: fruit.com.cn -->
|
||
|
||
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||
<modelVersion>4.0.0</modelVersion>
|
||
|
||
<parent>
|
||
<groupId>com.fruitshorts</groupId>
|
||
<artifactId>fruitshorts</artifactId>
|
||
<version>1.0.0-SNAPSHOT</version>
|
||
</parent>
|
||
|
||
<artifactId>fruitshorts-app-api</artifactId>
|
||
<name>fruitshorts-app-api</name>
|
||
<description>客户端接入层:/app/**</description>
|
||
|
||
<dependencies>
|
||
<dependency>
|
||
<groupId>com.fruitshorts</groupId>
|
||
<artifactId>fruitshorts-module-content</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.fruitshorts</groupId>
|
||
<artifactId>fruitshorts-module-media</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.fruitshorts</groupId>
|
||
<artifactId>fruitshorts-module-user</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.fruitshorts</groupId>
|
||
<artifactId>fruitshorts-module-playback</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.fruitshorts</groupId>
|
||
<artifactId>fruitshorts-module-interaction</artifactId>
|
||
</dependency>
|
||
<dependency>
|
||
<groupId>com.fruitshorts</groupId>
|
||
<artifactId>fruitshorts-module-commerce</artifactId>
|
||
</dependency>
|
||
<!-- C 端创作者入驻/我的作品(module-creator 只读复用,未改其既有行为) -->
|
||
<dependency>
|
||
<groupId>com.fruitshorts</groupId>
|
||
<artifactId>fruitshorts-module-creator</artifactId>
|
||
</dependency>
|
||
<!-- 启动配置白名单读 sys_config、系统公告读 ops_notice -->
|
||
<dependency>
|
||
<groupId>com.fruitshorts</groupId>
|
||
<artifactId>fruitshorts-module-system</artifactId>
|
||
</dependency>
|
||
<!-- 契约测试用:MockMvc + Mockito + JUnit5,test scope,不进运行态依赖 -->
|
||
<dependency>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-starter-test</artifactId>
|
||
<scope>test</scope>
|
||
</dependency>
|
||
</dependencies>
|
||
|
||
<build>
|
||
<plugins>
|
||
<plugin>
|
||
<groupId>org.springframework.boot</groupId>
|
||
<artifactId>spring-boot-maven-plugin</artifactId>
|
||
</plugin>
|
||
</plugins>
|
||
</build>
|
||
</project>
|