@appthen/cli 1.2.10 → 1.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitignore +1 -0
- package/bin/main.js +92 -0
- package/dist/index.js +7014 -14988
- package/package.json +8 -1
- package/tests/test-app/.appthen/shadow-space-100001-test-app-e99876b1.json +1862 -0
- package/tests/test-app/.appthen/space-config.json +8 -0
- package/tests/test-app/docs/AI-Workflow.flow +112 -0
- package/tests/test-app/docs/Logic-1.flow +16 -0
- package/tests/test-app/docs/Logic.flow +16 -0
- package/tests/test-app/docs/Project-Blueprint-1.flow +119 -0
- package/tests/test-app/docs/Project-Blueprint.flow +119 -0
- package/tests/test-app/docs/README.md +3 -0
- package/tests/test-app/docs/claude.md +194 -0
- package/tests/test-app/docs/page_requirement_analysis.md +149 -0
- package/tests/test-app/docs//345/267/245/345/215/225/347/256/241/347/220/206/347/263/273/347/273/237/350/257/246/347/273/206/350/256/276/350/256/241.md +377 -0
- package/tests/test-app/src/apis/AddTodoPost.api.ts +42 -0
- package/tests/test-app/src/apis/DeleteTodoPost.api.ts +32 -0
- package/tests/test-app/src/apis/GetListPost.api.ts +38 -0
- package/tests/test-app/src/apis/TicketAttachmentUploadPost.api.ts +42 -0
- package/tests/test-app/src/apis/UpdateTodoPost.api.ts +46 -0
- package/tests/test-app/src/app.css +15 -0
- package/tests/test-app/src/cloud_functions/ticket|attachment|upload.node.ts +86 -0
- package/tests/test-app/src/cloud_functions/ticket|comment|add.node.ts +65 -0
- package/tests/test-app/src/cloud_functions/types|entity|Ticket.node.ts +88 -0
- package/tests/test-app/src/cloud_functions/types|entity|TicketAttachment.node.ts +70 -0
- package/tests/test-app/src/cloud_functions/types|entity|TicketCategory.node.ts +56 -0
- package/tests/test-app/src/cloud_functions/types|entity|TicketComment.node.ts +62 -0
- package/tests/test-app/src/cloud_functions/types|entity|TicketHistory.node.ts +74 -0
- package/tests/test-app/src/cloud_functions/types|entity|TicketPriority.node.ts +68 -0
- package/tests/test-app/src/cloud_functions/types|entity|TicketStatus.node.ts +63 -0
- package/tests/test-app/src/cloud_functions/types|models|CreateTicketParams.node.ts +20 -0
- package/tests/test-app/src/cloud_functions/types|models|TicketListParams.node.ts +30 -0
- package/tests/test-app/src/cloud_functions/types|models|UpdateTicketParams.node.ts +22 -0
- package/tests/test-app/src/components/Button.js +11 -0
- package/tests/test-app/src/components/MessageCenter.tsx +506 -0
- package/tests/test-app/src/components/MouduleDemoNzp.tsx +40 -0
- package/tests/test-app/src/components/Timeline.tsx +145 -0
- package/tests/test-app/src/index.ts +2 -0
- package/tests/test-app/src/modules/work_order_module/apis/TicketCommentAddPost.api.ts +48 -0
- package/tests/test-app/src/modules/work_order_module/apis/TicketCreatePost.api.ts +52 -0
- package/tests/test-app/src/modules/work_order_module/apis/TicketDeleteDelete.api.ts +39 -0
- package/tests/test-app/src/modules/work_order_module/apis/TicketDetailGet.api.ts +39 -0
- package/tests/test-app/src/modules/work_order_module/apis/TicketListGet.api.ts +61 -0
- package/tests/test-app/src/modules/work_order_module/apis/TicketUpdatePut.api.ts +57 -0
- package/tests/test-app/src/modules/work_order_module/apis/TrainDoorFaultListGet.ts +76 -0
- package/tests/test-app/src/modules/work_order_module/apis/TrainDoorListGet.ts +76 -0
- package/tests/test-app/src/modules/work_order_module/apis/TrainDoorOperationRecordsGet.ts +284 -0
- package/tests/test-app/src/modules/work_order_module/apis/TrainDoorStatisticsGet.ts +96 -0
- package/tests/test-app/src/modules/work_order_module/cloud_function/category|list.node.ts +40 -0
- package/tests/test-app/src/modules/work_order_module/cloud_function/priority|list.node.ts +26 -0
- package/tests/test-app/src/modules/work_order_module/cloud_function/status|list.node.ts +26 -0
- package/tests/test-app/src/modules/work_order_module/cloud_function/ticket|create.node.ts +54 -0
- package/tests/test-app/src/modules/work_order_module/cloud_function/ticket|delete.node.ts +55 -0
- package/tests/test-app/src/modules/work_order_module/cloud_function/ticket|detail.node.ts +65 -0
- package/tests/test-app/src/modules/work_order_module/cloud_function/ticket|list.node.ts +85 -0
- package/tests/test-app/src/modules/work_order_module/cloud_function/ticket|update.node.ts +73 -0
- package/tests/test-app/src/modules/work_order_module/data_model/Ticket.m.ts +85 -0
- package/tests/test-app/src/modules/work_order_module/data_model/TicketCategory.m.ts +53 -0
- package/tests/test-app/src/modules/work_order_module/data_model/TicketStatus.m.ts +60 -0
- package/tests/test-app/src/modules/work_order_module//345/267/245/345/215/225/347/263/273/347/273/237/344/272/247/345/223/201/350/256/276/350/256/241/346/226/207/346/241/243.md +301 -0
- package/tests/test-app/src/modules/work_order_module//345/267/245/345/215/225/347/263/273/347/273/237/345/274/200/345/217/221/344/273/273/345/212/241/345/210/206/345/267/245/346/226/207/346/241/243.md +345 -0
- package/tests/test-app/src/pages/CustomerManagement.tsx +535 -0
- package/tests/test-app/src/pages/CyberpunkDashboard.tsx +348 -0
- package/tests/test-app/src/pages/CyberpunkProductManagement.tsx +637 -0
- package/tests/test-app/src/pages/CyberpunkUserList.tsx +316 -0
- package/tests/test-app/src/pages/DashboardV2.tsx +334 -0
- package/tests/test-app/src/pages/DataReport.tsx +298 -0
- package/tests/test-app/src/pages/DataStatistics.tsx +317 -0
- package/tests/test-app/src/pages/DepartmentManagement.tsx +503 -0
- package/tests/test-app/src/pages/FileExplorer.tsx +441 -0
- package/tests/test-app/src/pages/OrderDetail.tsx +393 -0
- package/tests/test-app/src/pages/ProductManagement.tsx +521 -0
- package/tests/test-app/src/pages/ProjectTimeline.tsx +395 -0
- package/tests/test-app/src/pages/RoleManagement.tsx +523 -0
- package/tests/test-app/src/pages/SLAManagement.tsx +668 -0
- package/tests/test-app/src/pages/StaticCyberpunkDashboard.tsx +462 -0
- package/tests/test-app/src/pages/StaticCyberpunkUserList.tsx +567 -0
- package/tests/test-app/src/pages/StudentWeaknessList.tsx +547 -0
- package/tests/test-app/src/pages/SystemSettings.tsx +422 -0
- package/tests/test-app/src/pages/TaskManagement.tsx +467 -0
- package/tests/test-app/src/pages/TicketCreate.tsx +27 -0
- package/tests/test-app/src/pages/TicketDetail.tsx +27 -0
- package/tests/test-app/src/pages/TicketList.tsx +27 -0
- package/tests/test-app/src/pages/TicketManagement.tsx +402 -0
- package/tests/test-app/src/pages/TicketManagementPage.tsx +1238 -0
- package/tests/test-app/src/pages/UserProfile.tsx +404 -0
- package/tests/test-app/src/pages/VisualAIIDEUpgrade.tsx +245 -0
- package/tests/test-app/src/pages/WorkflowDesigner.tsx +434 -0
- package/tests/test-app/src/pages/admin/dashboard.tsx +591 -0
- package/tests/test-app/src/pages/appthen_guide/ComponentTreeUnderstanding.tsx +26 -0
- package/tests/test-app/src/pages/appthen_guide/DataBindingLearning.tsx +26 -0
- package/tests/test-app/src/pages/article-list.tsx +222 -0
- package/tests/test-app/src/pages/babyProductRecommendationPage.tsx +168 -0
- package/tests/test-app/src/pages/back-end/adminRootLayout.tsx +155 -0
- package/tests/test-app/src/pages/back-end/adminRootLayout10.tsx +157 -0
- package/tests/test-app/src/pages/back-end/adminRootLayout2.tsx +156 -0
- package/tests/test-app/src/pages/back-end/adminRootLayout3.tsx +156 -0
- package/tests/test-app/src/pages/back-end/adminRootLayout4.tsx +157 -0
- package/tests/test-app/src/pages/back-end/adminRootLayout5.tsx +157 -0
- package/tests/test-app/src/pages/back-end/adminRootLayout6.tsx +157 -0
- package/tests/test-app/src/pages/back-end/adminRootLayout7.tsx +157 -0
- package/tests/test-app/src/pages/back-end/adminRootLayout8.tsx +157 -0
- package/tests/test-app/src/pages/back-end/adminRootLayout9.tsx +157 -0
- package/tests/test-app/src/pages/back-end/backgroundManagementSystem.css +5 -0
- package/tests/test-app/src/pages/back-end/backgroundManagementSystem.tsx +1745 -0
- package/tests/test-app/src/pages/category-list.tsx +179 -0
- package/tests/test-app/src/pages/comment-list.tsx +194 -0
- package/tests/test-app/src/pages/component/WorkOrderCard.tsx +140 -0
- package/tests/test-app/src/pages/cover.tsx +42 -0
- package/tests/test-app/src/pages/cyberpunk/cyberpunkCRMPage.tsx +1299 -0
- package/tests/test-app/src/pages/data-analytics.tsx +1872 -0
- package/tests/test-app/src/pages/data-overview.tsx +600 -0
- package/tests/test-app/src/pages/data_dashboard/blueBrightGreenTechnologyWind.css +181 -0
- package/tests/test-app/src/pages/data_dashboard/blueBrightGreenTechnologyWind.tsx +225 -0
- package/tests/test-app/src/pages/data_dashboard/blueLargeScreen.css +181 -0
- package/tests/test-app/src/pages/data_dashboard/blueLargeScreen.tsx +138 -0
- package/tests/test-app/src/pages/data_dashboard/component_library/BlueBrightGreenBorder.tsx +47 -0
- package/tests/test-app/src/pages/data_dashboard/component_library/FullScreenContainer.tsx +133 -0
- package/tests/test-app/src/pages/demo-error-page.tsx +119 -0
- package/tests/test-app/src/pages/department-list.tsx +183 -0
- package/tests/test-app/src/pages/description_of_mock_interface.md +32 -0
- package/tests/test-app/src/pages/digitalLargeScreen.css +181 -0
- package/tests/test-app/src/pages/digitalLargeScreen.tsx +1417 -0
- package/tests/test-app/src/pages/goods-list.tsx +233 -0
- package/tests/test-app/src/pages/housekeeping/adminDashboardPage.tsx +880 -0
- package/tests/test-app/src/pages/mobile_terminal/PersonalCenter.css +3 -0
- package/tests/test-app/src/pages/mobile_terminal/PersonalCenter.tsx +362 -0
- package/tests/test-app/src/pages/mobile_terminal/WorkOrderHomepage.tsx +337 -0
- package/tests/test-app/src/pages/mobile_terminal/newWorkOrder.tsx +224 -0
- package/tests/test-app/src/pages/mobile_terminal/tabbar.tsx +67 -0
- package/tests/test-app/src/pages/mobile_terminal/uiHandsOnPractice.tsx +638 -0
- package/tests/test-app/src/pages/mobile_terminal/workOrderDetails.tsx +346 -0
- package/tests/test-app/src/pages/mobile_terminal/workOrderPage.tsx +345 -0
- package/tests/test-app/src/pages/notice-list.tsx +217 -0
- package/tests/test-app/src/pages/order-detail.tsx +330 -0
- package/tests/test-app/src/pages/order-list.tsx +195 -0
- package/tests/test-app/src/pages/order-management.tsx +563 -0
- package/tests/test-app/src/pages/page/OrderList.tsx +230 -0
- package/tests/test-app/src/pages/role-list.tsx +184 -0
- package/tests/test-app/src/pages/simple/simplePage.tsx +92 -0
- package/tests/test-app/src/pages/simple-page.tsx +43 -0
- package/tests/test-app/src/pages/test-destructure.tsx +44 -0
- package/tests/test-app/src/pages/test-error-page.tsx +75 -0
- package/tests/test-app/src/pages/test-page-with-errors.tsx +51 -0
- package/tests/test-app/src/pages/test-page.tsx +101 -0
- package/tests/test-app/src/pages/test-render.tsx +52 -0
- package/tests/test-app/src/pages/test-return-type.tsx +41 -0
- package/tests/test-app/src/pages/test-type-assertion.tsx +37 -0
- package/tests/test-app/src/pages/testPage.css +3 -0
- package/tests/test-app/src/pages/testPage.tsx +158 -0
- package/tests/test-app/src/pages/ui/styleSelectorPage.tsx +1554 -0
- package/tests/test-app/src/pages/user-list.tsx +212 -0
- package/tests/test-app/src/pages/web_version/website.css +205 -0
- package/tests/test-app/src/pages/web_version/website.tsx +1066 -0
- package/tests/test-app/src/pages/wrong-page.tsx +50 -0
- package/tests/test-app/src/pages//345/276/205/345/212/236.apidoc.json +336 -0
- package/tests/test-app/src/project.json +1120 -0
- package/tests/test-app/src/store/global.store.ts +10 -0
- package/tests/test-app/src/types/CreateTicketParams.m.ts +20 -0
- package/tests/test-app/src/types/SLAPolicy.ts +50 -0
- package/tests/test-app/src/types/Ticket.ts +68 -0
- package/tests/test-app/src/types/TicketAttachment.m.ts +67 -0
- package/tests/test-app/src/types/TicketComment.m.ts +59 -0
- package/tests/test-app/src/types/TicketEvaluation.ts +44 -0
- package/tests/test-app/src/types/TicketHistory.m.ts +71 -0
- package/tests/test-app/src/types/TicketListParams.m.ts +30 -0
- package/tests/test-app/src/types/TicketPriority.m.ts +65 -0
- package/tests/test-app/src/types/TicketRecord.ts +47 -0
- package/tests/test-app/src/types/TrainDoor.ts +284 -0
- package/tests/test-app/src/types/UpdateTicketParams.m.ts +22 -0
- package/tests/test-app/src/utils/__afterRequest.util.ts +3 -0
- package/tests/test-app/src/utils/__beforeRequest.util.ts +10 -0
- package/tests/test-app/src/utils/testGlobalAction.util.ts +7 -0
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 时间线组件
|
|
3
|
+
* @type Component
|
|
4
|
+
* @screen 1920w
|
|
5
|
+
* @frames web
|
|
6
|
+
*/
|
|
7
|
+
import React from 'react';
|
|
8
|
+
import { Component, Text, View } from '@appthen/react';
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
class IProps {}
|
|
12
|
+
|
|
13
|
+
/*
|
|
14
|
+
* 数据与接口请求定义
|
|
15
|
+
*/
|
|
16
|
+
class IState {}
|
|
17
|
+
|
|
18
|
+
class Document extends React.Component<IProps, IState> {
|
|
19
|
+
state = {};
|
|
20
|
+
|
|
21
|
+
render() {
|
|
22
|
+
return (
|
|
23
|
+
<React.Fragment>
|
|
24
|
+
<View className={`timeline ${this.props.className}`}>
|
|
25
|
+
<View className="relative">
|
|
26
|
+
<View className="absolute left-[16px] top-[0px] bottom-[0px] w-[0px] bg-[#e5e7eb]" />
|
|
27
|
+
<View className="space-y-4">
|
|
28
|
+
{this.props.data.map((item, index) => (
|
|
29
|
+
<View
|
|
30
|
+
key={item.id || index}
|
|
31
|
+
className="gap-4 relative flex items-start"
|
|
32
|
+
>
|
|
33
|
+
<View
|
|
34
|
+
className="relative z-10 flex items-center justify-center w-8 h-8 bg-white border-2 rounded-full"
|
|
35
|
+
style={{ borderColor: this.getActionColor(item.action) }}
|
|
36
|
+
>
|
|
37
|
+
<Text className="text-sm">
|
|
38
|
+
{this.getActionIcon(item.action)}
|
|
39
|
+
</Text>
|
|
40
|
+
</View>
|
|
41
|
+
<View className="flex-1 min-w-[0px] pb-[32px]">
|
|
42
|
+
<View className="bg-[#ffffff] rounded-lg border border-solid p-[16px]">
|
|
43
|
+
<View className="flex items-center justify-between mb-[8px]">
|
|
44
|
+
<View className="gap-2 flex items-center">
|
|
45
|
+
<Text
|
|
46
|
+
className="font-medium text-gray-900"
|
|
47
|
+
style={{ color: this.getActionColor(item.action) }}
|
|
48
|
+
>
|
|
49
|
+
{this.getActionText(item.action)}
|
|
50
|
+
</Text>
|
|
51
|
+
{!!(this.props.showOperator && item?.operator) && (
|
|
52
|
+
<Text className="text-sm text-[#4b5563]">
|
|
53
|
+
by{item.operator}
|
|
54
|
+
</Text>
|
|
55
|
+
)}
|
|
56
|
+
</View>
|
|
57
|
+
{!!this.props.showTime && (
|
|
58
|
+
<Text className="text-xs text-[#6b7280]">
|
|
59
|
+
{this.formatTime(item.createdAt)}
|
|
60
|
+
</Text>
|
|
61
|
+
)}
|
|
62
|
+
</View>
|
|
63
|
+
{!!(item?.content || item?.attachments?.length > 0) && (
|
|
64
|
+
<View className="mt-[12px]">
|
|
65
|
+
{!!item?.content && (
|
|
66
|
+
<View className="text-sm text-[#111827] mb-[12px]">
|
|
67
|
+
<Text>{item.content}</Text>
|
|
68
|
+
</View>
|
|
69
|
+
)}
|
|
70
|
+
{!!(item?.attachments?.length > 0) && (
|
|
71
|
+
<View className="space-y-2">
|
|
72
|
+
<View className="text-xs font-medium text-[#374151]">
|
|
73
|
+
<Text>附件:</Text>
|
|
74
|
+
</View>
|
|
75
|
+
{item.attachments.map((attachment, attIndex) => (
|
|
76
|
+
<View
|
|
77
|
+
key={attIndex}
|
|
78
|
+
className="gap-2 flex items-center text-xs text-[#4b5563]"
|
|
79
|
+
>
|
|
80
|
+
<Text>📎</Text>
|
|
81
|
+
<Text>{attachment.name}</Text>
|
|
82
|
+
<Text className="text-[#9ca3af]">
|
|
83
|
+
({(attachment.size / 1024).toFixed(1)}KB)
|
|
84
|
+
</Text>
|
|
85
|
+
</View>
|
|
86
|
+
))}
|
|
87
|
+
</View>
|
|
88
|
+
)}
|
|
89
|
+
{!!(item?.timeSpent > 0) && (
|
|
90
|
+
<View className="mt-[8px] text-xs text-[#6b7280]">
|
|
91
|
+
<Text>耗时:</Text>
|
|
92
|
+
<Text>{Math.floor(item.timeSpent / 60)}</Text>
|
|
93
|
+
<Text>小时</Text>
|
|
94
|
+
<Text>{item.timeSpent % 60}</Text>
|
|
95
|
+
<Text>分钟</Text>
|
|
96
|
+
</View>
|
|
97
|
+
)}
|
|
98
|
+
</View>
|
|
99
|
+
)}
|
|
100
|
+
{!!(
|
|
101
|
+
(item?.oldStatus && item?.newStatus) ||
|
|
102
|
+
(item?.oldAssignee && item?.newAssignee)
|
|
103
|
+
) && (
|
|
104
|
+
<View className="border-gray-100 mt-[12px] pt-[12px] border-t border-t-solid">
|
|
105
|
+
<View className="space-y-1">
|
|
106
|
+
{!!(item?.oldStatus && item?.newStatus) && (
|
|
107
|
+
<View className="text-xs text-[#4b5563]">
|
|
108
|
+
<Text>状态变更:</Text>
|
|
109
|
+
<Text className="[textDecoration:line-through]">
|
|
110
|
+
{item.oldStatus}
|
|
111
|
+
</Text>
|
|
112
|
+
<Text>→</Text>
|
|
113
|
+
<Text className="font-medium">
|
|
114
|
+
{item.newStatus}
|
|
115
|
+
</Text>
|
|
116
|
+
</View>
|
|
117
|
+
)}
|
|
118
|
+
{!!(item?.oldAssignee && item?.newAssignee) && (
|
|
119
|
+
<View className="text-xs text-[#4b5563]">
|
|
120
|
+
<Text>处理人变更:</Text>
|
|
121
|
+
<Text className="[textDecoration:line-through]">
|
|
122
|
+
{item.oldAssignee}
|
|
123
|
+
</Text>
|
|
124
|
+
<Text>→</Text>
|
|
125
|
+
<Text className="font-medium">
|
|
126
|
+
{item.newAssignee}
|
|
127
|
+
</Text>
|
|
128
|
+
</View>
|
|
129
|
+
)}
|
|
130
|
+
</View>
|
|
131
|
+
</View>
|
|
132
|
+
)}
|
|
133
|
+
</View>
|
|
134
|
+
</View>
|
|
135
|
+
</View>
|
|
136
|
+
))}
|
|
137
|
+
</View>
|
|
138
|
+
</View>
|
|
139
|
+
</View>
|
|
140
|
+
</React.Fragment>
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
export default Document;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 添加工单评论
|
|
3
|
+
*
|
|
4
|
+
* @api POST /ticket/comment/add
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Body 参数类型
|
|
9
|
+
*/
|
|
10
|
+
export class TicketCommentAddPostBodyDto {
|
|
11
|
+
/* 根节点 */
|
|
12
|
+
_root_: {
|
|
13
|
+
/* 工单ID */ticketId?: number,
|
|
14
|
+
/* 评论内容 */content?: string,
|
|
15
|
+
/* 父评论ID */parentId: number,
|
|
16
|
+
/* 评论类型 */type: string,
|
|
17
|
+
/* 是否内部评论 */isInternal: boolean,
|
|
18
|
+
} = {
|
|
19
|
+
ticketId: undefined,
|
|
20
|
+
content: undefined,
|
|
21
|
+
parentId: 0,
|
|
22
|
+
type: "",
|
|
23
|
+
isInternal: false
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Query 参数类型
|
|
28
|
+
*/
|
|
29
|
+
export class TicketCommentAddPostQueryDto {}
|
|
30
|
+
/**
|
|
31
|
+
* Path 参数类型
|
|
32
|
+
*/
|
|
33
|
+
export class TicketCommentAddPostPathDto {}
|
|
34
|
+
/**
|
|
35
|
+
* 接口返回值类型
|
|
36
|
+
*/
|
|
37
|
+
export class TicketCommentAddPostResponseDto {
|
|
38
|
+
/* 根节点 */
|
|
39
|
+
_root_: {
|
|
40
|
+
/* 响应码 */code: number,
|
|
41
|
+
/* 响应消息 */message: string,
|
|
42
|
+
/* 返回数据 */data: string,
|
|
43
|
+
} = {
|
|
44
|
+
code: 0,
|
|
45
|
+
message: "",
|
|
46
|
+
data: ""
|
|
47
|
+
};
|
|
48
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 创建工单
|
|
3
|
+
*
|
|
4
|
+
* @api POST /ticket/create
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Body 参数类型
|
|
9
|
+
*/
|
|
10
|
+
export class TicketCreatePostBodyDto {
|
|
11
|
+
/* 根节点 */
|
|
12
|
+
_root_: {
|
|
13
|
+
/* 工单标题 */title?: string,
|
|
14
|
+
/* 工单描述 */description: string,
|
|
15
|
+
/* 分类ID */categoryId?: number,
|
|
16
|
+
/* 优先级ID */priorityId?: number,
|
|
17
|
+
/* 标签 */tags: string,
|
|
18
|
+
/* 截止日期 */dueDate: string,
|
|
19
|
+
/* 附件列表 */attachments: string,
|
|
20
|
+
} = {
|
|
21
|
+
title: undefined,
|
|
22
|
+
description: "",
|
|
23
|
+
categoryId: undefined,
|
|
24
|
+
priorityId: undefined,
|
|
25
|
+
tags: "",
|
|
26
|
+
dueDate: "",
|
|
27
|
+
attachments: ""
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Query 参数类型
|
|
32
|
+
*/
|
|
33
|
+
export class TicketCreatePostQueryDto {}
|
|
34
|
+
/**
|
|
35
|
+
* Path 参数类型
|
|
36
|
+
*/
|
|
37
|
+
export class TicketCreatePostPathDto {}
|
|
38
|
+
/**
|
|
39
|
+
* 接口返回值类型
|
|
40
|
+
*/
|
|
41
|
+
export class TicketCreatePostResponseDto {
|
|
42
|
+
/* 根节点 */
|
|
43
|
+
_root_: {
|
|
44
|
+
/* 响应码 */code: number,
|
|
45
|
+
/* 响应消息 */message: string,
|
|
46
|
+
/* 返回数据 */data: string,
|
|
47
|
+
} = {
|
|
48
|
+
code: 0,
|
|
49
|
+
message: "",
|
|
50
|
+
data: ""
|
|
51
|
+
};
|
|
52
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 删除工单
|
|
3
|
+
*
|
|
4
|
+
* @api DELETE /ticket/delete
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Body 参数类型
|
|
9
|
+
*/
|
|
10
|
+
export class TicketDeleteDeleteBodyDto {
|
|
11
|
+
/* 根节点 */
|
|
12
|
+
_root_: any = {};
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Query 参数类型
|
|
16
|
+
*/
|
|
17
|
+
export class TicketDeleteDeleteQueryDto {
|
|
18
|
+
/* 工单ID */
|
|
19
|
+
id?: number;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Path 参数类型
|
|
23
|
+
*/
|
|
24
|
+
export class TicketDeleteDeletePathDto {}
|
|
25
|
+
/**
|
|
26
|
+
* 接口返回值类型
|
|
27
|
+
*/
|
|
28
|
+
export class TicketDeleteDeleteResponseDto {
|
|
29
|
+
/* 根节点 */
|
|
30
|
+
_root_: {
|
|
31
|
+
/* 响应码 */code: number,
|
|
32
|
+
/* 响应消息 */message: string,
|
|
33
|
+
/* 返回数据 */data: string,
|
|
34
|
+
} = {
|
|
35
|
+
code: 0,
|
|
36
|
+
message: "",
|
|
37
|
+
data: ""
|
|
38
|
+
};
|
|
39
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 获取工单详情
|
|
3
|
+
*
|
|
4
|
+
* @api GET /ticket/detail
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Body 参数类型
|
|
9
|
+
*/
|
|
10
|
+
export class TicketDetailGetBodyDto {
|
|
11
|
+
/* 根节点 */
|
|
12
|
+
_root_: any = {};
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Query 参数类型
|
|
16
|
+
*/
|
|
17
|
+
export class TicketDetailGetQueryDto {
|
|
18
|
+
/* 工单ID */
|
|
19
|
+
id?: number;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Path 参数类型
|
|
23
|
+
*/
|
|
24
|
+
export class TicketDetailGetPathDto {}
|
|
25
|
+
/**
|
|
26
|
+
* 接口返回值类型
|
|
27
|
+
*/
|
|
28
|
+
export class TicketDetailGetResponseDto {
|
|
29
|
+
/* 根节点 */
|
|
30
|
+
_root_: {
|
|
31
|
+
/* 响应码 */code: number,
|
|
32
|
+
/* 响应消息 */message: string,
|
|
33
|
+
/* 返回数据 */data: string,
|
|
34
|
+
} = {
|
|
35
|
+
code: 0,
|
|
36
|
+
message: "",
|
|
37
|
+
data: ""
|
|
38
|
+
};
|
|
39
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 获取工单列表
|
|
3
|
+
*
|
|
4
|
+
* @api GET /ticket/list
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Body 参数类型
|
|
9
|
+
*/
|
|
10
|
+
export class TicketListGetBodyDto {
|
|
11
|
+
/* 根节点 */
|
|
12
|
+
_root_: any = {};
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Query 参数类型
|
|
16
|
+
*/
|
|
17
|
+
export class TicketListGetQueryDto {
|
|
18
|
+
/* 页码 */
|
|
19
|
+
page: number = 1;
|
|
20
|
+
/* 每页数量 */
|
|
21
|
+
pageSize: number = 10;
|
|
22
|
+
/* 工单状态 */
|
|
23
|
+
statusId: number = 0;
|
|
24
|
+
/* 优先级 */
|
|
25
|
+
priorityId: number = 0;
|
|
26
|
+
/* 分类 */
|
|
27
|
+
categoryId: number = 0;
|
|
28
|
+
/* 创建人ID */
|
|
29
|
+
creatorId: string = "";
|
|
30
|
+
/* 处理人ID */
|
|
31
|
+
assigneeId: string = "";
|
|
32
|
+
/* 关键词搜索 */
|
|
33
|
+
keyword: string = "";
|
|
34
|
+
/* 开始时间 */
|
|
35
|
+
startDate: Date = new Date();
|
|
36
|
+
/* 结束时间 */
|
|
37
|
+
endDate: Date = new Date();
|
|
38
|
+
/* 排序字段 */
|
|
39
|
+
sortBy: string = "createdAt";
|
|
40
|
+
/* 排序方式 */
|
|
41
|
+
sortOrder: string = "DESC";
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Path 参数类型
|
|
45
|
+
*/
|
|
46
|
+
export class TicketListGetPathDto {}
|
|
47
|
+
/**
|
|
48
|
+
* 接口返回值类型
|
|
49
|
+
*/
|
|
50
|
+
export class TicketListGetResponseDto {
|
|
51
|
+
/* 根节点 */
|
|
52
|
+
_root_: {
|
|
53
|
+
/* 响应码 */code: number,
|
|
54
|
+
/* 响应消息 */message: string,
|
|
55
|
+
/* 返回数据 */data: string,
|
|
56
|
+
} = {
|
|
57
|
+
code: 0,
|
|
58
|
+
message: "",
|
|
59
|
+
data: ""
|
|
60
|
+
};
|
|
61
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 更新工单
|
|
3
|
+
*
|
|
4
|
+
* @api PUT /ticket/update
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Body 参数类型
|
|
9
|
+
*/
|
|
10
|
+
export class TicketUpdatePutBodyDto {
|
|
11
|
+
/* 根节点 */
|
|
12
|
+
_root_: {
|
|
13
|
+
/* 工单标题 */title: string,
|
|
14
|
+
/* 工单描述 */description: string,
|
|
15
|
+
/* 分类ID */categoryId: number,
|
|
16
|
+
/* 优先级ID */priorityId: number,
|
|
17
|
+
/* 处理人ID */assigneeId: string,
|
|
18
|
+
/* 状态ID */statusId: number,
|
|
19
|
+
/* 标签 */tags: string,
|
|
20
|
+
/* 截止日期 */dueDate: string,
|
|
21
|
+
} = {
|
|
22
|
+
title: "",
|
|
23
|
+
description: "",
|
|
24
|
+
categoryId: 0,
|
|
25
|
+
priorityId: 0,
|
|
26
|
+
assigneeId: "",
|
|
27
|
+
statusId: 0,
|
|
28
|
+
tags: "",
|
|
29
|
+
dueDate: ""
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Query 参数类型
|
|
34
|
+
*/
|
|
35
|
+
export class TicketUpdatePutQueryDto {
|
|
36
|
+
/* 工单ID */
|
|
37
|
+
id?: number;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Path 参数类型
|
|
41
|
+
*/
|
|
42
|
+
export class TicketUpdatePutPathDto {}
|
|
43
|
+
/**
|
|
44
|
+
* 接口返回值类型
|
|
45
|
+
*/
|
|
46
|
+
export class TicketUpdatePutResponseDto {
|
|
47
|
+
/* 根节点 */
|
|
48
|
+
_root_: {
|
|
49
|
+
/* 响应码 */code: number,
|
|
50
|
+
/* 响应消息 */message: string,
|
|
51
|
+
/* 返回数据 */data: string,
|
|
52
|
+
} = {
|
|
53
|
+
code: 0,
|
|
54
|
+
message: "",
|
|
55
|
+
data: ""
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 获取列车车门列表
|
|
3
|
+
*
|
|
4
|
+
* @api GET /train/door/list
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Body 参数类型
|
|
9
|
+
*/
|
|
10
|
+
export class TrainDoorListGetBodyDto {
|
|
11
|
+
/* 根节点 */
|
|
12
|
+
_root_?: any = {};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Query 参数类型
|
|
17
|
+
*/
|
|
18
|
+
export class TrainDoorListGetQueryDto {
|
|
19
|
+
/* 线路 */
|
|
20
|
+
line?: string = "6号线";
|
|
21
|
+
|
|
22
|
+
/* 列车ID */
|
|
23
|
+
trainId?: string = "";
|
|
24
|
+
|
|
25
|
+
/* 车厢号 */
|
|
26
|
+
carriageNumber?: string = "";
|
|
27
|
+
|
|
28
|
+
/* 车门状态 */
|
|
29
|
+
status?: string = "";
|
|
30
|
+
|
|
31
|
+
/* 运行状态 */
|
|
32
|
+
operatingStatus?: string = "";
|
|
33
|
+
|
|
34
|
+
/* 页码 */
|
|
35
|
+
page?: number = 1;
|
|
36
|
+
|
|
37
|
+
/* 每页数量 */
|
|
38
|
+
pageSize?: number = 100;
|
|
39
|
+
|
|
40
|
+
/* 开始时间 */
|
|
41
|
+
startTime?: Date = new Date();
|
|
42
|
+
|
|
43
|
+
/* 结束时间 */
|
|
44
|
+
endTime?: Date = new Date();
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Path 参数类型
|
|
49
|
+
*/
|
|
50
|
+
export class TrainDoorListGetPathDto {}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* 接口返回值类型
|
|
54
|
+
*/
|
|
55
|
+
export class TrainDoorListGetResponseDto {
|
|
56
|
+
/* 根节点 */
|
|
57
|
+
_root_?: {
|
|
58
|
+
/* 响应码 */code?: number,
|
|
59
|
+
/* 响应消息 */message?: string,
|
|
60
|
+
/* 返回数据 */data?: {
|
|
61
|
+
/* 车门列表 */list?: any[],
|
|
62
|
+
/* 总数 */total?: number,
|
|
63
|
+
/* 页码 */page?: number,
|
|
64
|
+
/* 每页数量 */pageSize?: number
|
|
65
|
+
},
|
|
66
|
+
} = {
|
|
67
|
+
code: 0,
|
|
68
|
+
message: "",
|
|
69
|
+
data: {
|
|
70
|
+
list: [],
|
|
71
|
+
total: 0,
|
|
72
|
+
page: 1,
|
|
73
|
+
pageSize: 100
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* 获取列车车门列表
|
|
3
|
+
*
|
|
4
|
+
* @api GET /train/door/list
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Body 参数类型
|
|
9
|
+
*/
|
|
10
|
+
export class TrainDoorListGetBodyDto {
|
|
11
|
+
/* 根节点 */
|
|
12
|
+
_root_?: any = {};
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Query 参数类型
|
|
17
|
+
*/
|
|
18
|
+
export class TrainDoorListGetQueryDto {
|
|
19
|
+
/* 线路 */
|
|
20
|
+
line?: string = "6号线";
|
|
21
|
+
|
|
22
|
+
/* 列车ID */
|
|
23
|
+
trainId?: string = "";
|
|
24
|
+
|
|
25
|
+
/* 车厢号 */
|
|
26
|
+
carriageNumber?: string = "";
|
|
27
|
+
|
|
28
|
+
/* 车门状态 */
|
|
29
|
+
status?: string = "";
|
|
30
|
+
|
|
31
|
+
/* 运行状态 */
|
|
32
|
+
operatingStatus?: string = "";
|
|
33
|
+
|
|
34
|
+
/* 页码 */
|
|
35
|
+
page?: number = 1;
|
|
36
|
+
|
|
37
|
+
/* 每页数量 */
|
|
38
|
+
pageSize?: number = 100;
|
|
39
|
+
|
|
40
|
+
/* 开始时间 */
|
|
41
|
+
startTime?: Date = new Date();
|
|
42
|
+
|
|
43
|
+
/* 结束时间 */
|
|
44
|
+
endTime?: Date = new Date();
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Path 参数类型
|
|
49
|
+
*/
|
|
50
|
+
export class TrainDoorListGetPathDto {}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* 接口返回值类型
|
|
54
|
+
*/
|
|
55
|
+
export class TrainDoorListGetResponseDto {
|
|
56
|
+
/* 根节点 */
|
|
57
|
+
_root_?: {
|
|
58
|
+
/* 响应码 */code?: number,
|
|
59
|
+
/* 响应消息 */message?: string,
|
|
60
|
+
/* 返回数据 */data?: {
|
|
61
|
+
/* 车门列表 */list?: any[],
|
|
62
|
+
/* 总数 */total?: number,
|
|
63
|
+
/* 页码 */page?: number,
|
|
64
|
+
/* 每页数量 */pageSize?: number
|
|
65
|
+
},
|
|
66
|
+
} = {
|
|
67
|
+
code: 0,
|
|
68
|
+
message: "",
|
|
69
|
+
data: {
|
|
70
|
+
list: [],
|
|
71
|
+
total: 0,
|
|
72
|
+
page: 1,
|
|
73
|
+
pageSize: 100
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
}
|