forked from opentiny/tiny-engine-backend-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApp.java
More file actions
154 lines (116 loc) · 5.06 KB
/
App.java
File metadata and controls
154 lines (116 loc) · 5.06 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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
/**
* 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.time.LocalDateTime;
import java.util.List;
import java.util.Map;
/**
* <p>
* 应用表
* </p>
*
* @author zhangjuncao
* @since 2024-10-17
*/
@Getter
@Setter
@TableName("t_app")
@Schema(name = "App", description = "应用表")
public class App extends BaseEntity {
@Schema(name = "name", description = "应用名称")
private String name;
@Schema(name = "appWebsite", description = "*设计预留字段*")
private String appWebsite;
@Schema(name = "platformId", description = "设计器id")
@JsonProperty("platform")
private Integer platformId;
@Schema(name = "platformHistoryId", description = "关联设计器的历史版本ID")
private String platformHistoryId;
@Schema(name = "publishUrl", description = "应用静态资源托管地址URL")
private String publishUrl;
@Schema(name = "editorUrl", description = "设计器地址")
private String editorUrl;
@Schema(name = "visitUrl", description = "访问地址")
private String visitUrl;
@Schema(name = "imageUrl", description = "封面图地址")
@JsonProperty("image_url")
private String imageUrl;
@Schema(name = "assetsUrl", description = "应用资源url")
private String assetsUrl;
@Schema(name = "state", description = "应用状态:1可用,0不可用")
private Integer state;
@Schema(name = "published", description = "是否发布:1是,0否")
@JsonProperty("published")
private Boolean isPublish;
@Schema(name = "homePage", description = "主页面id,关联page表的id")
private Integer homePage;
@Schema(name = "css", description = "*设计预留字段*")
private String css;
@Schema(name = "config", description = "*设计预留字段*")
@TableField(typeHandler = MapTypeHandler.class)
private Map<String, Object> config;
@Schema(name = "constants", description = "*设计预留字段*")
private String constants;
@Schema(name = "dataHandler", description = "数据源的拦截器")
@TableField(typeHandler = MapTypeHandler.class)
private Map<String, Object> dataHandler;
@Schema(name = "description", description = "描述")
private String description;
@Schema(name = "latest", description = "应用最新历史记录id")
private String latest;
@Schema(name = "gitGroup", description = "git仓库分组")
private String gitGroup;
@Schema(name = "projectName", description = "git仓库名称")
private String projectName;
@Schema(name = "branch", description = "默认提交分支")
private String branch;
@Schema(name = "isDemo", description = "是否是demo应用")
private String isDemo;
@Schema(name = "isDefault", description = "是否是默认应用")
private String isDefault;
@Schema(name = "templateType", description = "应用模板类型")
private String templateType;
@Schema(name = "setTemplateTime", description = "设置模板时间")
private LocalDateTime setTemplateTime;
@Schema(name = "setTemplateBy", description = "设置模板人id")
private String setTemplateBy;
@Schema(name = "setDefaultBy", description = "设置为默认应用人id")
private String setDefaultBy;
@Schema(name = "framework", description = "应用框架")
private String framework;
@Schema(name = "globalState", description = "应用全局状态")
@JsonProperty("global_state")
@TableField(typeHandler = ListTypeHandler.class)
private List<Map<String, Object>> globalState;
@Schema(name = "defaultLang", description = "默认语言")
private String defaultLang;
@Schema(name = "extendConfig", description = "应用扩展config")
@TableField(typeHandler = MapTypeHandler.class)
private Map<String, Object> extendConfig;
@Schema(name = "dataHash", description = "应用内容哈希值")
private String dataHash;
@Schema(name = "canAssociate", description = "*设计预留字段*")
private String canAssociate;
@Schema(name = "dataSourceGlobal", description = "数据源全局配置")
@JsonProperty("data_source_global")
@TableField(typeHandler = MapTypeHandler.class)
private Map<String, Object> dataSourceGlobal;
}