urls.py 1.4 KB

123456789101112131415161718192021222324
  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, TicketClose
  5. urlpatterns = [
  6. path('', TicketListView.as_view()),
  7. path('/<int:ticket_id>', TicketView.as_view()),
  8. path('/<int:ticket_id>/transitions', TicketTransition.as_view()),
  9. path('/<int:ticket_id>/flowlogs', TicketFlowlog.as_view()),
  10. path('/<int:ticket_id>/flowsteps', TicketFlowStep.as_view()),
  11. path('/<int:ticket_id>/state', TicketState.as_view()),
  12. path('/<int:ticket_id>/fields', TicketField.as_view()),
  13. path('/<int:ticket_id>/accept', TicketAccept.as_view()),
  14. path('/<int:ticket_id>/deliver', TicketDeliver.as_view()),
  15. path('/<int:ticket_id>/add_node', TicketAddNode.as_view()),
  16. path('/<int:ticket_id>/add_node_end', TicketAddNodeEnd.as_view()),
  17. path('/<int:ticket_id>/retry_script', TicketScriptRetry.as_view()),
  18. path('/<int:ticket_id>/comments', TicketComment.as_view()),
  19. path('/<int:ticket_id>/hook_call_back', TicketHookCallBack.as_view()),
  20. path('/<int:ticket_id>/participant_info', TicketParticipantInfo.as_view()),
  21. path('/<int:ticket_id>/close', TicketClose.as_view()),
  22. path('/states', TicketsStates.as_view()), # 批量获取工单状态
  23. ]