django - jd_scripts

# @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'),

]

懂的自然懂, 嘻嘻

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值