# @date: 2021/7/7 13:26
# @name: urls
# @author:guojs
from django.urls import path
from . import views
app_name = 'cron_job'
urlpatterns = [
# 定时任务
path('home/', views.HomeView.as_view(), name='home'),
path('cron_task_list/', views.CronTaskListView.as_view(), name='cron_task_list'),
path('cron_task_add/', views.CronTaskAddView.as_view(), name='cron_task_add'),
path('cron_task_edit/<int:pk>/', views.CronTaskEditView.as_view(), name='cron_task_edit'),
path('add_cron_task/', views.add_cron_task, name='add_cron_task'),
path('cron_task_delete/', views.cron_task_delete, name='cron_task_delete'),
# 定时分类
path('cron_class_list/', views.CronClassListView.as_view(), name='cron_class_list'),
path('cron_class_add/', views.CronClassAddView.as_view(), name='cron_class_add'),
path('cron_class_edit/<int:pk>/', views.CronClassEditView.as_view(), name='cron_class_edit'),
path('cron_class_delete/', views.cron_class_delete, name='cron_class_delete'),
# 账户
path('acct_list/', views.AcctListView.as_view(), name='acct_list'),
path('acct_add/', views.AcctAddView.as_view(), name='acct_add'),
path('acct_edit/<int:pk>/', views.AcctEditView.as_view(), name='acct_edit'),
path('acct_delete/', views.acct_delete, name='acct_delete'),
# 全局参数配置
path('config_para_list/', views.ConfigParaListView.as_view(), name='config_para_list'),
path('config_para_add/', views.ConfigParaAddView.as_view(), name='config_para_add'),
path('config_para_edit/<int:pk>/', views.ConfigParaEditView.as_view(), name='config_para_edit'),
path('config_para_delete/', views.config_para_delete, name='config_para_delete'),
# 脚本执行
path('scripts_run/', views.ScriptsRunView.as_view(), name='scripts_run'),
path('script_running/', views.script_running, name='script_running'),
path('sh_all_cron/', views.sh_all_cron, name='sh_all_cron'),
path('run_once_cron/', views.run_once_cron, name='run_once_cron'),
# 生成定时脚本
path('sh_cron_list/', views.sh_cron_list, name='sh_cron_list'),
# 自动填充格式化执行命令
path('format_code/', views.format_code, name='format_code'),
# 转换生成新cookie
path('tran_new_ck/', views.tran_new_ck, name='tran_new_ck'),
# 查看文件内容
path('view_script/<int:node_id>/', views.view_script, name='view_script'),
path('files_page/', views.files_page, name='files_page'),
path('fresh_files_folder/', views.fresh_files_folder, name='fresh_files_folder'),
]
django - jd_scripts
最新推荐文章于 2024-08-08 07:50:43 发布