refactor: 技术命名空间 huijing→wanxiang 全栈落地(代码+契约,原「只改文档」决策反转)
- Java 包 cn.huijing.game→cn.wanxiang.game:126 .java + 15 目录 git mv(保留历史)+ Application scanBasePackages/@MapperScan + yaml type-aliases - SDK HuijingGameSDK→WanxiangGameSDK + postMessage channel huijing-game-sdk→wanxiang-game-sdk(契约 + 前端 host/sdk/inject/bridge) - 契约 contracts/ 同步(sdk-interface.d.ts / runtime.yaml / game-package.schema / $id URL / V3 SQL 注释) - 主 agent 独立验证全绿:后端集成编译+55 单测(cn.wanxiang)、前端 build+/browse 冒烟(WanxiangGameSDK+demo 911 像素+遥测 200)、残留 huijing=0、Flyway 5 迁移 diff-identical、yudao cn.iocoder.yudao 2167 文件未误伤 - 保留 yudao 框架 cn.iocoder.yudao + Maven groupId cn.iocoder.cloud Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
570632793b
commit
9e95a66ea6
@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://huijing.ai/contracts/ad-slot.schema.json",
|
||||
"$id": "https://wanxiang.ai/contracts/ad-slot.schema.json",
|
||||
"title": "AdSlotConfig",
|
||||
"description": "契约 #7 广告位配置(owner=WS5)。ad 模块 CRUD + SDK Plugin.Ad 据此拉取广告。provider=mock 时走桩,真实联盟审核通过后注入真实 appId/广告位 id(MVP 默认 mock,见执行 spec 风险#6)。",
|
||||
"type": "object",
|
||||
|
||||
@ -217,7 +217,7 @@ components:
|
||||
templateId: { type: string, description: 玩法模板 ID(宿主据此选 Runtime 容器) }
|
||||
packageUrl: { type: string, description: 'GamePackage(manifest)OSS/CDN URL,按 /games/{gameId}/versions/{versionId}/ 版本化(#4)' }
|
||||
entry: { type: string, description: 入口文件相对路径(#4 manifest.entry) }
|
||||
runtimeVersion: { type: string, description: '目标 HuijingGameSDK / Canvas Runtime 版本(semver,#4 manifest.runtimeVersion)' }
|
||||
runtimeVersion: { type: string, description: '目标 WanxiangGameSDK / Canvas Runtime 版本(semver,#4 manifest.runtimeVersion)' }
|
||||
preloadPolicy: { type: string, enum: [eager, lazy], description: '预加载策略(#4 manifest.preloadPolicy)' }
|
||||
bundleSize: { type: integer, format: int64, description: 包总字节(#4 manifest.bundleSize) }
|
||||
checksum: { type: string, description: '整包 sha256(hex),宿主做 Manifest 完整性校验 T-RT-15(#4 manifest.checksum)' }
|
||||
|
||||
@ -60,7 +60,7 @@ CREATE TABLE `game_runtime_package` (
|
||||
`template_id` VARCHAR(64) NOT NULL DEFAULT '' COMMENT '玩法模板 ID(宿主据此选 Runtime 容器)',
|
||||
`package_url` VARCHAR(512) NOT NULL DEFAULT '' COMMENT 'GamePackage(manifest)OSS/CDN URL,按 /games/{gameId}/versions/{versionId}/ 版本化(#4)。决策5:runtime 编译成功后回写为权威源,并同步回写 project.game_version.package_url;aigc 只回填 version_id,不写此字段',
|
||||
`entry` VARCHAR(255) NOT NULL DEFAULT '' COMMENT '入口文件相对路径(#4 manifest.entry)',
|
||||
`runtime_version` VARCHAR(32) NOT NULL DEFAULT '' COMMENT '目标 HuijingGameSDK / Canvas Runtime 版本(semver,#4 manifest.runtimeVersion)',
|
||||
`runtime_version` VARCHAR(32) NOT NULL DEFAULT '' COMMENT '目标 WanxiangGameSDK / Canvas Runtime 版本(semver,#4 manifest.runtimeVersion)',
|
||||
`preload_policy` VARCHAR(8) NOT NULL DEFAULT 'lazy' COMMENT '预加载策略(三容器,#4 manifest.preloadPolicy):eager 进容器即加载 / lazy 可见时加载',
|
||||
`bundle_size` BIGINT NOT NULL DEFAULT 0 COMMENT '包总字节(#4 manifest.bundleSize)。决策5:runtime 编译成功后回写为权威源,并同步回写 project.game_version.bundle_size;aigc 不写此字段',
|
||||
`checksum` CHAR(64) NOT NULL DEFAULT '' COMMENT '整包 sha256(hex,#4 manifest.checksum,宿主完整性校验 T-RT-15)。决策5:runtime 编译成功后回写为权威源,并同步回写 project.game_version.checksum;aigc 不写此字段',
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://huijing.ai/contracts/dify-workflow-io.json",
|
||||
"$id": "https://wanxiang.ai/contracts/dify-workflow-io.json",
|
||||
"title": "DifyWorkflowIO",
|
||||
"description": "契约 #6 Dify workflow 输入/输出(owner=WS2)。aigc Java 壳 ↔ Dify 的对接面。Dify 6 节点:安全检测→意图解析→模板匹配→GameConfig生成+Schema校验→调OpenGame/ComfyUI→质量评估。LLM 节点 prompt 用 {{registry:id@ver}} 引用 Prompt Registry(契约#8)。",
|
||||
"type": "object",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://huijing.ai/contracts/events.schema.json",
|
||||
"$id": "https://wanxiang.ai/contracts/events.schema.json",
|
||||
"title": "TelemetryEvents",
|
||||
"description": "绘境AI 遥测事件契约 v1(契约 #5,owner=WS5)。前端批量上报 / SDK 上报 → /app-api/telemetry/events/batch → MQ 异步入库 → quality_score → feed 排序(数据回路闭环)。每事件带 schema_version;新增字段给默认值、老消费者忽略未知字段;不兼容变更用新事件名。",
|
||||
"type": "object",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://huijing.ai/contracts/game-package.schema.json",
|
||||
"$id": "https://wanxiang.ai/contracts/game-package.schema.json",
|
||||
"title": "GamePackage",
|
||||
"description": "绘境AI 游戏包契约(契约 #4,owner=WS3+WS2)。生成链路(aigc/studio)的产出物,runtime 编译/预览/发布的输入物。贯穿 生成→编译→预览→发布→游戏流→试玩 全链路,是平台最核心的数据契约。",
|
||||
"type": "object",
|
||||
@ -54,7 +54,7 @@
|
||||
"required": ["runtimeVersion", "entry", "preloadPolicy", "bundleSize", "checksum"],
|
||||
"additionalProperties": false,
|
||||
"properties": {
|
||||
"runtimeVersion": { "description": "目标 HuijingGameSDK / Canvas Runtime 版本(semver)", "type": "string" },
|
||||
"runtimeVersion": { "description": "目标 WanxiangGameSDK / Canvas Runtime 版本(semver)", "type": "string" },
|
||||
"entry": { "description": "入口文件相对路径", "type": "string" },
|
||||
"preloadPolicy": {
|
||||
"description": "三容器预加载策略:eager=进容器即加载 / lazy=可见时加载",
|
||||
|
||||
12
contracts/sdk-interface.d.ts
vendored
12
contracts/sdk-interface.d.ts
vendored
@ -1,5 +1,5 @@
|
||||
/**
|
||||
* 契约 #3 | HuijingGameSDK 公共 API 类型 + SDK↔宿主 postMessage 协议
|
||||
* 契约 #3 | WanxiangGameSDK 公共 API 类型 + SDK↔宿主 postMessage 协议
|
||||
* owner:WS3 SDK 负责人 | 消费方:game-studio 宿主 / 游戏侧
|
||||
*
|
||||
* 硬约束(来自 engineering-conventions §3):
|
||||
@ -9,7 +9,7 @@
|
||||
*/
|
||||
|
||||
/** SDK 初始化参数(宿主注入) */
|
||||
export interface HuijingGameSDKInitOptions {
|
||||
export interface WanxiangGameSDKInitOptions {
|
||||
gameId: string;
|
||||
versionId: string;
|
||||
/** 贯穿 生成→编译→加载→运行→上报 的 trace_id */
|
||||
@ -26,10 +26,10 @@ export type LifecycleEvent =
|
||||
| 'game_end' // 本局结束
|
||||
| 'game_error'; // 运行错误
|
||||
|
||||
/** SDK 根对象(挂在游戏侧 window.HuijingGameSDK) */
|
||||
export interface HuijingGameSDK {
|
||||
/** SDK 根对象(挂在游戏侧 window.WanxiangGameSDK) */
|
||||
export interface WanxiangGameSDK {
|
||||
/** 初始化(宿主调用一次) */
|
||||
init(options: HuijingGameSDKInitOptions): void;
|
||||
init(options: WanxiangGameSDKInitOptions): void;
|
||||
/** 生命周期事件订阅(EventBus) */
|
||||
on(event: LifecycleEvent, handler: (payload?: Record<string, unknown>) => void): void;
|
||||
off(event: LifecycleEvent, handler: (payload?: Record<string, unknown>) => void): void;
|
||||
@ -79,7 +79,7 @@ export type PostMessageType =
|
||||
/** postMessage 信封 */
|
||||
export interface PostMessageEnvelope<T = unknown> {
|
||||
/** 固定标识,宿主据此过滤非本协议消息 */
|
||||
channel: 'huijing-game-sdk';
|
||||
channel: 'wanxiang-game-sdk';
|
||||
type: PostMessageType;
|
||||
direction: MessageDirection;
|
||||
/** 请求/响应配对 ID(ad/pay 等需回调的消息) */
|
||||
|
||||
@ -20,10 +20,10 @@
|
||||
- **AC1** `vite build` ✓ / **AC2** `vue-tsc -b` ✓ —— **验证门拦下 A2 两处假绿类型 bug**(runtime `ctx` 跨闭包 narrowing 失效 9 处 + sdk `traceId` 声明未读),已修(draw 内 guard + 遥测/错误上报带 traceId,符合契约#3 trace 贯穿)。**A1 关键发现**:本仓 `vue-tsc --noEmit`(根 tsconfig files:[])恒退 0=假门禁,权威必须用 `npm run build`。
|
||||
- **AC3 玩家闭环** ✓(/browse 实证:feed 渲染→点 `.game-card__play`(▶) 跳 /play→canvas demo 渲染【getImageData 采样 592 青色文字像素】→`POST /telemetry/events/batch`·`perf/beacon` 200)。
|
||||
- **AC4 创作闭环** ✓(create→选模板→填一句话→`POST /aigc/generate`→`GET /aigc/task` 轮询→自动跳 /create/preview→发布门禁 7 项自检→`POST /project/{id}/publish` 200→"已提交审核";输入标题全程数据贯穿到项目)。
|
||||
- **AC5 三方链路** ✓(iframe 内 `window.HuijingGameSDK`=object + canvas 渲染 + postMessage 遥测转发上报)。**AC6 ad 桩** ✓(iframe 调 `SDK.ad.showRewarded`→宿主弹层"激励视频(桩) slot_demo"→回调 `{rewarded:true}`;pay 桩同构)。**AC7** Runtime 3.5KB<15KB ✓。**AC8** durable 化(本 spec + .agent + 记忆 `frontend-spine-built`)。
|
||||
- **AC5 三方链路** ✓(iframe 内 `window.WanxiangGameSDK`=object + canvas 渲染 + postMessage 遥测转发上报;代码改名后复验:WanxiangGameSDK=object + canvas 911 像素 + 遥测 200)。**AC6 ad 桩** ✓(iframe 调 `SDK.ad.showRewarded`→宿主弹层"激励视频(桩) slot_demo"→回调 `{rewarded:true}`;pay 桩同构)。**AC7** Runtime 3.5KB<15KB ✓。**AC8** durable 化(本 spec + .agent + 记忆 `frontend-spine-built`)。
|
||||
- **非阻塞发现项**:① browse 对 scroll-snap 内 cursor 元素 click 超时(自动化交互限制,js click 均成功,**非应用 bug**;可选优化=扩大卡片点击热区到整卡);② iframe srcdoc sandbox `allow-scripts+allow-same-origin` 逃逸 warning(A2 已知,生产改独立子域/blob 收紧 origin,inject.ts 注释标了切换点);③ headless 不光栅化 srcdoc iframe 截图(全黑,用像素采样/DOM/text 替代取证);④ 双校验"拒非法 origin/schema"未独立实测(A2 自报 + bridge.ts 有逻辑,留安全测试补);⑤ mock 假数据文案含旧品牌"绘境"(mock 代码层,[[brand-rename-huijing-to-zaomeng]] 规则下属可选收尾)。
|
||||
- **⚠️ 4 个 contractGaps(已审,骨架全 mock 已兜底、不阻塞本次;staging 真实联调前由契约 owner 补,非前端私造)**:(1) `project.publish` 响应仅 boolean、缺 7 门禁逐项结构(B3 用客户端预检兜底);(2) 无端点返回完整 `GamePackage` JSON(runtime.getPackage 仅给 packageUrl,A2 用内置 demo 包兜底,真实试玩缺"取包"一跳,CSP 下需宿主侧 fetch);(3) `feed.ShareMeta` 缺 versionId(share→play 无法透传版本);(4) events.schema(snake_case) vs telemetry.yaml(camelCase) 风格不一(前端按 HTTP 入参契约 camelCase 实现)。
|
||||
- **⚠️ 命名分层(2026-06-08 品牌改名后必读,防漂移)**:创始人定「绘境→造梦」品牌改名,规则 = **仅改文档/计划层**(绘境→造梦、Huijing→Wanxiang、huijing→wanxiang),**代码/契约/Java 包名保持 huijing 不动**(`cn.huijing.game`、`window.HuijingGameSDK`、`contracts/*` 全不改——技术命名空间,重构 127 文件零收益高风险,留待专门的后端包名重构)。**故本 spec 文本里的 `WanxiangGameSDK` 仅是品牌目标态;实际契约 `sdk-interface.d.ts` 与 `game-studio` 代码的全局名仍是 `HuijingGameSDK`。Phase C 与一切续作以契约/代码为准(`HuijingGameSDK`),前端代码不得改名。** 见记忆 `brand-rename-huijing-to-zaomeng`。
|
||||
- **✅ 命名全栈统一 wanxiang(2026-06-08 代码层重构完成,原"只改文档"决策已被创始人反转)**:品牌「绘境→造梦」。技术命名空间 `huijing→wanxiang` 已落到**全栈**——Java 包 `cn.huijing.game→cn.wanxiang.game`(126 .java + 15 目录 git mv + Application 扫描/@MapperScan/yaml type-aliases 接线)、SDK `HuijingGameSDK→WanxiangGameSDK`、postMessage channel `huijing-game-sdk→wanxiang-game-sdk`、契约 `contracts/` 同步。**主 agent 独立验证全绿**:后端集成编译 + 55 单测(cn.wanxiang)、前端 `npm run build` + 冒烟(window.WanxiangGameSDK=object + demo 911 像素 + 遥测 200)、代码/契约残留 huijing=0、Flyway 5 迁移 diff-identical、yudao 框架 `cn.iocoder.yudao` + Maven groupId `cn.iocoder.cloud` 未误伤。分叉已消除。见记忆 `brand-rename-huijing-to-zaomeng`。
|
||||
|
||||
---
|
||||
|
||||
|
||||
@ -28,16 +28,16 @@ game-cloud/
|
||||
- [x] **工具链就绪**:JDK 17.0.19 + Maven 3.8.7。
|
||||
- [x] **黄金模块 `game-module-project` 建成并编译通过**(`mvn install` BUILD SUCCESS,18 源文件,照抄 fork notice/infra 范式):
|
||||
-api(ErrorCodeConstants 段1-100/ProjectStatusEnum/ReviewDecisionEnum) + -server(ProjectDO·ReviewRecordDO 继承 TenantBaseDO / 2 Mapper / ProjectService+Impl 状态机·归属·门禁·审核事务 / ProjectConvert / 7 VO / App+Admin 双控制器)。
|
||||
- [x] **B 路线接线 yudao-server**:pom 依赖 game-module-project-server;`YudaoServerApplication` 加 `cn.huijing.game.module` 组件扫描 + `@MapperScan`;`application.yaml` type-aliases 纳入 game DO。
|
||||
- [x] **关键核实**:`WebProperties` 端前缀按 `**.controller.app/admin.**` 通配 → cn.huijing 包自动获 `/app-api`·`/admin-api`,无需改框架。
|
||||
- [x] **B 路线接线 yudao-server**:pom 依赖 game-module-project-server;`YudaoServerApplication` 加 `cn.wanxiang.game.module` 组件扫描 + `@MapperScan`;`application.yaml` type-aliases 纳入 game DO。
|
||||
- [x] **关键核实**:`WebProperties` 端前缀按 `**.controller.app/admin.**` 通配 → cn.wanxiang 包自动获 `/app-api`·`/admin-api`,无需改框架。
|
||||
- [x] **集成编译通过**:`mvn -pl yudao-server -am compile` BUILD SUCCESS(接线后整体编译,含 Flyway 依赖)。
|
||||
- [x] **Flyway 启用(创始人定 A)**:yudao-server 加 `flyway-core`+`flyway-mysql`(版本由 spring-boot 管理);`application.yaml` 加 `spring.flyway`(enabled+`baseline-on-migrate`+`baseline-version=0`,关键防 V1.0.0 被当≤baseline 跳过);迁移脚本复制到 `yudao-server/.../db/migration/`(执行副本,源在 `contracts/db-schemas/`,diff 一致;Flyway 校验和敏感故保持同步)。
|
||||
- [x] **端前缀(创始人定 B)**:保留 yudao 默认 `/app-api`·`/admin-api`,已把 `project.yaml`/`README`/`规范§4`/`events.schema` 的 `/app`·`/admin` 改为 `/app-api`·`/admin-api`(控制器代码零改,前缀框架按包名自动加)。
|
||||
- [x] **Service 单测通过**:`ProjectServiceImplTest` 9 用例全绿(Mockito,覆盖默认值/归属/状态机/发布门禁/审核流转)。
|
||||
- [ ] **运行时未验证(本环境无 MySQL/Redis/Nacos)**:Spring 上下文启动、组件/Mapper 扫描到 cn.huijing 包、Flyway 真实执行迁移(注意 dynamic-datasource 绑定,必要时显式设 `spring.flyway.url`)、Swagger `/doc.html` 自测——须在有基建环境跑。
|
||||
- [ ] **运行时未验证(本环境无 MySQL/Redis/Nacos)**:Spring 上下文启动、组件/Mapper 扫描到 cn.wanxiang 包、Flyway 真实执行迁移(注意 dynamic-datasource 绑定,必要时显式设 `spring.flyway.url`)、Swagger `/doc.html` 自测——须在有基建环境跑。
|
||||
- [x] **Wave1 闭环脊柱 4 模块(aigc/runtime/feed/telemetry)已并行建成并验证**(Workflow 三相编排:契约→建设→集成;4 模块 46 单测绿 + 全量集成编译绿 41 模块 reactor;详见 `docs/agent-specs/2026-06-08-后端模块并行建设-execution.md`)。13 张表全落 `contracts/db-schemas/V1-V5`,错误码段 100-104 独占。
|
||||
- [ ] 其余 8 模块(Wave2 变现 ad/trade/pay + Wave3 治理 community/ip/compliance/biz)克隆黄金模板(见 `.agents/skills/add-business-module.md`)。
|
||||
- [ ] 未 git 提交(用户未要求)。
|
||||
|
||||
## 规范锚点
|
||||
包名 `cn.huijing.game.module.{模块}.{层}`;错误码段见 `.agents/rules/engineering-conventions.md §1.3`;API `/app-api`·`/admin-api` 双端(前缀框架按包名自动加);DO/VO/DTO 分层;Flyway 迁移(执行位 `yudao-server/.../db/migration/`);测试金字塔(单测>80%/集成 Testcontainers)。
|
||||
包名 `cn.wanxiang.game.module.{模块}.{层}`;错误码段见 `.agents/rules/engineering-conventions.md §1.3`;API `/app-api`·`/admin-api` 双端(前缀框架按包名自动加);DO/VO/DTO 分层;Flyway 迁移(执行位 `yudao-server/.../db/migration/`);测试金字塔(单测>80%/集成 Testcontainers)。
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.aigc.enums;
|
||||
package cn.wanxiang.game.module.aigc.enums;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.aigc.enums;
|
||||
package cn.wanxiang.game.module.aigc.enums;
|
||||
|
||||
import cn.iocoder.yudao.framework.common.exception.ErrorCode;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.aigc.enums;
|
||||
package cn.wanxiang.game.module.aigc.enums;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
@ -1,11 +1,11 @@
|
||||
package cn.huijing.game.module.aigc.controller.admin.task;
|
||||
package cn.wanxiang.game.module.aigc.controller.admin.task;
|
||||
|
||||
import cn.huijing.game.module.aigc.controller.admin.task.vo.AigcTaskAdminPageReqVO;
|
||||
import cn.huijing.game.module.aigc.controller.admin.task.vo.DifyCallbackReqVO;
|
||||
import cn.huijing.game.module.aigc.controller.app.task.vo.AigcTaskRespVO;
|
||||
import cn.huijing.game.module.aigc.convert.task.AigcTaskConvert;
|
||||
import cn.huijing.game.module.aigc.dal.dataobject.task.AigcTaskDO;
|
||||
import cn.huijing.game.module.aigc.service.task.AigcTaskService;
|
||||
import cn.wanxiang.game.module.aigc.controller.admin.task.vo.AigcTaskAdminPageReqVO;
|
||||
import cn.wanxiang.game.module.aigc.controller.admin.task.vo.DifyCallbackReqVO;
|
||||
import cn.wanxiang.game.module.aigc.controller.app.task.vo.AigcTaskRespVO;
|
||||
import cn.wanxiang.game.module.aigc.convert.task.AigcTaskConvert;
|
||||
import cn.wanxiang.game.module.aigc.dal.dataobject.task.AigcTaskDO;
|
||||
import cn.wanxiang.game.module.aigc.service.task.AigcTaskService;
|
||||
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.aigc.controller.admin.task.vo;
|
||||
package cn.wanxiang.game.module.aigc.controller.admin.task.vo;
|
||||
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.aigc.controller.admin.task.vo;
|
||||
package cn.wanxiang.game.module.aigc.controller.admin.task.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
@ -1,13 +1,13 @@
|
||||
package cn.huijing.game.module.aigc.controller.app.task;
|
||||
package cn.wanxiang.game.module.aigc.controller.app.task;
|
||||
|
||||
import cn.huijing.game.module.aigc.controller.app.task.vo.AigcGenerateReqVO;
|
||||
import cn.huijing.game.module.aigc.controller.app.task.vo.AigcTaskPageReqVO;
|
||||
import cn.huijing.game.module.aigc.controller.app.task.vo.AigcTaskRespVO;
|
||||
import cn.huijing.game.module.aigc.controller.app.task.vo.GenerateRespVO;
|
||||
import cn.huijing.game.module.aigc.controller.app.task.vo.TemplateRespVO;
|
||||
import cn.huijing.game.module.aigc.convert.task.AigcTaskConvert;
|
||||
import cn.huijing.game.module.aigc.dal.dataobject.task.AigcTaskDO;
|
||||
import cn.huijing.game.module.aigc.service.task.AigcTaskService;
|
||||
import cn.wanxiang.game.module.aigc.controller.app.task.vo.AigcGenerateReqVO;
|
||||
import cn.wanxiang.game.module.aigc.controller.app.task.vo.AigcTaskPageReqVO;
|
||||
import cn.wanxiang.game.module.aigc.controller.app.task.vo.AigcTaskRespVO;
|
||||
import cn.wanxiang.game.module.aigc.controller.app.task.vo.GenerateRespVO;
|
||||
import cn.wanxiang.game.module.aigc.controller.app.task.vo.TemplateRespVO;
|
||||
import cn.wanxiang.game.module.aigc.convert.task.AigcTaskConvert;
|
||||
import cn.wanxiang.game.module.aigc.dal.dataobject.task.AigcTaskDO;
|
||||
import cn.wanxiang.game.module.aigc.service.task.AigcTaskService;
|
||||
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||
import cn.iocoder.yudao.framework.security.core.util.SecurityFrameworkUtils;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.aigc.controller.app.task.vo;
|
||||
package cn.wanxiang.game.module.aigc.controller.app.task.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.aigc.controller.app.task.vo;
|
||||
package cn.wanxiang.game.module.aigc.controller.app.task.vo;
|
||||
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.aigc.controller.app.task.vo;
|
||||
package cn.wanxiang.game.module.aigc.controller.app.task.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.aigc.controller.app.task.vo;
|
||||
package cn.wanxiang.game.module.aigc.controller.app.task.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.aigc.controller.app.task.vo;
|
||||
package cn.wanxiang.game.module.aigc.controller.app.task.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
@ -1,8 +1,8 @@
|
||||
package cn.huijing.game.module.aigc.convert.task;
|
||||
package cn.wanxiang.game.module.aigc.convert.task;
|
||||
|
||||
import cn.huijing.game.module.aigc.controller.app.task.vo.AigcTaskRespVO;
|
||||
import cn.huijing.game.module.aigc.controller.app.task.vo.GenerateRespVO;
|
||||
import cn.huijing.game.module.aigc.dal.dataobject.task.AigcTaskDO;
|
||||
import cn.wanxiang.game.module.aigc.controller.app.task.vo.AigcTaskRespVO;
|
||||
import cn.wanxiang.game.module.aigc.controller.app.task.vo.GenerateRespVO;
|
||||
import cn.wanxiang.game.module.aigc.dal.dataobject.task.AigcTaskDO;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
package cn.huijing.game.module.aigc.dal.dataobject.task;
|
||||
package cn.wanxiang.game.module.aigc.dal.dataobject.task;
|
||||
|
||||
import cn.huijing.game.module.aigc.enums.AigcTaskStatusEnum;
|
||||
import cn.wanxiang.game.module.aigc.enums.AigcTaskStatusEnum;
|
||||
import cn.iocoder.yudao.framework.tenant.core.db.TenantBaseDO;
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
@ -71,7 +71,7 @@ public class AigcTaskDO extends TenantBaseDO {
|
||||
*/
|
||||
private BigDecimal qualityScore;
|
||||
/**
|
||||
* 失败原因分类(status=3/4 必填,取值对齐 {@link cn.huijing.game.module.aigc.enums.FailureReasonEnum})
|
||||
* 失败原因分类(status=3/4 必填,取值对齐 {@link cn.wanxiang.game.module.aigc.enums.FailureReasonEnum})
|
||||
*/
|
||||
private String failureReason;
|
||||
/**
|
||||
@ -1,8 +1,8 @@
|
||||
package cn.huijing.game.module.aigc.dal.mysql.task;
|
||||
package cn.wanxiang.game.module.aigc.dal.mysql.task;
|
||||
|
||||
import cn.huijing.game.module.aigc.controller.admin.task.vo.AigcTaskAdminPageReqVO;
|
||||
import cn.huijing.game.module.aigc.controller.app.task.vo.AigcTaskPageReqVO;
|
||||
import cn.huijing.game.module.aigc.dal.dataobject.task.AigcTaskDO;
|
||||
import cn.wanxiang.game.module.aigc.controller.admin.task.vo.AigcTaskAdminPageReqVO;
|
||||
import cn.wanxiang.game.module.aigc.controller.app.task.vo.AigcTaskPageReqVO;
|
||||
import cn.wanxiang.game.module.aigc.dal.dataobject.task.AigcTaskDO;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
@ -1,10 +1,10 @@
|
||||
package cn.huijing.game.module.aigc.service.task;
|
||||
package cn.wanxiang.game.module.aigc.service.task;
|
||||
|
||||
import cn.huijing.game.module.aigc.controller.app.task.vo.AigcGenerateReqVO;
|
||||
import cn.huijing.game.module.aigc.controller.app.task.vo.AigcTaskPageReqVO;
|
||||
import cn.huijing.game.module.aigc.controller.app.task.vo.TemplateRespVO;
|
||||
import cn.huijing.game.module.aigc.controller.admin.task.vo.AigcTaskAdminPageReqVO;
|
||||
import cn.huijing.game.module.aigc.dal.dataobject.task.AigcTaskDO;
|
||||
import cn.wanxiang.game.module.aigc.controller.app.task.vo.AigcGenerateReqVO;
|
||||
import cn.wanxiang.game.module.aigc.controller.app.task.vo.AigcTaskPageReqVO;
|
||||
import cn.wanxiang.game.module.aigc.controller.app.task.vo.TemplateRespVO;
|
||||
import cn.wanxiang.game.module.aigc.controller.admin.task.vo.AigcTaskAdminPageReqVO;
|
||||
import cn.wanxiang.game.module.aigc.dal.dataobject.task.AigcTaskDO;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||
|
||||
import java.util.List;
|
||||
@ -1,12 +1,12 @@
|
||||
package cn.huijing.game.module.aigc.service.task;
|
||||
package cn.wanxiang.game.module.aigc.service.task;
|
||||
|
||||
import cn.huijing.game.module.aigc.controller.app.task.vo.AigcGenerateReqVO;
|
||||
import cn.huijing.game.module.aigc.controller.app.task.vo.AigcTaskPageReqVO;
|
||||
import cn.huijing.game.module.aigc.controller.app.task.vo.TemplateRespVO;
|
||||
import cn.huijing.game.module.aigc.controller.admin.task.vo.AigcTaskAdminPageReqVO;
|
||||
import cn.huijing.game.module.aigc.dal.dataobject.task.AigcTaskDO;
|
||||
import cn.huijing.game.module.aigc.dal.mysql.task.AigcTaskMapper;
|
||||
import cn.huijing.game.module.aigc.enums.AigcTaskStatusEnum;
|
||||
import cn.wanxiang.game.module.aigc.controller.app.task.vo.AigcGenerateReqVO;
|
||||
import cn.wanxiang.game.module.aigc.controller.app.task.vo.AigcTaskPageReqVO;
|
||||
import cn.wanxiang.game.module.aigc.controller.app.task.vo.TemplateRespVO;
|
||||
import cn.wanxiang.game.module.aigc.controller.admin.task.vo.AigcTaskAdminPageReqVO;
|
||||
import cn.wanxiang.game.module.aigc.dal.dataobject.task.AigcTaskDO;
|
||||
import cn.wanxiang.game.module.aigc.dal.mysql.task.AigcTaskMapper;
|
||||
import cn.wanxiang.game.module.aigc.enums.AigcTaskStatusEnum;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||
import jakarta.annotation.Resource;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
@ -21,7 +21,7 @@ import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.UUID;
|
||||
|
||||
import static cn.huijing.game.module.aigc.enums.ErrorCodeConstants.*;
|
||||
import static cn.wanxiang.game.module.aigc.enums.ErrorCodeConstants.*;
|
||||
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||
|
||||
/**
|
||||
@ -1,9 +1,9 @@
|
||||
package cn.huijing.game.module.aigc.service.task;
|
||||
package cn.wanxiang.game.module.aigc.service.task;
|
||||
|
||||
import cn.huijing.game.module.aigc.controller.app.task.vo.AigcGenerateReqVO;
|
||||
import cn.huijing.game.module.aigc.dal.dataobject.task.AigcTaskDO;
|
||||
import cn.huijing.game.module.aigc.dal.mysql.task.AigcTaskMapper;
|
||||
import cn.huijing.game.module.aigc.enums.AigcTaskStatusEnum;
|
||||
import cn.wanxiang.game.module.aigc.controller.app.task.vo.AigcGenerateReqVO;
|
||||
import cn.wanxiang.game.module.aigc.dal.dataobject.task.AigcTaskDO;
|
||||
import cn.wanxiang.game.module.aigc.dal.mysql.task.AigcTaskMapper;
|
||||
import cn.wanxiang.game.module.aigc.enums.AigcTaskStatusEnum;
|
||||
import cn.iocoder.yudao.framework.common.exception.ServiceException;
|
||||
import cn.iocoder.yudao.framework.test.core.ut.BaseMockitoUnitTest;
|
||||
import org.junit.jupiter.api.Test;
|
||||
@ -11,7 +11,7 @@ import org.mockito.ArgumentCaptor;
|
||||
import org.mockito.InjectMocks;
|
||||
import org.mockito.Mock;
|
||||
|
||||
import static cn.huijing.game.module.aigc.enums.ErrorCodeConstants.*;
|
||||
import static cn.wanxiang.game.module.aigc.enums.ErrorCodeConstants.*;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
import static org.mockito.ArgumentMatchers.any;
|
||||
import static org.mockito.Mockito.*;
|
||||
@ -2,7 +2,7 @@
|
||||
<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">
|
||||
<!-- 父:沿用 yudao 聚合父 POM(groupId 复用 cn.iocoder.cloud 仅为 Maven 坐标;业务代码包名为 cn.huijing.game,拆仓时再改坐标) -->
|
||||
<!-- 父:沿用 yudao 聚合父 POM(groupId 复用 cn.iocoder.cloud 仅为 Maven 坐标;业务代码包名为 cn.wanxiang.game,拆仓时再改坐标) -->
|
||||
<parent>
|
||||
<groupId>cn.iocoder.cloud</groupId>
|
||||
<artifactId>yudao</artifactId>
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.feed.enums;
|
||||
package cn.wanxiang.game.module.feed.enums;
|
||||
|
||||
import cn.iocoder.yudao.framework.common.exception.ErrorCode;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.feed.enums;
|
||||
package cn.wanxiang.game.module.feed.enums;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.feed.enums;
|
||||
package cn.wanxiang.game.module.feed.enums;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
@ -1,11 +1,11 @@
|
||||
package cn.huijing.game.module.feed.controller.admin.feed;
|
||||
package cn.wanxiang.game.module.feed.controller.admin.feed;
|
||||
|
||||
import cn.huijing.game.module.feed.controller.admin.feed.vo.FeaturedPageReqVO;
|
||||
import cn.huijing.game.module.feed.controller.admin.feed.vo.FeaturedReqVO;
|
||||
import cn.huijing.game.module.feed.controller.app.feed.vo.FeedCardRespVO;
|
||||
import cn.huijing.game.module.feed.convert.feed.FeedConvert;
|
||||
import cn.huijing.game.module.feed.dal.dataobject.rank.FeedRankDO;
|
||||
import cn.huijing.game.module.feed.service.feed.FeedService;
|
||||
import cn.wanxiang.game.module.feed.controller.admin.feed.vo.FeaturedPageReqVO;
|
||||
import cn.wanxiang.game.module.feed.controller.admin.feed.vo.FeaturedReqVO;
|
||||
import cn.wanxiang.game.module.feed.controller.app.feed.vo.FeedCardRespVO;
|
||||
import cn.wanxiang.game.module.feed.convert.feed.FeedConvert;
|
||||
import cn.wanxiang.game.module.feed.dal.dataobject.rank.FeedRankDO;
|
||||
import cn.wanxiang.game.module.feed.service.feed.FeedService;
|
||||
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.feed.controller.admin.feed.vo;
|
||||
package cn.wanxiang.game.module.feed.controller.admin.feed.vo;
|
||||
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.feed.controller.admin.feed.vo;
|
||||
package cn.wanxiang.game.module.feed.controller.admin.feed.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
@ -1,13 +1,13 @@
|
||||
package cn.huijing.game.module.feed.controller.app.feed;
|
||||
package cn.wanxiang.game.module.feed.controller.app.feed;
|
||||
|
||||
import cn.huijing.game.module.feed.controller.app.feed.vo.FeedInteractReqVO;
|
||||
import cn.huijing.game.module.feed.controller.app.feed.vo.FeedStreamReqVO;
|
||||
import cn.huijing.game.module.feed.controller.app.feed.vo.FeedStreamRespVO;
|
||||
import cn.huijing.game.module.feed.controller.app.feed.vo.InteractResultRespVO;
|
||||
import cn.huijing.game.module.feed.controller.app.feed.vo.ShareMetaRespVO;
|
||||
import cn.huijing.game.module.feed.controller.app.feed.vo.ZoneRespVO;
|
||||
import cn.huijing.game.module.feed.controller.app.feed.vo.ZoneStreamReqVO;
|
||||
import cn.huijing.game.module.feed.service.feed.FeedService;
|
||||
import cn.wanxiang.game.module.feed.controller.app.feed.vo.FeedInteractReqVO;
|
||||
import cn.wanxiang.game.module.feed.controller.app.feed.vo.FeedStreamReqVO;
|
||||
import cn.wanxiang.game.module.feed.controller.app.feed.vo.FeedStreamRespVO;
|
||||
import cn.wanxiang.game.module.feed.controller.app.feed.vo.InteractResultRespVO;
|
||||
import cn.wanxiang.game.module.feed.controller.app.feed.vo.ShareMetaRespVO;
|
||||
import cn.wanxiang.game.module.feed.controller.app.feed.vo.ZoneRespVO;
|
||||
import cn.wanxiang.game.module.feed.controller.app.feed.vo.ZoneStreamReqVO;
|
||||
import cn.wanxiang.game.module.feed.service.feed.FeedService;
|
||||
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
||||
import cn.iocoder.yudao.framework.security.core.util.SecurityFrameworkUtils;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.feed.controller.app.feed.vo;
|
||||
package cn.wanxiang.game.module.feed.controller.app.feed.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.feed.controller.app.feed.vo;
|
||||
package cn.wanxiang.game.module.feed.controller.app.feed.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.feed.controller.app.feed.vo;
|
||||
package cn.wanxiang.game.module.feed.controller.app.feed.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.Max;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.feed.controller.app.feed.vo;
|
||||
package cn.wanxiang.game.module.feed.controller.app.feed.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.feed.controller.app.feed.vo;
|
||||
package cn.wanxiang.game.module.feed.controller.app.feed.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.feed.controller.app.feed.vo;
|
||||
package cn.wanxiang.game.module.feed.controller.app.feed.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.feed.controller.app.feed.vo;
|
||||
package cn.wanxiang.game.module.feed.controller.app.feed.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.feed.controller.app.feed.vo;
|
||||
package cn.wanxiang.game.module.feed.controller.app.feed.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
@ -1,7 +1,7 @@
|
||||
package cn.huijing.game.module.feed.convert.feed;
|
||||
package cn.wanxiang.game.module.feed.convert.feed;
|
||||
|
||||
import cn.huijing.game.module.feed.controller.app.feed.vo.FeedCardRespVO;
|
||||
import cn.huijing.game.module.feed.dal.dataobject.rank.FeedRankDO;
|
||||
import cn.wanxiang.game.module.feed.controller.app.feed.vo.FeedCardRespVO;
|
||||
import cn.wanxiang.game.module.feed.dal.dataobject.rank.FeedRankDO;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.util.List;
|
||||
@ -1,6 +1,6 @@
|
||||
package cn.huijing.game.module.feed.dal.dataobject.interact;
|
||||
package cn.wanxiang.game.module.feed.dal.dataobject.interact;
|
||||
|
||||
import cn.huijing.game.module.feed.enums.FeedActionEnum;
|
||||
import cn.wanxiang.game.module.feed.enums.FeedActionEnum;
|
||||
import cn.iocoder.yudao.framework.tenant.core.db.TenantBaseDO;
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.feed.dal.dataobject.rank;
|
||||
package cn.wanxiang.game.module.feed.dal.dataobject.rank;
|
||||
|
||||
import cn.iocoder.yudao.framework.tenant.core.db.TenantBaseDO;
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
@ -1,6 +1,6 @@
|
||||
package cn.huijing.game.module.feed.dal.mysql.interact;
|
||||
package cn.wanxiang.game.module.feed.dal.mysql.interact;
|
||||
|
||||
import cn.huijing.game.module.feed.dal.dataobject.interact.FeedInteractLogDO;
|
||||
import cn.wanxiang.game.module.feed.dal.dataobject.interact.FeedInteractLogDO;
|
||||
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
@ -1,6 +1,6 @@
|
||||
package cn.huijing.game.module.feed.dal.mysql.rank;
|
||||
package cn.wanxiang.game.module.feed.dal.mysql.rank;
|
||||
|
||||
import cn.huijing.game.module.feed.dal.dataobject.rank.FeedRankDO;
|
||||
import cn.wanxiang.game.module.feed.dal.dataobject.rank.FeedRankDO;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
|
||||
@ -1,15 +1,15 @@
|
||||
package cn.huijing.game.module.feed.service.feed;
|
||||
package cn.wanxiang.game.module.feed.service.feed;
|
||||
|
||||
import cn.huijing.game.module.feed.controller.admin.feed.vo.FeaturedPageReqVO;
|
||||
import cn.huijing.game.module.feed.controller.admin.feed.vo.FeaturedReqVO;
|
||||
import cn.huijing.game.module.feed.controller.app.feed.vo.FeedInteractReqVO;
|
||||
import cn.huijing.game.module.feed.controller.app.feed.vo.FeedStreamReqVO;
|
||||
import cn.huijing.game.module.feed.controller.app.feed.vo.FeedStreamRespVO;
|
||||
import cn.huijing.game.module.feed.controller.app.feed.vo.InteractResultRespVO;
|
||||
import cn.huijing.game.module.feed.controller.app.feed.vo.ShareMetaRespVO;
|
||||
import cn.huijing.game.module.feed.controller.app.feed.vo.ZoneRespVO;
|
||||
import cn.huijing.game.module.feed.controller.app.feed.vo.ZoneStreamReqVO;
|
||||
import cn.huijing.game.module.feed.dal.dataobject.rank.FeedRankDO;
|
||||
import cn.wanxiang.game.module.feed.controller.admin.feed.vo.FeaturedPageReqVO;
|
||||
import cn.wanxiang.game.module.feed.controller.admin.feed.vo.FeaturedReqVO;
|
||||
import cn.wanxiang.game.module.feed.controller.app.feed.vo.FeedInteractReqVO;
|
||||
import cn.wanxiang.game.module.feed.controller.app.feed.vo.FeedStreamReqVO;
|
||||
import cn.wanxiang.game.module.feed.controller.app.feed.vo.FeedStreamRespVO;
|
||||
import cn.wanxiang.game.module.feed.controller.app.feed.vo.InteractResultRespVO;
|
||||
import cn.wanxiang.game.module.feed.controller.app.feed.vo.ShareMetaRespVO;
|
||||
import cn.wanxiang.game.module.feed.controller.app.feed.vo.ZoneRespVO;
|
||||
import cn.wanxiang.game.module.feed.controller.app.feed.vo.ZoneStreamReqVO;
|
||||
import cn.wanxiang.game.module.feed.dal.dataobject.rank.FeedRankDO;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||
|
||||
import java.util.List;
|
||||
@ -1,20 +1,20 @@
|
||||
package cn.huijing.game.module.feed.service.feed;
|
||||
package cn.wanxiang.game.module.feed.service.feed;
|
||||
|
||||
import cn.huijing.game.module.feed.controller.admin.feed.vo.FeaturedPageReqVO;
|
||||
import cn.huijing.game.module.feed.controller.admin.feed.vo.FeaturedReqVO;
|
||||
import cn.huijing.game.module.feed.controller.app.feed.vo.FeedInteractReqVO;
|
||||
import cn.huijing.game.module.feed.controller.app.feed.vo.FeedStreamReqVO;
|
||||
import cn.huijing.game.module.feed.controller.app.feed.vo.FeedStreamRespVO;
|
||||
import cn.huijing.game.module.feed.controller.app.feed.vo.InteractResultRespVO;
|
||||
import cn.huijing.game.module.feed.controller.app.feed.vo.ShareMetaRespVO;
|
||||
import cn.huijing.game.module.feed.controller.app.feed.vo.ZoneRespVO;
|
||||
import cn.huijing.game.module.feed.controller.app.feed.vo.ZoneStreamReqVO;
|
||||
import cn.huijing.game.module.feed.convert.feed.FeedConvert;
|
||||
import cn.huijing.game.module.feed.dal.dataobject.interact.FeedInteractLogDO;
|
||||
import cn.huijing.game.module.feed.dal.dataobject.rank.FeedRankDO;
|
||||
import cn.huijing.game.module.feed.dal.mysql.interact.FeedInteractLogMapper;
|
||||
import cn.huijing.game.module.feed.dal.mysql.rank.FeedRankMapper;
|
||||
import cn.huijing.game.module.feed.enums.FeedActionEnum;
|
||||
import cn.wanxiang.game.module.feed.controller.admin.feed.vo.FeaturedPageReqVO;
|
||||
import cn.wanxiang.game.module.feed.controller.admin.feed.vo.FeaturedReqVO;
|
||||
import cn.wanxiang.game.module.feed.controller.app.feed.vo.FeedInteractReqVO;
|
||||
import cn.wanxiang.game.module.feed.controller.app.feed.vo.FeedStreamReqVO;
|
||||
import cn.wanxiang.game.module.feed.controller.app.feed.vo.FeedStreamRespVO;
|
||||
import cn.wanxiang.game.module.feed.controller.app.feed.vo.InteractResultRespVO;
|
||||
import cn.wanxiang.game.module.feed.controller.app.feed.vo.ShareMetaRespVO;
|
||||
import cn.wanxiang.game.module.feed.controller.app.feed.vo.ZoneRespVO;
|
||||
import cn.wanxiang.game.module.feed.controller.app.feed.vo.ZoneStreamReqVO;
|
||||
import cn.wanxiang.game.module.feed.convert.feed.FeedConvert;
|
||||
import cn.wanxiang.game.module.feed.dal.dataobject.interact.FeedInteractLogDO;
|
||||
import cn.wanxiang.game.module.feed.dal.dataobject.rank.FeedRankDO;
|
||||
import cn.wanxiang.game.module.feed.dal.mysql.interact.FeedInteractLogMapper;
|
||||
import cn.wanxiang.game.module.feed.dal.mysql.rank.FeedRankMapper;
|
||||
import cn.wanxiang.game.module.feed.enums.FeedActionEnum;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||
import jakarta.annotation.Resource;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
@ -27,7 +27,7 @@ import java.util.Collections;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
|
||||
import static cn.huijing.game.module.feed.enums.ErrorCodeConstants.*;
|
||||
import static cn.wanxiang.game.module.feed.enums.ErrorCodeConstants.*;
|
||||
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||
|
||||
/**
|
||||
@ -235,8 +235,8 @@ public class FeedServiceImpl implements FeedService {
|
||||
* @return 分享链接
|
||||
*/
|
||||
private String buildShareUrl(Long gameId, String channel) {
|
||||
// TODO 分享域名应取自 Nacos 配置(如 huijing.share.base-url),骨架先用占位域名
|
||||
String base = "https://huijing.ai/s/" + gameId;
|
||||
// TODO 分享域名应取自 Nacos 配置(如 wanxiang.share.base-url),骨架先用占位域名
|
||||
String base = "https://wanxiang.ai/s/" + gameId;
|
||||
return StringUtils.hasText(channel) ? base + "?utm_source=" + channel : base;
|
||||
}
|
||||
|
||||
@ -1,15 +1,15 @@
|
||||
package cn.huijing.game.module.feed.service.feed;
|
||||
package cn.wanxiang.game.module.feed.service.feed;
|
||||
|
||||
import cn.huijing.game.module.feed.controller.admin.feed.vo.FeaturedReqVO;
|
||||
import cn.huijing.game.module.feed.controller.app.feed.vo.FeedInteractReqVO;
|
||||
import cn.huijing.game.module.feed.controller.app.feed.vo.FeedStreamReqVO;
|
||||
import cn.huijing.game.module.feed.controller.app.feed.vo.FeedStreamRespVO;
|
||||
import cn.huijing.game.module.feed.controller.app.feed.vo.InteractResultRespVO;
|
||||
import cn.huijing.game.module.feed.controller.app.feed.vo.ShareMetaRespVO;
|
||||
import cn.huijing.game.module.feed.dal.dataobject.interact.FeedInteractLogDO;
|
||||
import cn.huijing.game.module.feed.dal.dataobject.rank.FeedRankDO;
|
||||
import cn.huijing.game.module.feed.dal.mysql.interact.FeedInteractLogMapper;
|
||||
import cn.huijing.game.module.feed.dal.mysql.rank.FeedRankMapper;
|
||||
import cn.wanxiang.game.module.feed.controller.admin.feed.vo.FeaturedReqVO;
|
||||
import cn.wanxiang.game.module.feed.controller.app.feed.vo.FeedInteractReqVO;
|
||||
import cn.wanxiang.game.module.feed.controller.app.feed.vo.FeedStreamReqVO;
|
||||
import cn.wanxiang.game.module.feed.controller.app.feed.vo.FeedStreamRespVO;
|
||||
import cn.wanxiang.game.module.feed.controller.app.feed.vo.InteractResultRespVO;
|
||||
import cn.wanxiang.game.module.feed.controller.app.feed.vo.ShareMetaRespVO;
|
||||
import cn.wanxiang.game.module.feed.dal.dataobject.interact.FeedInteractLogDO;
|
||||
import cn.wanxiang.game.module.feed.dal.dataobject.rank.FeedRankDO;
|
||||
import cn.wanxiang.game.module.feed.dal.mysql.interact.FeedInteractLogMapper;
|
||||
import cn.wanxiang.game.module.feed.dal.mysql.rank.FeedRankMapper;
|
||||
import cn.iocoder.yudao.framework.common.exception.ServiceException;
|
||||
import cn.iocoder.yudao.framework.test.core.ut.BaseMockitoUnitTest;
|
||||
import org.junit.jupiter.api.Test;
|
||||
@ -21,7 +21,7 @@ import org.mockito.Spy;
|
||||
import java.math.BigDecimal;
|
||||
import java.util.Arrays;
|
||||
|
||||
import static cn.huijing.game.module.feed.enums.ErrorCodeConstants.*;
|
||||
import static cn.wanxiang.game.module.feed.enums.ErrorCodeConstants.*;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
import static org.mockito.ArgumentMatchers.any;
|
||||
import static org.mockito.ArgumentMatchers.anyString;
|
||||
@ -2,7 +2,7 @@
|
||||
<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">
|
||||
<!-- 父:沿用 yudao 聚合父 POM(groupId 复用 cn.iocoder.cloud 仅为 Maven 坐标;业务代码包名为 cn.huijing.game,拆仓时再改坐标) -->
|
||||
<!-- 父:沿用 yudao 聚合父 POM(groupId 复用 cn.iocoder.cloud 仅为 Maven 坐标;业务代码包名为 cn.wanxiang.game,拆仓时再改坐标) -->
|
||||
<parent>
|
||||
<groupId>cn.iocoder.cloud</groupId>
|
||||
<artifactId>yudao</artifactId>
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.project.enums;
|
||||
package cn.wanxiang.game.module.project.enums;
|
||||
|
||||
import cn.iocoder.yudao.framework.common.exception.ErrorCode;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.project.enums;
|
||||
package cn.wanxiang.game.module.project.enums;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.project.enums;
|
||||
package cn.wanxiang.game.module.project.enums;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
@ -1,12 +1,12 @@
|
||||
package cn.huijing.game.module.project.controller.admin.project;
|
||||
package cn.wanxiang.game.module.project.controller.admin.project;
|
||||
|
||||
import cn.huijing.game.module.project.controller.admin.project.vo.ProjectReviewPageReqVO;
|
||||
import cn.huijing.game.module.project.controller.admin.project.vo.ReviewReqVO;
|
||||
import cn.huijing.game.module.project.controller.app.project.vo.ProjectRespVO;
|
||||
import cn.huijing.game.module.project.convert.project.ProjectConvert;
|
||||
import cn.huijing.game.module.project.dal.dataobject.project.ProjectDO;
|
||||
import cn.huijing.game.module.project.enums.ProjectStatusEnum;
|
||||
import cn.huijing.game.module.project.service.project.ProjectService;
|
||||
import cn.wanxiang.game.module.project.controller.admin.project.vo.ProjectReviewPageReqVO;
|
||||
import cn.wanxiang.game.module.project.controller.admin.project.vo.ReviewReqVO;
|
||||
import cn.wanxiang.game.module.project.controller.app.project.vo.ProjectRespVO;
|
||||
import cn.wanxiang.game.module.project.convert.project.ProjectConvert;
|
||||
import cn.wanxiang.game.module.project.dal.dataobject.project.ProjectDO;
|
||||
import cn.wanxiang.game.module.project.enums.ProjectStatusEnum;
|
||||
import cn.wanxiang.game.module.project.service.project.ProjectService;
|
||||
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||
import cn.iocoder.yudao.framework.security.core.util.SecurityFrameworkUtils;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.project.controller.admin.project.vo;
|
||||
package cn.wanxiang.game.module.project.controller.admin.project.vo;
|
||||
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.project.controller.admin.project.vo;
|
||||
package cn.wanxiang.game.module.project.controller.admin.project.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
@ -1,13 +1,13 @@
|
||||
package cn.huijing.game.module.project.controller.app.project;
|
||||
package cn.wanxiang.game.module.project.controller.app.project;
|
||||
|
||||
import cn.huijing.game.module.project.controller.app.project.vo.ProjectCreateReqVO;
|
||||
import cn.huijing.game.module.project.controller.app.project.vo.ProjectDraftReqVO;
|
||||
import cn.huijing.game.module.project.controller.app.project.vo.ProjectPageReqVO;
|
||||
import cn.huijing.game.module.project.controller.app.project.vo.ProjectPublishReqVO;
|
||||
import cn.huijing.game.module.project.controller.app.project.vo.ProjectRespVO;
|
||||
import cn.huijing.game.module.project.convert.project.ProjectConvert;
|
||||
import cn.huijing.game.module.project.dal.dataobject.project.ProjectDO;
|
||||
import cn.huijing.game.module.project.service.project.ProjectService;
|
||||
import cn.wanxiang.game.module.project.controller.app.project.vo.ProjectCreateReqVO;
|
||||
import cn.wanxiang.game.module.project.controller.app.project.vo.ProjectDraftReqVO;
|
||||
import cn.wanxiang.game.module.project.controller.app.project.vo.ProjectPageReqVO;
|
||||
import cn.wanxiang.game.module.project.controller.app.project.vo.ProjectPublishReqVO;
|
||||
import cn.wanxiang.game.module.project.controller.app.project.vo.ProjectRespVO;
|
||||
import cn.wanxiang.game.module.project.convert.project.ProjectConvert;
|
||||
import cn.wanxiang.game.module.project.dal.dataobject.project.ProjectDO;
|
||||
import cn.wanxiang.game.module.project.service.project.ProjectService;
|
||||
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||
import cn.iocoder.yudao.framework.security.core.util.SecurityFrameworkUtils;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.project.controller.app.project.vo;
|
||||
package cn.wanxiang.game.module.project.controller.app.project.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.project.controller.app.project.vo;
|
||||
package cn.wanxiang.game.module.project.controller.app.project.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.Size;
|
||||
@ -23,7 +23,7 @@ public class ProjectDraftReqVO {
|
||||
@Size(max = 500, message = "简介不能超过 500 个字符")
|
||||
private String summary;
|
||||
|
||||
@Schema(description = "封面图 URL", example = "https://cdn.huijing.ai/cover/1.png")
|
||||
@Schema(description = "封面图 URL", example = "https://cdn.wanxiang.ai/cover/1.png")
|
||||
private String coverUrl;
|
||||
|
||||
@Schema(description = "标签(≤10 个)", example = "[\"放置\",\"经营\"]")
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.project.controller.app.project.vo;
|
||||
package cn.wanxiang.game.module.project.controller.app.project.vo;
|
||||
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.project.controller.app.project.vo;
|
||||
package cn.wanxiang.game.module.project.controller.app.project.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.project.controller.app.project.vo;
|
||||
package cn.wanxiang.game.module.project.controller.app.project.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
@ -1,7 +1,7 @@
|
||||
package cn.huijing.game.module.project.convert.project;
|
||||
package cn.wanxiang.game.module.project.convert.project;
|
||||
|
||||
import cn.huijing.game.module.project.controller.app.project.vo.ProjectRespVO;
|
||||
import cn.huijing.game.module.project.dal.dataobject.project.ProjectDO;
|
||||
import cn.wanxiang.game.module.project.controller.app.project.vo.ProjectRespVO;
|
||||
import cn.wanxiang.game.module.project.dal.dataobject.project.ProjectDO;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||
import org.springframework.util.StringUtils;
|
||||
@ -1,6 +1,6 @@
|
||||
package cn.huijing.game.module.project.dal.dataobject.project;
|
||||
package cn.wanxiang.game.module.project.dal.dataobject.project;
|
||||
|
||||
import cn.huijing.game.module.project.enums.ProjectStatusEnum;
|
||||
import cn.wanxiang.game.module.project.enums.ProjectStatusEnum;
|
||||
import cn.iocoder.yudao.framework.tenant.core.db.TenantBaseDO;
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.project.dal.dataobject.review;
|
||||
package cn.wanxiang.game.module.project.dal.dataobject.review;
|
||||
|
||||
import cn.iocoder.yudao.framework.tenant.core.db.TenantBaseDO;
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
@ -38,7 +38,7 @@ public class ReviewRecordDO extends TenantBaseDO {
|
||||
/**
|
||||
* 审核决策:1通过 2拒绝 3下架
|
||||
*
|
||||
* 枚举 {@link cn.huijing.game.module.project.enums.ReviewDecisionEnum}
|
||||
* 枚举 {@link cn.wanxiang.game.module.project.enums.ReviewDecisionEnum}
|
||||
*/
|
||||
private Integer decision;
|
||||
/**
|
||||
@ -1,8 +1,8 @@
|
||||
package cn.huijing.game.module.project.dal.mysql.project;
|
||||
package cn.wanxiang.game.module.project.dal.mysql.project;
|
||||
|
||||
import cn.huijing.game.module.project.controller.admin.project.vo.ProjectReviewPageReqVO;
|
||||
import cn.huijing.game.module.project.controller.app.project.vo.ProjectPageReqVO;
|
||||
import cn.huijing.game.module.project.dal.dataobject.project.ProjectDO;
|
||||
import cn.wanxiang.game.module.project.controller.admin.project.vo.ProjectReviewPageReqVO;
|
||||
import cn.wanxiang.game.module.project.controller.app.project.vo.ProjectPageReqVO;
|
||||
import cn.wanxiang.game.module.project.dal.dataobject.project.ProjectDO;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
@ -1,6 +1,6 @@
|
||||
package cn.huijing.game.module.project.dal.mysql.review;
|
||||
package cn.wanxiang.game.module.project.dal.mysql.review;
|
||||
|
||||
import cn.huijing.game.module.project.dal.dataobject.review.ReviewRecordDO;
|
||||
import cn.wanxiang.game.module.project.dal.dataobject.review.ReviewRecordDO;
|
||||
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
package cn.huijing.game.module.project.service.project;
|
||||
package cn.wanxiang.game.module.project.service.project;
|
||||
|
||||
import cn.huijing.game.module.project.controller.admin.project.vo.ProjectReviewPageReqVO;
|
||||
import cn.huijing.game.module.project.controller.admin.project.vo.ReviewReqVO;
|
||||
import cn.huijing.game.module.project.controller.app.project.vo.ProjectCreateReqVO;
|
||||
import cn.huijing.game.module.project.controller.app.project.vo.ProjectDraftReqVO;
|
||||
import cn.huijing.game.module.project.controller.app.project.vo.ProjectPageReqVO;
|
||||
import cn.huijing.game.module.project.controller.app.project.vo.ProjectPublishReqVO;
|
||||
import cn.huijing.game.module.project.dal.dataobject.project.ProjectDO;
|
||||
import cn.wanxiang.game.module.project.controller.admin.project.vo.ProjectReviewPageReqVO;
|
||||
import cn.wanxiang.game.module.project.controller.admin.project.vo.ReviewReqVO;
|
||||
import cn.wanxiang.game.module.project.controller.app.project.vo.ProjectCreateReqVO;
|
||||
import cn.wanxiang.game.module.project.controller.app.project.vo.ProjectDraftReqVO;
|
||||
import cn.wanxiang.game.module.project.controller.app.project.vo.ProjectPageReqVO;
|
||||
import cn.wanxiang.game.module.project.controller.app.project.vo.ProjectPublishReqVO;
|
||||
import cn.wanxiang.game.module.project.dal.dataobject.project.ProjectDO;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||
|
||||
/**
|
||||
@ -1,18 +1,18 @@
|
||||
package cn.huijing.game.module.project.service.project;
|
||||
package cn.wanxiang.game.module.project.service.project;
|
||||
|
||||
import cn.huijing.game.module.project.controller.admin.project.vo.ProjectReviewPageReqVO;
|
||||
import cn.huijing.game.module.project.controller.admin.project.vo.ReviewReqVO;
|
||||
import cn.huijing.game.module.project.controller.app.project.vo.ProjectCreateReqVO;
|
||||
import cn.huijing.game.module.project.controller.app.project.vo.ProjectDraftReqVO;
|
||||
import cn.huijing.game.module.project.controller.app.project.vo.ProjectPageReqVO;
|
||||
import cn.huijing.game.module.project.controller.app.project.vo.ProjectPublishReqVO;
|
||||
import cn.huijing.game.module.project.convert.project.ProjectConvert;
|
||||
import cn.huijing.game.module.project.dal.dataobject.project.ProjectDO;
|
||||
import cn.huijing.game.module.project.dal.dataobject.review.ReviewRecordDO;
|
||||
import cn.huijing.game.module.project.dal.mysql.project.ProjectMapper;
|
||||
import cn.huijing.game.module.project.dal.mysql.review.ReviewRecordMapper;
|
||||
import cn.huijing.game.module.project.enums.ProjectStatusEnum;
|
||||
import cn.huijing.game.module.project.enums.ReviewDecisionEnum;
|
||||
import cn.wanxiang.game.module.project.controller.admin.project.vo.ProjectReviewPageReqVO;
|
||||
import cn.wanxiang.game.module.project.controller.admin.project.vo.ReviewReqVO;
|
||||
import cn.wanxiang.game.module.project.controller.app.project.vo.ProjectCreateReqVO;
|
||||
import cn.wanxiang.game.module.project.controller.app.project.vo.ProjectDraftReqVO;
|
||||
import cn.wanxiang.game.module.project.controller.app.project.vo.ProjectPageReqVO;
|
||||
import cn.wanxiang.game.module.project.controller.app.project.vo.ProjectPublishReqVO;
|
||||
import cn.wanxiang.game.module.project.convert.project.ProjectConvert;
|
||||
import cn.wanxiang.game.module.project.dal.dataobject.project.ProjectDO;
|
||||
import cn.wanxiang.game.module.project.dal.dataobject.review.ReviewRecordDO;
|
||||
import cn.wanxiang.game.module.project.dal.mysql.project.ProjectMapper;
|
||||
import cn.wanxiang.game.module.project.dal.mysql.review.ReviewRecordMapper;
|
||||
import cn.wanxiang.game.module.project.enums.ProjectStatusEnum;
|
||||
import cn.wanxiang.game.module.project.enums.ReviewDecisionEnum;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||
import jakarta.annotation.Resource;
|
||||
@ -22,7 +22,7 @@ import org.springframework.util.StringUtils;
|
||||
|
||||
import java.util.Objects;
|
||||
|
||||
import static cn.huijing.game.module.project.enums.ErrorCodeConstants.*;
|
||||
import static cn.wanxiang.game.module.project.enums.ErrorCodeConstants.*;
|
||||
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||
|
||||
/**
|
||||
@ -1,14 +1,14 @@
|
||||
package cn.huijing.game.module.project.service.project;
|
||||
package cn.wanxiang.game.module.project.service.project;
|
||||
|
||||
import cn.huijing.game.module.project.controller.admin.project.vo.ReviewReqVO;
|
||||
import cn.huijing.game.module.project.controller.app.project.vo.ProjectCreateReqVO;
|
||||
import cn.huijing.game.module.project.controller.app.project.vo.ProjectDraftReqVO;
|
||||
import cn.huijing.game.module.project.controller.app.project.vo.ProjectPublishReqVO;
|
||||
import cn.huijing.game.module.project.dal.dataobject.project.ProjectDO;
|
||||
import cn.huijing.game.module.project.dal.dataobject.review.ReviewRecordDO;
|
||||
import cn.huijing.game.module.project.dal.mysql.project.ProjectMapper;
|
||||
import cn.huijing.game.module.project.dal.mysql.review.ReviewRecordMapper;
|
||||
import cn.huijing.game.module.project.enums.ProjectStatusEnum;
|
||||
import cn.wanxiang.game.module.project.controller.admin.project.vo.ReviewReqVO;
|
||||
import cn.wanxiang.game.module.project.controller.app.project.vo.ProjectCreateReqVO;
|
||||
import cn.wanxiang.game.module.project.controller.app.project.vo.ProjectDraftReqVO;
|
||||
import cn.wanxiang.game.module.project.controller.app.project.vo.ProjectPublishReqVO;
|
||||
import cn.wanxiang.game.module.project.dal.dataobject.project.ProjectDO;
|
||||
import cn.wanxiang.game.module.project.dal.dataobject.review.ReviewRecordDO;
|
||||
import cn.wanxiang.game.module.project.dal.mysql.project.ProjectMapper;
|
||||
import cn.wanxiang.game.module.project.dal.mysql.review.ReviewRecordMapper;
|
||||
import cn.wanxiang.game.module.project.enums.ProjectStatusEnum;
|
||||
import cn.iocoder.yudao.framework.common.exception.ServiceException;
|
||||
import cn.iocoder.yudao.framework.test.core.ut.BaseMockitoUnitTest;
|
||||
import org.junit.jupiter.api.Test;
|
||||
@ -16,7 +16,7 @@ import org.mockito.ArgumentCaptor;
|
||||
import org.mockito.InjectMocks;
|
||||
import org.mockito.Mock;
|
||||
|
||||
import static cn.huijing.game.module.project.enums.ErrorCodeConstants.*;
|
||||
import static cn.wanxiang.game.module.project.enums.ErrorCodeConstants.*;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
import static org.mockito.ArgumentMatchers.any;
|
||||
import static org.mockito.Mockito.*;
|
||||
@ -2,7 +2,7 @@
|
||||
<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">
|
||||
<!-- 父:沿用 yudao 聚合父 POM(groupId 复用 cn.iocoder.cloud 仅为 Maven 坐标;业务代码包名为 cn.huijing.game,拆仓时再改坐标) -->
|
||||
<!-- 父:沿用 yudao 聚合父 POM(groupId 复用 cn.iocoder.cloud 仅为 Maven 坐标;业务代码包名为 cn.wanxiang.game,拆仓时再改坐标) -->
|
||||
<parent>
|
||||
<groupId>cn.iocoder.cloud</groupId>
|
||||
<artifactId>yudao</artifactId>
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.runtime.enums;
|
||||
package cn.wanxiang.game.module.runtime.enums;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.runtime.enums;
|
||||
package cn.wanxiang.game.module.runtime.enums;
|
||||
|
||||
import cn.iocoder.yudao.framework.common.exception.ErrorCode;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.runtime.enums;
|
||||
package cn.wanxiang.game.module.runtime.enums;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.runtime.enums;
|
||||
package cn.wanxiang.game.module.runtime.enums;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.runtime.enums;
|
||||
package cn.wanxiang.game.module.runtime.enums;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
@ -1,16 +1,16 @@
|
||||
package cn.huijing.game.module.runtime.controller.admin.runtime;
|
||||
package cn.wanxiang.game.module.runtime.controller.admin.runtime;
|
||||
|
||||
import cn.huijing.game.module.runtime.controller.admin.runtime.vo.BuildRespVO;
|
||||
import cn.huijing.game.module.runtime.controller.admin.runtime.vo.CompileReqVO;
|
||||
import cn.huijing.game.module.runtime.controller.admin.runtime.vo.CompileRespVO;
|
||||
import cn.huijing.game.module.runtime.controller.admin.runtime.vo.SessionPageReqVO;
|
||||
import cn.huijing.game.module.runtime.controller.admin.runtime.vo.SessionRespVO;
|
||||
import cn.huijing.game.module.runtime.convert.runtime.RuntimeConvert;
|
||||
import cn.huijing.game.module.runtime.dal.dataobject.build.RuntimeBuildDO;
|
||||
import cn.huijing.game.module.runtime.dal.dataobject.session.RuntimeSessionDO;
|
||||
import cn.huijing.game.module.runtime.service.build.RuntimeBuildService;
|
||||
import cn.huijing.game.module.runtime.service.pkg.RuntimePackageService;
|
||||
import cn.huijing.game.module.runtime.service.session.RuntimeSessionService;
|
||||
import cn.wanxiang.game.module.runtime.controller.admin.runtime.vo.BuildRespVO;
|
||||
import cn.wanxiang.game.module.runtime.controller.admin.runtime.vo.CompileReqVO;
|
||||
import cn.wanxiang.game.module.runtime.controller.admin.runtime.vo.CompileRespVO;
|
||||
import cn.wanxiang.game.module.runtime.controller.admin.runtime.vo.SessionPageReqVO;
|
||||
import cn.wanxiang.game.module.runtime.controller.admin.runtime.vo.SessionRespVO;
|
||||
import cn.wanxiang.game.module.runtime.convert.runtime.RuntimeConvert;
|
||||
import cn.wanxiang.game.module.runtime.dal.dataobject.build.RuntimeBuildDO;
|
||||
import cn.wanxiang.game.module.runtime.dal.dataobject.session.RuntimeSessionDO;
|
||||
import cn.wanxiang.game.module.runtime.service.build.RuntimeBuildService;
|
||||
import cn.wanxiang.game.module.runtime.service.pkg.RuntimePackageService;
|
||||
import cn.wanxiang.game.module.runtime.service.session.RuntimeSessionService;
|
||||
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||
import io.swagger.v3.oas.annotations.Operation;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.runtime.controller.admin.runtime.vo;
|
||||
package cn.wanxiang.game.module.runtime.controller.admin.runtime.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.runtime.controller.admin.runtime.vo;
|
||||
package cn.wanxiang.game.module.runtime.controller.admin.runtime.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.runtime.controller.admin.runtime.vo;
|
||||
package cn.wanxiang.game.module.runtime.controller.admin.runtime.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.runtime.controller.admin.runtime.vo;
|
||||
package cn.wanxiang.game.module.runtime.controller.admin.runtime.vo;
|
||||
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageParam;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.runtime.controller.admin.runtime.vo;
|
||||
package cn.wanxiang.game.module.runtime.controller.admin.runtime.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
@ -1,15 +1,15 @@
|
||||
package cn.huijing.game.module.runtime.controller.app.runtime;
|
||||
package cn.wanxiang.game.module.runtime.controller.app.runtime;
|
||||
|
||||
import cn.huijing.game.module.runtime.controller.app.runtime.vo.RuntimePackageRespVO;
|
||||
import cn.huijing.game.module.runtime.controller.app.runtime.vo.SessionEndReqVO;
|
||||
import cn.huijing.game.module.runtime.controller.app.runtime.vo.SessionStartReqVO;
|
||||
import cn.huijing.game.module.runtime.controller.app.runtime.vo.SessionStartRespVO;
|
||||
import cn.huijing.game.module.runtime.convert.runtime.RuntimeConvert;
|
||||
import cn.huijing.game.module.runtime.dal.dataobject.pkg.RuntimePackageDO;
|
||||
import cn.huijing.game.module.runtime.dal.dataobject.session.RuntimeSessionDO;
|
||||
import cn.huijing.game.module.runtime.enums.RuntimeSceneEnum;
|
||||
import cn.huijing.game.module.runtime.service.pkg.RuntimePackageService;
|
||||
import cn.huijing.game.module.runtime.service.session.RuntimeSessionService;
|
||||
import cn.wanxiang.game.module.runtime.controller.app.runtime.vo.RuntimePackageRespVO;
|
||||
import cn.wanxiang.game.module.runtime.controller.app.runtime.vo.SessionEndReqVO;
|
||||
import cn.wanxiang.game.module.runtime.controller.app.runtime.vo.SessionStartReqVO;
|
||||
import cn.wanxiang.game.module.runtime.controller.app.runtime.vo.SessionStartRespVO;
|
||||
import cn.wanxiang.game.module.runtime.convert.runtime.RuntimeConvert;
|
||||
import cn.wanxiang.game.module.runtime.dal.dataobject.pkg.RuntimePackageDO;
|
||||
import cn.wanxiang.game.module.runtime.dal.dataobject.session.RuntimeSessionDO;
|
||||
import cn.wanxiang.game.module.runtime.enums.RuntimeSceneEnum;
|
||||
import cn.wanxiang.game.module.runtime.service.pkg.RuntimePackageService;
|
||||
import cn.wanxiang.game.module.runtime.service.session.RuntimeSessionService;
|
||||
import cn.iocoder.yudao.framework.common.pojo.CommonResult;
|
||||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||
import cn.iocoder.yudao.framework.security.core.util.SecurityFrameworkUtils;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.runtime.controller.app.runtime.vo;
|
||||
package cn.wanxiang.game.module.runtime.controller.app.runtime.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
@ -29,7 +29,7 @@ public class RuntimePackageRespVO {
|
||||
@Schema(description = "入口文件相对路径(#4 manifest.entry)", example = "index.html")
|
||||
private String entry;
|
||||
|
||||
@Schema(description = "目标 HuijingGameSDK / Canvas Runtime 版本(semver)", example = "1.0.0")
|
||||
@Schema(description = "目标 WanxiangGameSDK / Canvas Runtime 版本(semver)", example = "1.0.0")
|
||||
private String runtimeVersion;
|
||||
|
||||
@Schema(description = "预加载策略:eager / lazy(#4 manifest.preloadPolicy)", example = "lazy")
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.runtime.controller.app.runtime.vo;
|
||||
package cn.wanxiang.game.module.runtime.controller.app.runtime.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.runtime.controller.app.runtime.vo;
|
||||
package cn.wanxiang.game.module.runtime.controller.app.runtime.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotNull;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.runtime.controller.app.runtime.vo;
|
||||
package cn.wanxiang.game.module.runtime.controller.app.runtime.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
@ -1,4 +1,4 @@
|
||||
package cn.huijing.game.module.runtime.controller.app.runtime.vo;
|
||||
package cn.wanxiang.game.module.runtime.controller.app.runtime.vo;
|
||||
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
@ -1,12 +1,12 @@
|
||||
package cn.huijing.game.module.runtime.convert.runtime;
|
||||
package cn.wanxiang.game.module.runtime.convert.runtime;
|
||||
|
||||
import cn.huijing.game.module.runtime.controller.admin.runtime.vo.BuildRespVO;
|
||||
import cn.huijing.game.module.runtime.controller.admin.runtime.vo.SessionRespVO;
|
||||
import cn.huijing.game.module.runtime.controller.app.runtime.vo.RuntimePackageRespVO;
|
||||
import cn.huijing.game.module.runtime.controller.app.runtime.vo.SandboxPolicyVO;
|
||||
import cn.huijing.game.module.runtime.dal.dataobject.build.RuntimeBuildDO;
|
||||
import cn.huijing.game.module.runtime.dal.dataobject.pkg.RuntimePackageDO;
|
||||
import cn.huijing.game.module.runtime.dal.dataobject.session.RuntimeSessionDO;
|
||||
import cn.wanxiang.game.module.runtime.controller.admin.runtime.vo.BuildRespVO;
|
||||
import cn.wanxiang.game.module.runtime.controller.admin.runtime.vo.SessionRespVO;
|
||||
import cn.wanxiang.game.module.runtime.controller.app.runtime.vo.RuntimePackageRespVO;
|
||||
import cn.wanxiang.game.module.runtime.controller.app.runtime.vo.SandboxPolicyVO;
|
||||
import cn.wanxiang.game.module.runtime.dal.dataobject.build.RuntimeBuildDO;
|
||||
import cn.wanxiang.game.module.runtime.dal.dataobject.pkg.RuntimePackageDO;
|
||||
import cn.wanxiang.game.module.runtime.dal.dataobject.session.RuntimeSessionDO;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||
import cn.iocoder.yudao.framework.common.util.object.BeanUtils;
|
||||
import org.springframework.util.StringUtils;
|
||||
@ -1,6 +1,6 @@
|
||||
package cn.huijing.game.module.runtime.dal.dataobject.pkg;
|
||||
package cn.wanxiang.game.module.runtime.dal.dataobject.pkg;
|
||||
|
||||
import cn.huijing.game.module.runtime.enums.PackageStatusEnum;
|
||||
import cn.wanxiang.game.module.runtime.enums.PackageStatusEnum;
|
||||
import cn.iocoder.yudao.framework.tenant.core.db.TenantBaseDO;
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
@ -49,7 +49,7 @@ public class RuntimePackageDO extends TenantBaseDO {
|
||||
*/
|
||||
private String entry;
|
||||
/**
|
||||
* 目标 HuijingGameSDK / Canvas Runtime 版本(semver,#4 manifest.runtimeVersion)
|
||||
* 目标 WanxiangGameSDK / Canvas Runtime 版本(semver,#4 manifest.runtimeVersion)
|
||||
*/
|
||||
private String runtimeVersion;
|
||||
/**
|
||||
@ -1,6 +1,6 @@
|
||||
package cn.huijing.game.module.runtime.dal.dataobject.session;
|
||||
package cn.wanxiang.game.module.runtime.dal.dataobject.session;
|
||||
|
||||
import cn.huijing.game.module.runtime.enums.SessionStatusEnum;
|
||||
import cn.wanxiang.game.module.runtime.enums.SessionStatusEnum;
|
||||
import cn.iocoder.yudao.framework.tenant.core.db.TenantBaseDO;
|
||||
import com.baomidou.mybatisplus.annotation.KeySequence;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
@ -1,6 +1,6 @@
|
||||
package cn.huijing.game.module.runtime.dal.mysql.pkg;
|
||||
package cn.wanxiang.game.module.runtime.dal.mysql.pkg;
|
||||
|
||||
import cn.huijing.game.module.runtime.dal.dataobject.pkg.RuntimePackageDO;
|
||||
import cn.wanxiang.game.module.runtime.dal.dataobject.pkg.RuntimePackageDO;
|
||||
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
@ -1,7 +1,7 @@
|
||||
package cn.huijing.game.module.runtime.dal.mysql.session;
|
||||
package cn.wanxiang.game.module.runtime.dal.mysql.session;
|
||||
|
||||
import cn.huijing.game.module.runtime.controller.admin.runtime.vo.SessionPageReqVO;
|
||||
import cn.huijing.game.module.runtime.dal.dataobject.session.RuntimeSessionDO;
|
||||
import cn.wanxiang.game.module.runtime.controller.admin.runtime.vo.SessionPageReqVO;
|
||||
import cn.wanxiang.game.module.runtime.dal.dataobject.session.RuntimeSessionDO;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||
import cn.iocoder.yudao.framework.mybatis.core.mapper.BaseMapperX;
|
||||
import cn.iocoder.yudao.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
@ -1,6 +1,6 @@
|
||||
package cn.huijing.game.module.runtime.service.pkg;
|
||||
package cn.wanxiang.game.module.runtime.service.pkg;
|
||||
|
||||
import cn.huijing.game.module.runtime.dal.dataobject.pkg.RuntimePackageDO;
|
||||
import cn.wanxiang.game.module.runtime.dal.dataobject.pkg.RuntimePackageDO;
|
||||
|
||||
/**
|
||||
* 版本运行包 Service 接口
|
||||
@ -1,16 +1,16 @@
|
||||
package cn.huijing.game.module.runtime.service.pkg;
|
||||
package cn.wanxiang.game.module.runtime.service.pkg;
|
||||
|
||||
import cn.huijing.game.module.runtime.dal.dataobject.pkg.RuntimePackageDO;
|
||||
import cn.huijing.game.module.runtime.dal.mysql.pkg.RuntimePackageMapper;
|
||||
import cn.huijing.game.module.runtime.enums.PackageStatusEnum;
|
||||
import cn.huijing.game.module.runtime.enums.RuntimeSceneEnum;
|
||||
import cn.wanxiang.game.module.runtime.dal.dataobject.pkg.RuntimePackageDO;
|
||||
import cn.wanxiang.game.module.runtime.dal.mysql.pkg.RuntimePackageMapper;
|
||||
import cn.wanxiang.game.module.runtime.enums.PackageStatusEnum;
|
||||
import cn.wanxiang.game.module.runtime.enums.RuntimeSceneEnum;
|
||||
import jakarta.annotation.Resource;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import static cn.huijing.game.module.runtime.enums.ErrorCodeConstants.RUNTIME_PACKAGE_NOT_PUBLISHED;
|
||||
import static cn.huijing.game.module.runtime.enums.ErrorCodeConstants.RUNTIME_PACKAGE_NOT_READY;
|
||||
import static cn.huijing.game.module.runtime.enums.ErrorCodeConstants.RUNTIME_PACKAGE_PREVIEW_NOT_OWNER;
|
||||
import static cn.wanxiang.game.module.runtime.enums.ErrorCodeConstants.RUNTIME_PACKAGE_NOT_PUBLISHED;
|
||||
import static cn.wanxiang.game.module.runtime.enums.ErrorCodeConstants.RUNTIME_PACKAGE_NOT_READY;
|
||||
import static cn.wanxiang.game.module.runtime.enums.ErrorCodeConstants.RUNTIME_PACKAGE_PREVIEW_NOT_OWNER;
|
||||
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||
|
||||
/**
|
||||
@ -1,9 +1,9 @@
|
||||
package cn.huijing.game.module.runtime.service.session;
|
||||
package cn.wanxiang.game.module.runtime.service.session;
|
||||
|
||||
import cn.huijing.game.module.runtime.controller.admin.runtime.vo.SessionPageReqVO;
|
||||
import cn.huijing.game.module.runtime.controller.app.runtime.vo.SessionEndReqVO;
|
||||
import cn.huijing.game.module.runtime.controller.app.runtime.vo.SessionStartReqVO;
|
||||
import cn.huijing.game.module.runtime.dal.dataobject.session.RuntimeSessionDO;
|
||||
import cn.wanxiang.game.module.runtime.controller.admin.runtime.vo.SessionPageReqVO;
|
||||
import cn.wanxiang.game.module.runtime.controller.app.runtime.vo.SessionEndReqVO;
|
||||
import cn.wanxiang.game.module.runtime.controller.app.runtime.vo.SessionStartReqVO;
|
||||
import cn.wanxiang.game.module.runtime.dal.dataobject.session.RuntimeSessionDO;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||
|
||||
/**
|
||||
@ -1,12 +1,12 @@
|
||||
package cn.huijing.game.module.runtime.service.session;
|
||||
package cn.wanxiang.game.module.runtime.service.session;
|
||||
|
||||
import cn.huijing.game.module.runtime.controller.admin.runtime.vo.SessionPageReqVO;
|
||||
import cn.huijing.game.module.runtime.controller.app.runtime.vo.SessionEndReqVO;
|
||||
import cn.huijing.game.module.runtime.controller.app.runtime.vo.SessionStartReqVO;
|
||||
import cn.huijing.game.module.runtime.dal.dataobject.session.RuntimeSessionDO;
|
||||
import cn.huijing.game.module.runtime.dal.mysql.session.RuntimeSessionMapper;
|
||||
import cn.huijing.game.module.runtime.enums.RuntimeSceneEnum;
|
||||
import cn.huijing.game.module.runtime.enums.SessionStatusEnum;
|
||||
import cn.wanxiang.game.module.runtime.controller.admin.runtime.vo.SessionPageReqVO;
|
||||
import cn.wanxiang.game.module.runtime.controller.app.runtime.vo.SessionEndReqVO;
|
||||
import cn.wanxiang.game.module.runtime.controller.app.runtime.vo.SessionStartReqVO;
|
||||
import cn.wanxiang.game.module.runtime.dal.dataobject.session.RuntimeSessionDO;
|
||||
import cn.wanxiang.game.module.runtime.dal.mysql.session.RuntimeSessionMapper;
|
||||
import cn.wanxiang.game.module.runtime.enums.RuntimeSceneEnum;
|
||||
import cn.wanxiang.game.module.runtime.enums.SessionStatusEnum;
|
||||
import cn.iocoder.yudao.framework.common.pojo.PageResult;
|
||||
import jakarta.annotation.Resource;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
@ -16,7 +16,7 @@ import org.springframework.util.StringUtils;
|
||||
import java.time.Duration;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import static cn.huijing.game.module.runtime.enums.ErrorCodeConstants.RUNTIME_SESSION_NOT_EXISTS;
|
||||
import static cn.wanxiang.game.module.runtime.enums.ErrorCodeConstants.RUNTIME_SESSION_NOT_EXISTS;
|
||||
import static cn.iocoder.yudao.framework.common.exception.util.ServiceExceptionUtil.exception;
|
||||
|
||||
/**
|
||||
@ -1,9 +1,9 @@
|
||||
package cn.huijing.game.module.runtime.service.pkg;
|
||||
package cn.wanxiang.game.module.runtime.service.pkg;
|
||||
|
||||
import cn.huijing.game.module.runtime.dal.dataobject.pkg.RuntimePackageDO;
|
||||
import cn.huijing.game.module.runtime.dal.mysql.pkg.RuntimePackageMapper;
|
||||
import cn.huijing.game.module.runtime.enums.PackageStatusEnum;
|
||||
import cn.huijing.game.module.runtime.enums.RuntimeSceneEnum;
|
||||
import cn.wanxiang.game.module.runtime.dal.dataobject.pkg.RuntimePackageDO;
|
||||
import cn.wanxiang.game.module.runtime.dal.mysql.pkg.RuntimePackageMapper;
|
||||
import cn.wanxiang.game.module.runtime.enums.PackageStatusEnum;
|
||||
import cn.wanxiang.game.module.runtime.enums.RuntimeSceneEnum;
|
||||
import cn.iocoder.yudao.framework.common.exception.ServiceException;
|
||||
import cn.iocoder.yudao.framework.test.core.ut.BaseMockitoUnitTest;
|
||||
import org.junit.jupiter.api.Test;
|
||||
@ -11,7 +11,7 @@ import org.mockito.ArgumentCaptor;
|
||||
import org.mockito.InjectMocks;
|
||||
import org.mockito.Mock;
|
||||
|
||||
import static cn.huijing.game.module.runtime.enums.ErrorCodeConstants.*;
|
||||
import static cn.wanxiang.game.module.runtime.enums.ErrorCodeConstants.*;
|
||||
import static org.junit.jupiter.api.Assertions.*;
|
||||
import static org.mockito.ArgumentMatchers.any;
|
||||
import static org.mockito.Mockito.*;
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user