feat(printer): 添加打印机指引图片管理功能

- 新增 PrinterGuideEntity 实体类定义数据库表结构
- 创建 PrinterGuideMapper 数据访问接口及实现方法
- 在 AppPrinterController 中添加移动端查询已启用指引图片接口
- 在 PrinterController 中添加 PC 端指引图片管理完整 CRUD 接口
- 扩展打印机服务层集成指引图片业务逻辑
- 调整订单支付完成后购买后逻辑触发机制
- 修改用户照片列表到打印机缓存时间从 60 秒延长至 24 小时
This commit is contained in:
2026-02-13 10:20:31 +08:00
parent 0cfa871e86
commit daa1436e55
6 changed files with 142 additions and 5 deletions

View File

@@ -0,0 +1,23 @@
package com.ycwl.basic.mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ycwl.basic.model.pc.printer.entity.PrinterGuideEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;
@Mapper
public interface PrinterGuideMapper extends BaseMapper<PrinterGuideEntity> {
List<PrinterGuideEntity> listByPrinterId(@Param("printerId") Integer printerId);
List<PrinterGuideEntity> listEnabledByPrinterId(@Param("printerId") Integer printerId);
int insertGuide(PrinterGuideEntity entity);
int deleteById(@Param("id") Integer id);
int updateSortOrder(@Param("id") Integer id, @Param("sortOrder") Integer sortOrder);
int toggleEnabled(@Param("id") Integer id);
}