You've already forked FrameTour-BE
feat(printer): 添加图片类型字段支持不同来源图片处理
- 在 MemberPrintEntity 和 MemberPrintResp 中新增 imageType 字段 - 根据 sourceId 自动设置图片类型为移动上传或普通照片 - 拼图类型图片明确标记为 PUZZLE 类型 - 修改图片来源判断逻辑从 sourceId 改为 imageType 字段 - 更新数据库映射文件添加 image_type 字段映射
This commit is contained in:
@@ -16,6 +16,7 @@ public class MemberPrintEntity {
|
||||
private Long memberId;
|
||||
private Long faceId;
|
||||
private Long sourceId;
|
||||
private String imageType;
|
||||
private String origUrl;
|
||||
private String cropUrl;
|
||||
private String printUrl;
|
||||
|
||||
@@ -9,6 +9,7 @@ public class MemberPrintResp {
|
||||
private Integer id;
|
||||
private Long scenicId;
|
||||
private Long sourceId;
|
||||
private String imageType;
|
||||
private String scenicName;
|
||||
private Long faceId;
|
||||
private Long memberId;
|
||||
|
||||
Reference in New Issue
Block a user