xiangpei
2025-05-09 641b4a3b1572f3a75ce0bd7d645e34252237cf9c
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
package cn.lili.modules.search.entity.dos;
 
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;
 
import java.io.Serializable;
 
/**
 * 商品属性索引
 *
 * @author paulG
 * @since 2020/10/14
 **/
@Data
@NoArgsConstructor
public class EsGoodsAttribute implements Serializable {
 
    private static final long serialVersionUID = 4018042777559970062L;
 
    /**
     * 属性参数:0->规格;1->参数
     */
    @Field(type = FieldType.Integer)
    private Integer type;
 
    /**
     * 属性名称
     */
    private String nameId;
 
    /**
     * 属性名称
     */
    @Field(type = FieldType.Text, fielddata = true)
    private String name;
 
    /**
     * 属性值
     */
    @Field(type = FieldType.Text)
    private String valueId;
 
    /**
     * 属性值
     */
    @Field(type = FieldType.Text, fielddata = true)
    private String value;
 
 
    /**
     * 排序
     */
    @Field(type = FieldType.Integer)
    private Integer sort;
 
    public EsGoodsAttribute(Integer type, String nameId, String name, String valueId, String value, Integer sort) {
        this.type = type;
        this.nameId = nameId;
        this.name = name;
        this.valueId = valueId;
        this.value = value;
        this.sort = sort;
    }
}