aaa
doum
2026-06-08 3ac279c9df7181c9f21d35a689a321b990b87b22
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
package com.doumee.core.annotation.excel;
 
import lombok.Data;
 
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
 
/**
 * Excel 行内嵌图片(商品主图 / 商品多图列)
 */
@Data
public class RowEmbeddedImages {
 
    private EmbeddedImageItem mainImage;
    private List<EmbeddedImageItem> multiImages = new ArrayList<>();
 
    public static RowEmbeddedImages empty() {
        return new RowEmbeddedImages();
    }
 
    @Data
    public static class EmbeddedImageItem {
        private final byte[] data;
        private final String extension;
        private final int sortKey;
 
        public EmbeddedImageItem(byte[] data, String extension, int sortKey) {
            this.data = data;
            this.extension = extension;
            this.sortKey = sortKey;
        }
    }
}