forked from opentiny/tiny-engine-backend-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathComponent.java
More file actions
127 lines (99 loc) · 3.97 KB
/
Component.java
File metadata and controls
127 lines (99 loc) · 3.97 KB
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
/**
* Copyright (c) 2023 - present TinyEngine Authors.
* Copyright (c) 2023 - present Huawei Cloud Computing Technologies Co., Ltd.
*
* Use of this source code is governed by an MIT-style license.
*
* THE OPEN SOURCE SOFTWARE IN THIS PRODUCT IS DISTRIBUTED IN THE HOPE THAT IT WILL BE USEFUL,
* BUT WITHOUT ANY WARRANTY, WITHOUT EVEN THE IMPLIED WARRANTY OF MERCHANTABILITY OR FITNESS FOR
* A PARTICULAR PURPOSE. SEE THE APPLICABLE LICENSES FOR MORE DETAILS.
*
*/
package com.tinyengine.it.model.entity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.tinyengine.it.common.base.BaseEntity;
import com.tinyengine.it.common.handler.ListTypeHandler;
import com.tinyengine.it.common.handler.MapTypeHandler;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;
import java.util.List;
import java.util.Map;
/**
* <p>
* 组件表
* </p>
*
* @author lu -yg
* @since 2024-10-17
*/
@Getter
@Setter
@TableName("t_component")
@Schema(name = "Component", description = "组件表")
public class Component extends BaseEntity {
@Schema(name = "version", description = "版本")
private String version;
@TableField(typeHandler = MapTypeHandler.class)
@Schema(name = "name", description = "名称")
private Map<String, String> name;
@Schema(name = "component", description = "组件")
@TableField(value = "name_en")
private String component;
@Schema(name = "icon", description = "组件图标")
private String icon;
@Schema(name = "description", description = "描述")
private String description;
@Schema(name = "docUrl", description = "文档链接")
private String docUrl;
@Schema(name = "screenshot", description = "缩略图")
private String screenshot;
@Schema(name = "tags", description = "标签")
private String tags;
@Schema(name = "keywords", description = "关键字")
private String keywords;
@Schema(name = "devMode", description = "研发模式")
private String devMode;
@TableField(typeHandler = MapTypeHandler.class)
@Schema(name = "npm", description = "npm信息")
private Map<String, Object> npm;
@Schema(name = "group", description = "分组")
@TableField(value = "`group`")
private String group;
@Schema(name = "category", description = "分类")
private String category;
@Schema(name = "priority", description = "排序")
private Integer priority;
@TableField(typeHandler = ListTypeHandler.class)
@Schema(name = "snippets", description = "schema片段")
private List<Map<String, Object>> snippets;
@TableField(typeHandler = MapTypeHandler.class)
@Schema(name = "schemaFragment", description = "schema片段")
private Map<String, Object> schemaFragment;
@Schema(name = "configure", description = "配置信息")
@JsonProperty("configure")
@TableField(typeHandler = MapTypeHandler.class)
private Map<String, Object> configure;
@JsonProperty("public")
@Schema(name = "public", description = "公开状态:0,1,2")
@TableField(value = "public")
private Integer publicStatus;
@Schema(name = "framework", description = "技术栈")
@TableField(value = "framework")
private String framework;
@Schema(name = "isOfficial", description = "标识官方组件")
private Boolean isOfficial;
@Schema(name = "isDefault", description = "标识默认组件")
private Boolean isDefault;
@Schema(name = "isTinyReserved", description = "是否tiny自有")
@TableField(value = "tiny_reserved")
private Boolean isTinyReserved;
@JsonProperty("component_metadata")
@TableField(typeHandler = MapTypeHandler.class)
@Schema(name = "component_metadata", description = "属性信息")
private Map<String, Object> componentMetadata;
@Schema(name = "libraryId", description = "关联组件库id")
private Integer libraryId;
}