refactor(puzzle): 重构拼图功能实现会员拼图关联管理

- 移除原有的图片裁切功能和userArea字段
- 删除originalImageUrl字段,统一使用resultImageUrl
- 添加MemberPuzzleEntity实体类管理会员拼图关联关系
- 创建MemberPuzzleMapper接口及XML映射文件
- 实现PuzzleRelationProcessor处理器负责关联记录创建
- 在拼图生成完成后自动创建会员拼图关联记录
- 添加景区配置中的免费拼图数量设置
- 实现免费拼图逻辑控制
- 更新拼图模板和生成记录的数据结构
- 修改AppPuzzleController中图片URL的获取方式
- 优化PuzzleEdgeRenderTaskService中的图片处理流程
This commit is contained in:
2026-01-16 10:41:54 +08:00
parent fb4568721a
commit d15d070cb4
17 changed files with 295 additions and 123 deletions

View File

@@ -0,0 +1,21 @@
package com.ycwl.basic.model.pc.puzzle.entity;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
/**
* 会员拼图关联实体
* 记录人脸与拼图生成记录的关联关系,包含免费和购买状态
*/
@Data
@TableName("member_puzzle")
public class MemberPuzzleEntity {
private Long id;
private Long memberId;
private Long scenicId;
private Long faceId;
private Long recordId;
private Integer isBuy;
private Long orderId;
private Integer isFree;
}