from django.urls import path from apps.ticket.views import TicketListView, TicketView, TicketTransition, TicketFlowlog, TicketFlowStep, TicketState, \ TicketsStates, TicketAccept, TicketDeliver, TicketAddNode, \ TicketAddNodeEnd, TicketField, TicketScriptRetry, TicketComment, TicketHookCallBack, TicketParticipantInfo, \ TicketClose, TicketsNumStatistics, TicketRetreat, UploadFile urlpatterns = [ path('', TicketListView.as_view()), path('/', TicketView.as_view()), path('//transitions', TicketTransition.as_view()), path('//flowlogs', TicketFlowlog.as_view()), path('//flowsteps', TicketFlowStep.as_view()), path('//state', TicketState.as_view()), path('//fields', TicketField.as_view()), path('//accept', TicketAccept.as_view()), path('//deliver', TicketDeliver.as_view()), path('//add_node', TicketAddNode.as_view()), path('//add_node_end', TicketAddNodeEnd.as_view()), path('//retry_script', TicketScriptRetry.as_view()), path('//comments', TicketComment.as_view()), path('//hook_call_back', TicketHookCallBack.as_view()), path('//participant_info', TicketParticipantInfo.as_view()), path('//close', TicketClose.as_view()), path('//retreat', TicketRetreat.as_view()), path('/states', TicketsStates.as_view()), # 批量获取工单状态 path('/num_statistics', TicketsNumStatistics.as_view()), # 批量获取工单状态 path('/upload_file', UploadFile.as_view()), # 批量获取工单状态 ]