zepengdev
2025-07-19 f6239d1029da4c51ba3b2cec790f7399a210a3df
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
package com.oying.modules.pc.product.service;
 
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.oying.modules.pc.product.domain.ProductImage;
import com.oying.modules.pc.product.domain.dto.ProductImageCreateRequest;
import com.oying.modules.pc.product.domain.dto.ProductImageQueryCriteria;
import com.oying.modules.pc.product.domain.dto.ProductImageUpdateRequest;
import com.oying.utils.PageResult;
 
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;
 
/**
 * @author lzp
 * @description 服务接口
 * @date 2025-05-28
 **/
public interface ProductImageService extends IService<ProductImage> {
 
    /**
     * 查询数据分页
     *
     * @param criteria 条件
     * @param page     分页参数
     * @return PageResult
     */
    PageResult<ProductImage> queryAll(ProductImageQueryCriteria criteria, Page<Object> page);
 
    /**
     * 查询所有数据不分页
     *
     * @param criteria 条件参数
     * @return List<ProductImageDto>
     */
    List<ProductImage> queryAll(ProductImageQueryCriteria criteria);
 
    /**
     * 查询多条ID关联数据
     *
     * @param ids /
     * @return List<ProductImage>
     */
    List<ProductImage> queryBatchIds(List<Long> ids);
 
    /**
     * 查询商品的所有图片
     *
     * @param productId /
     * @return List<ProductImage>
     */
    List<ProductImage> queryImagesByProductId(Long productId);
 
    /**
     * 创建
     *
     * @param request /
     */
    void create(ProductImageCreateRequest request);
 
    /**
     * 批量创建
     *
     * @param requests /
     */
    void batchCreate(List<ProductImageCreateRequest> requests);
 
    /**
     * 编辑
     *
     * @param request /
     */
    void update(ProductImageUpdateRequest request);
 
    /**
     * 编辑
     *
     * @param requests /
     */
    void batchUpdate(List<ProductImageUpdateRequest> requests);
 
    /**
     * 多选删除
     *
     * @param ids /
     */
    void deleteAll(List<Long> ids);
 
    /**
     * 导出数据
     *
     * @param all      待导出的数据
     * @param response /
     * @throws IOException /
     */
    void download(List<ProductImage> all, HttpServletResponse response) throws IOException;
}