Skip to content

Commit b323e9a

Browse files
authored
feat(mock-server): add model/apps/template mock (#1755)
1 parent c31ec27 commit b323e9a

File tree

11 files changed

+3733
-0
lines changed

11 files changed

+3733
-0
lines changed
Lines changed: 206 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,206 @@
1+
{
2+
"apps": [
3+
{
4+
"id": 16,
5+
"createdBy": "6",
6+
"lastUpdatedBy": "6",
7+
"tenantId": "1",
8+
"renterId": null,
9+
"siteId": null,
10+
"name": "dashboard",
11+
"appWebsite": null,
12+
"platformHistoryId": "1",
13+
"publishUrl": null,
14+
"editorUrl": null,
15+
"visitUrl": null,
16+
"assetsUrl": "template-cover-1",
17+
"state": null,
18+
"homePage": null,
19+
"css": null,
20+
"config": {},
21+
"constants": null,
22+
"dataHandler": {},
23+
"description": "数据看板",
24+
"latest": null,
25+
"gitGroup": null,
26+
"projectName": null,
27+
"branch": null,
28+
"isDemo": null,
29+
"isDefault": null,
30+
"templateType": null,
31+
"isTemplate": null,
32+
"industryId": null,
33+
"sceneId": null,
34+
"setTemplateTime": null,
35+
"setTemplateBy": null,
36+
"setDefaultBy": null,
37+
"framework": "Vue",
38+
"defaultLang": null,
39+
"extendConfig": {},
40+
"dataHash": null,
41+
"canAssociate": null,
42+
"industry": [],
43+
"scene": [],
44+
"created_at": "2026-01-15 02:35:32",
45+
"updated_at": "2026-01-15 02:35:32",
46+
"platform": 1,
47+
"image_url": null,
48+
"published": false,
49+
"global_state": [],
50+
"data_source_global": {}
51+
},
52+
{
53+
"id": 1,
54+
"createdBy": "1",
55+
"lastUpdatedBy": "1",
56+
"tenantId": "1",
57+
"renterId": null,
58+
"siteId": "1",
59+
"name": "portal-app",
60+
"appWebsite": null,
61+
"platformHistoryId": "1",
62+
"publishUrl": null,
63+
"editorUrl": null,
64+
"visitUrl": null,
65+
"assetsUrl": null,
66+
"state": null,
67+
"homePage": 0,
68+
"css": null,
69+
"config": {},
70+
"constants": null,
71+
"dataHandler": {
72+
"type": "JSFunction",
73+
"value": "function dataHanlder(res){\n return res;\n}"
74+
},
75+
"description": "demo应用",
76+
"latest": "22",
77+
"gitGroup": null,
78+
"projectName": null,
79+
"branch": "develop",
80+
"isDemo": null,
81+
"isDefault": null,
82+
"templateType": "serviceDevelop",
83+
"isTemplate": null,
84+
"industryId": null,
85+
"sceneId": null,
86+
"setTemplateTime": "2023-11-19T18:14:37",
87+
"setTemplateBy": "1",
88+
"setDefaultBy": "1",
89+
"framework": "Vue",
90+
"defaultLang": null,
91+
"extendConfig": {
92+
"business": {
93+
"serviceName": "",
94+
"endpointName": "cce",
95+
"endpointId": "ee",
96+
"serviceId": "ee",
97+
"router": "ee"
98+
},
99+
"env": {
100+
"alpha": {
101+
"regions": [
102+
{
103+
"name": "",
104+
"baseUrl": "",
105+
"isDefault": false
106+
}
107+
],
108+
"isDefault": true
109+
}
110+
},
111+
"type": "console"
112+
},
113+
"dataHash": "8b0eba6ad055532a586f9f669108fabb",
114+
"canAssociate": "1",
115+
"industry": [],
116+
"scene": [],
117+
"created_at": "2024-10-16 23:27:10",
118+
"updated_at": "2024-10-16 23:27:10",
119+
"platform": 1,
120+
"image_url": null,
121+
"published": false,
122+
"global_state": [
123+
{
124+
"id": "test2",
125+
"state": {
126+
"name1": "xxx1"
127+
},
128+
"getters": {
129+
"count": {
130+
"type": "JSFunction",
131+
"value": "function count() {}"
132+
}
133+
},
134+
"actions": {
135+
"actions": {
136+
"type": "JSFunction",
137+
"value": "function actions() {}"
138+
}
139+
}
140+
},
141+
{
142+
"id": "test3",
143+
"state": {
144+
"name1": "xxx"
145+
},
146+
"getters": {
147+
"count": {
148+
"type": "JSFunction",
149+
"value": "function count() {}"
150+
}
151+
},
152+
"actions": {
153+
"actions": {
154+
"type": "JSFunction",
155+
"value": "function actions() {}"
156+
}
157+
}
158+
},
159+
{
160+
"id": "test4",
161+
"state": {
162+
"region": "",
163+
"scenario": "all",
164+
"productId": "",
165+
"planId": "",
166+
"addEvs": false,
167+
"addHss": false,
168+
"addCbr": false,
169+
"period": {
170+
"value": 1,
171+
"unit": "month"
172+
},
173+
"amount": 1
174+
},
175+
"getters": {},
176+
"actions": {}
177+
},
178+
{
179+
"id": "test1",
180+
"state": {
181+
"name1": "xxx"
182+
},
183+
"getters": {
184+
"count": {
185+
"type": "JSFunction",
186+
"value": "function count() {}"
187+
}
188+
},
189+
"actions": {
190+
"actions": {
191+
"type": "JSFunction",
192+
"value": "function actions() {}"
193+
}
194+
}
195+
}
196+
],
197+
"data_source_global": {
198+
"dataHandler": {
199+
"type": "JSFunction",
200+
"value": "function dataHanlder(res){\n return res;\n}"
201+
}
202+
}
203+
}
204+
],
205+
"total": 2
206+
}

0 commit comments

Comments
 (0)