2
0

urls.py 1.7 KB

1234567891011121314151617181920212223242526272829
  1. from django.urls import path
  2. from apps.ticket.views import TicketListView, TicketView, TicketTransition, TicketFlowlog, TicketFlowStep, TicketState, \
  3. TicketsStates, TicketAccept, TicketDeliver, TicketAddNode, \
  4. TicketAddNodeEnd, TicketField, TicketScriptRetry, TicketComment, TicketHookCallBack, TicketParticipantInfo, \
  5. TicketClose, TicketsNumStatistics, TicketRetreat, UploadFile
  6. urlpatterns = [
  7. path('', TicketListView.as_view()),
  8. path('/<int:ticket_id>', TicketView.as_view()),
  9. path('/<int:ticket_id>/transitions', TicketTransition.as_view()),
  10. path('/<int:ticket_id>/flowlogs', TicketFlowlog.as_view()),
  11. path('/<int:ticket_id>/flowsteps', TicketFlowStep.as_view()),
  12. path('/<int:ticket_id>/state', TicketState.as_view()),
  13. path('/<int:ticket_id>/fields', TicketField.as_view()),
  14. path('/<int:ticket_id>/accept', TicketAccept.as_view()),
  15. path('/<int:ticket_id>/deliver', TicketDeliver.as_view()),
  16. path('/<int:ticket_id>/add_node', TicketAddNode.as_view()),
  17. path('/<int:ticket_id>/add_node_end', TicketAddNodeEnd.as_view()),
  18. path('/<int:ticket_id>/retry_script', TicketScriptRetry.as_view()),
  19. path('/<int:ticket_id>/comments', TicketComment.as_view()),
  20. path('/<int:ticket_id>/hook_call_back', TicketHookCallBack.as_view()),
  21. path('/<int:ticket_id>/participant_info', TicketParticipantInfo.as_view()),
  22. path('/<int:ticket_id>/close', TicketClose.as_view()),
  23. path('/<int:ticket_id>/retreat', TicketRetreat.as_view()),
  24. path('/states', TicketsStates.as_view()), # 批量获取工单状态
  25. path('/num_statistics', TicketsNumStatistics.as_view()), # 批量获取工单状态
  26. path('/upload_file', UploadFile.as_view()), # 批量获取工单状态
  27. ]