医洗swagger接口
  1. admin
医洗swagger接口
  • admin
    • /admin/api-token-auth/
      POST
    • /admin/captcha/refresh/
      GET
    • /admin/celery/crontabschedule/
      GET
    • /admin/celery/crontabschedule/
      POST
    • /admin/celery/crontabschedule/{id}/
      GET
    • /admin/celery/crontabschedule/{id}/
      PUT
    • /admin/celery/crontabschedule/{id}/
      PATCH
    • /admin/celery/crontabschedule/{id}/
      DELETE
    • /admin/celery/intervalschedule/
      GET
    • /admin/celery/intervalschedule/
      POST
    • /admin/celery/intervalschedule/{id}/
      GET
    • /admin/celery/intervalschedule/{id}/
      PUT
    • /admin/celery/intervalschedule/{id}/
      PATCH
    • /admin/celery/intervalschedule/{id}/
      DELETE
    • /admin/celery/operate_celery/
      POST
    • /admin/celery/periodictask/
      GET
    • /admin/celery/periodictask/
      POST
    • /admin/celery/periodictask/{id}/
      GET
    • /admin/celery/periodictask/{id}/
      PUT
    • /admin/celery/periodictask/{id}/
      PATCH
    • /admin/celery/periodictask/{id}/
      DELETE
    • /admin/celery/tasks_as_choices/
      GET
    • /admin/getInfo/
      GET
    • /admin/getRouters/
      GET
    • /admin/login/
      POST
    • /admin/logout/
      POST
    • /admin/permission/app/user/
      GET
    • /admin/permission/app/user/
      POST
    • /admin/permission/app/user/{id}/
      GET
    • /admin/permission/app/user/{id}/
      PUT
    • /admin/permission/app/user/{id}/
      PATCH
    • /admin/permission/app/user/{id}/
      DELETE
    • /admin/permission/appuser/details/
      GET
    • /admin/permission/dept/
      GET
    • /admin/permission/dept/
      POST
    • /admin/permission/dept/exclude/
      GET
    • /admin/permission/dept/exclude/
      POST
    • /admin/permission/dept/exclude/{id}/
      GET
    • /admin/permission/dept/roleDeptTreeselect/{id}/
      GET
    • /admin/permission/dept/treeselect/
      GET
    • /admin/permission/dept/{id}/
      GET
    • /admin/permission/dept/{id}/
      PUT
    • /admin/permission/dept/{id}/
      PATCH
    • /admin/permission/dept/{id}/
      DELETE
    • /admin/permission/menus/
      GET
    • /admin/permission/menus/
      POST
    • /admin/permission/menus/roleMenuTreeselect/{id}/
      GET
    • /admin/permission/menus/treeselect/
      GET
    • /admin/permission/menus/{id}/
      GET
    • /admin/permission/menus/{id}/
      PUT
    • /admin/permission/menus/{id}/
      PATCH
    • /admin/permission/menus/{id}/
      DELETE
    • /admin/permission/role/
      GET
    • /admin/permission/role/
      POST
    • /admin/permission/role/{id}/
      GET
    • /admin/permission/role/{id}/
      PUT
    • /admin/permission/role/{id}/
      PATCH
    • /admin/permission/role/{id}/
      DELETE
    • /admin/permission/test/push_test/
      POST
    • /admin/permission/user/
      GET
    • /admin/permission/user/
      POST
    • /admin/permission/user/changeStatus/
      PUT
    • /admin/permission/user/details/
      GET
    • /admin/permission/user/importTemplate/
      GET
    • /admin/permission/user/importTemplate/
      POST
    • /admin/permission/user/profile/
      GET
    • /admin/permission/user/profile/
      PUT
    • /admin/permission/user/profile/avatar/
      PUT
    • /admin/permission/user/profile/updatePwd/
      PUT
    • /admin/permission/user/resetPwd/
      PUT
    • /admin/permission/user/{id}/
      GET
    • /admin/permission/user/{id}/
      PUT
    • /admin/permission/user/{id}/
      PATCH
    • /admin/permission/user/{id}/
      DELETE
    • /admin/system/celery_log/
      GET
    • /admin/system/celery_log/
      POST
    • /admin/system/celery_log/clean/
      DELETE
    • /admin/system/celery_log/export/
      GET
    • /admin/system/celery_log/{id}/
      GET
    • /admin/system/celery_log/{id}/
      PUT
    • /admin/system/celery_log/{id}/
      PATCH
    • /admin/system/celery_log/{id}/
      DELETE
    • /admin/system/clearsavefile/
      POST
    • /admin/system/dict/data/
      GET
    • /admin/system/dict/data/
      POST
    • /admin/system/dict/data/export/
      GET
    • /admin/system/dict/data/{id}/
      GET
    • /admin/system/dict/data/{id}/
      PUT
    • /admin/system/dict/data/{id}/
      PATCH
    • /admin/system/dict/data/{id}/
      DELETE
    • /admin/system/dict/get/type/{id}/
      GET
    • /admin/system/dict/type/
      GET
    • /admin/system/dict/type/
      POST
    • /admin/system/dict/type/clearCache/
      DELETE
    • /admin/system/dict/type/export/
      GET
    • /admin/system/dict/type/{id}/
      GET
    • /admin/system/dict/type/{id}/
      PUT
    • /admin/system/dict/type/{id}/
      PATCH
    • /admin/system/dict/type/{id}/
      DELETE
    • /admin/system/logininfor/
      GET
    • /admin/system/logininfor/
      POST
    • /admin/system/logininfor/clean/
      DELETE
    • /admin/system/logininfor/export/
      GET
    • /admin/system/logininfor/{id}/
      GET
    • /admin/system/logininfor/{id}/
      PUT
    • /admin/system/logininfor/{id}/
      PATCH
    • /admin/system/logininfor/{id}/
      DELETE
    • /admin/system/message/
      GET
    • /admin/system/message/
      POST
    • /admin/system/message/export/
      GET
    • /admin/system/message/is_read/{id}/
      PUT
    • /admin/system/message/user_messages/
      GET
    • /admin/system/message/{id}/
      GET
    • /admin/system/message/{id}/
      PUT
    • /admin/system/message/{id}/
      PATCH
    • /admin/system/message/{id}/
      DELETE
    • /admin/system/operation_log/
      GET
    • /admin/system/operation_log/
      POST
    • /admin/system/operation_log/clean/
      DELETE
    • /admin/system/operation_log/export/
      GET
    • /admin/system/operation_log/{id}/
      GET
    • /admin/system/operation_log/{id}/
      PUT
    • /admin/system/operation_log/{id}/
      PATCH
    • /admin/system/operation_log/{id}/
      DELETE
    • /admin/system/savefile/
      GET
    • /admin/system/savefile/
      POST
    • /admin/system/savefile/{id}/
      GET
    • /admin/system/savefile/{id}/
      PUT
    • /admin/system/savefile/{id}/
      PATCH
    • /admin/system/savefile/{id}/
      DELETE
  • biz
    • /biz/bizDepartment/
    • /biz/bizDepartment/
    • /biz/bizDepartment/{id}/
    • /biz/bizDepartment/{id}/
    • /biz/bizDepartment/{id}/
    • /biz/bizDepartment/{id}/
    • /biz/bizDeptAll/
    • /biz/bizDeptStock/
    • /biz/bizDeptStock/
    • /biz/bizDeptStock/statRecordBySort/
    • /biz/bizDeptStock/{id}/
    • /biz/bizDeptStock/{id}/
    • /biz/bizDeptStock/{id}/
    • /biz/bizDeptStock/{id}/
    • /biz/bizFunc/
    • /biz/bizFunc/
    • /biz/bizFunc/{id}/
    • /biz/bizFunc/{id}/
    • /biz/bizFunc/{id}/
    • /biz/bizFunc/{id}/
    • /biz/bizRecordStat/
    • /biz/bizRecordStat/
    • /biz/bizRecordStat/statRecordByDept/
    • /biz/bizRecordStat/statTexSort/
    • /biz/bizRecordStat/{id}/
    • /biz/bizRecordStat/{id}/
    • /biz/bizRecordStat/{id}/
    • /biz/bizRecordStat/{id}/
    • /biz/bizRecvRecord/
    • /biz/bizRecvRecord/
    • /biz/bizRecvRecord/{id}/
    • /biz/bizRecvRecord/{id}/
    • /biz/bizRecvRecord/{id}/
    • /biz/bizRecvRecord/{id}/
    • /biz/bizRole/
    • /biz/bizRole/
    • /biz/bizRole/{id}/
    • /biz/bizRole/{id}/
    • /biz/bizRole/{id}/
    • /biz/bizRole/{id}/
    • /biz/bizSendRecord/
    • /biz/bizSendRecord/
    • /biz/bizSendRecord/{id}/
    • /biz/bizSendRecord/{id}/
    • /biz/bizSendRecord/{id}/
    • /biz/bizSendRecord/{id}/
    • /biz/bizUnit/
    • /biz/bizUnit/
    • /biz/bizUnit/{id}/
    • /biz/bizUnit/{id}/
    • /biz/bizUnit/{id}/
    • /biz/bizUnit/{id}/
    • /biz/bizUnitAll/
    • /biz/bizUser/
    • /biz/bizUser/
    • /biz/bizUser/{id}/
    • /biz/bizUser/{id}/
    • /biz/bizUser/{id}/
    • /biz/bizUser/{id}/
    • /biz/bizUserRecord/
    • /biz/bizUserRecord/
    • /biz/bizUserRecord/{id}/
    • /biz/bizUserRecord/{id}/
    • /biz/bizUserRecord/{id}/
    • /biz/bizUserRecord/{id}/
    • /biz/bizmenus/roleMenuTreeselect/{id}/
    • /biz/bizmenus/treeselect/
    • /biz/bizuser/register/
    • /biz/bizuser/roles/
    • /biz/getInfo/
    • /biz/department/custom_num/
    • /biz/getRouters/
    • /biz/user/changeStatus/
    • /biz/user/details/
    • /biz/user/profile/
    • /biz/user/profile/
    • /biz/user/profile/avatar/
    • /biz/user/profile/updatePwd/
    • /biz/user/resetPwd/
  • bizuser
    • /bizuser/authlogin/
  • dms
    • /dms/dmsbill/billback_create/
    • /dms/dmsbill/billback_receive/
    • /dms/dmsbill/billdistr_create/
    • /dms/dmsbill/billdistr_receive/
    • /dms/dmsbill/billdistr_end/
    • /dms/dmsbill/make_qrcode/
    • /dms/dmsbill/make_back_qrcode/
    • /dms/dmsbillback/
    • /dms/dmsbill/billdistr_sign/
    • /dms/dmsbillback/
    • /dms/dmsbillback/{id}/
    • /dms/dmsbillback/{id}/
    • /dms/dmsbillback/{id}/
    • /dms/dmsbillback/{id}/
    • /dms/dmsbilldistr/
    • /dms/dmsbilldistr/
    • /dms/dmsbilldistr/{id}/
    • /dms/dmsbilldistr/{id}/
    • /dms/dmsbilldistr/{id}/
    • /dms/dmsbilldistr/{id}/
    • /dms/dmsbilltrace/
    • /dms/dmsbilltrace/
    • /dms/dmsbilltrace/{id}/
    • /dms/dmsbilltrace/{id}/
    • /dms/dmsbilltrace/{id}/
    • /dms/dmsbilltrace/{id}/
    • /dms/dmstracerecord/
    • /dms/dmstracerecord/
    • /dms/dmstracerecord/{id}/
    • /dms/dmstracerecord/get_count_car/
    • /dms/dmstracerecord/{id}/
    • /dms/dmstracerecord/{id}/
    • /dms/dmstracerecord/{id}/
  • oms
    • /oms/customerComplaint/
    • /oms/customerComplaint/
    • /oms/customerComplaint/{id}/
    • /oms/customerComplaint/{id}/
    • /oms/customerComplaint/{id}/
    • /oms/customerComplaint/{id}/
    • /oms/rfidTag/
    • /oms/rfidTag/
    • /oms/rfidTag/{id}/
    • /oms/rfidTag/{id}/
    • /oms/rfidTag/{id}/
    • /oms/rfidTag/{id}/
    • /oms/serviceComment/
    • /oms/serviceComment/
    • /oms/serviceComment/{id}/
    • /oms/serviceComment/{id}/
    • /oms/serviceComment/{id}/
    • /oms/serviceComment/{id}/
    • /oms/supplyInfo/
    • /oms/supplyInfo/
    • /oms/supplyInfo/{id}/
    • /oms/supplyInfo/{id}/
    • /oms/supplyInfo/{id}/
    • /oms/supplyInfo/{id}/
    • /oms/texInfo/
    • /oms/texInfo/
    • /oms/texInfo/texsortAlls/
    • /oms/texInfo/get_texno/
    • /oms/texInfo/texsorts/
    • /oms/texInfo/{id}/
    • /oms/texInfo/{id}/
    • /oms/texInfo/{id}/
    • /oms/texInfo/{id}/
    • /oms/texMaintain/
    • /oms/texMaintain/
    • /oms/texMaintain/{id}/
    • /oms/texMaintain/{id}/
    • /oms/texMaintain/{id}/
    • /oms/texMaintain/{id}/
  • wms
    • /wms/wmsware/
    • /wms/wmsware/
    • /wms/wmsware/check_in/
    • /wms/wmsware/check_info/
    • /wms/wmsware/check_out/
    • /wms/wmsware/in/
    • /wms/wmsware/info/
    • /wms/wmsware/number/
    • /wms/wmsware/out/
    • /wms/wmsware/{id}/
    • /wms/wmsware/{id}/
    • /wms/wmsware/{id}/
    • /wms/wmsware/{id}/
    • /wms/wmswarecheck/
    • /wms/wmswarecheck/
    • /wms/wmswarecheck/{id}/
    • /wms/wmswarecheck/{id}/
    • /wms/wmswarecheck/{id}/
    • /wms/wmswarecheck/{id}/
    • /wms/wmswarein/
    • /wms/wmswarein/
    • /wms/wmswarein/{id}/
    • /wms/wmswarein/{id}/
    • /wms/wmswarein/{id}/
    • /wms/wmswarein/{id}/
    • /wms/wmswareout/
    • /wms/wmswareout/
    • /wms/wmswareout/{id}/
    • /wms/wmswareout/{id}/
    • /wms/wmswareout/{id}/
    • /wms/wmswareout/{id}/
    • /wms/wmswarestore/
    • /wms/wmswarestore/
    • /wms/wmswarestore/{id}/
    • /wms/wmswarestore/{id}/
    • /wms/wmswarestore/{id}/
    • /wms/wmswarestore/{id}/
  • 查询用户名称
    GET
  • 请求角色
    GET
  1. admin

/admin/celery/periodictask/{id}/

PUT
/admin/celery/periodictask/{id}/
admin
PeriodicTask celery 任务数据模型
name 名称
task celery任务名称
interval 频率
crontab 任务编排
args 形式参数
kwargs 位置参数
queue 队列名称
exchange 交换
routing_key 路由密钥
expires 过期时间
enabled 是否开启

请求参数

Path 参数
id
string 
必需
Body 参数application/json
Model representing a periodic task.
name
string 
Name
必需
Short Description For This Task
>= 1 字符<= 200 字符
task
string 
Task Name
必需
The Name of the Celery Task that Should be Run. (Example: "proj.tasks.import_contacts")
>= 1 字符<= 200 字符
args
string 
Positional Arguments
可选
JSON encoded positional arguments (Example: ["arg1", "arg2"])
kwargs
string 
Keyword Arguments
可选
JSON encoded keyword arguments (Example: {"argument": "value"})
queue
string  | null 
Queue Override
可选
Queue defined in CELERY_TASK_QUEUES. Leave None for default queuing.
<= 200 字符
exchange
string  | null 
Exchange
可选
Override Exchange for low-level AMQP routing
<= 200 字符
routing_key
string  | null 
Routing Key
可选
Override Routing Key for low-level AMQP routing
<= 200 字符
headers
string 
AMQP Message Headers
可选
JSON encoded message headers for the AMQP message.
priority
integer  | null 
Priority
可选
Priority Number between 0 and 255. Supported by: RabbitMQ, Redis (priority reversed, 0 is highest).
>= 0<= 255
expires
string <date-time> | null 
Expires Datetime
可选
Datetime after which the schedule will no longer trigger the task to run
expire_seconds
integer  | null 
Expires timedelta with seconds
可选
Timedelta with seconds which the schedule will no longer trigger the task to run
>= 0<= 4294967295
one_off
boolean 
One-off Task
可选
If True, the schedule will only run the task a single time
start_time
string <date-time> | null 
Start Datetime
可选
Datetime when the schedule should begin triggering the task to run
enabled
boolean 
Enabled
可选
Set to False to disable the schedule
description
string 
Description
可选
Detailed description about the details of this Periodic Task
interval
integer  | null 
Interval Schedule
可选
Interval Schedule to run the task on. Set only one schedule type, leave the others null.
crontab
integer  | null 
Crontab Schedule
可选
Crontab Schedule to run the task on. Set only one schedule type, leave the others null.
solar
integer  | null 
Solar Schedule
可选
Solar Schedule to run the task on. Set only one schedule type, leave the others null.
clocked
integer  | null 
Clocked Schedule
可选
Clocked Schedule to run the task on. Set only one schedule type, leave the others null.
示例
{
    "name": "string",
    "task": "string",
    "args": "string",
    "kwargs": "string",
    "queue": "string",
    "exchange": "string",
    "routing_key": "string",
    "headers": "string",
    "priority": 0,
    "expires": "2019-08-24T14:15:22Z",
    "expire_seconds": 0,
    "one_off": true,
    "start_time": "2019-08-24T14:15:22Z",
    "enabled": true,
    "description": "string",
    "interval": 0,
    "crontab": 0,
    "solar": 0,
    "clocked": 0
}

示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request PUT '/admin/celery/periodictask//' \
--header 'Content-Type: application/json' \
--data-raw '{
    "name": "string",
    "task": "string",
    "args": "string",
    "kwargs": "string",
    "queue": "string",
    "exchange": "string",
    "routing_key": "string",
    "headers": "string",
    "priority": 0,
    "expires": "2019-08-24T14:15:22Z",
    "expire_seconds": 0,
    "one_off": true,
    "start_time": "2019-08-24T14:15:22Z",
    "enabled": true,
    "description": "string",
    "interval": 0,
    "crontab": 0,
    "solar": 0,
    "clocked": 0
}'

返回响应

🟢200成功
application/json
Body
Model representing a periodic task.
id
integer 
ID
只读可选
create_datetime
string <date-time>
Create datetime
只读可选
update_datetime
string <date-time>
Update datetime
只读可选
creator_name
string 
Creator name
只读可选
interval_list
string 
Interval list
只读可选
crontab_list
string 
Crontab list
只读可选
name
string 
Name
必需
Short Description For This Task
>= 1 字符<= 200 字符
task
string 
Task Name
必需
The Name of the Celery Task that Should be Run. (Example: "proj.tasks.import_contacts")
>= 1 字符<= 200 字符
args
string 
Positional Arguments
可选
JSON encoded positional arguments (Example: ["arg1", "arg2"])
kwargs
string 
Keyword Arguments
可选
JSON encoded keyword arguments (Example: {"argument": "value"})
queue
string  | null 
Queue Override
可选
Queue defined in CELERY_TASK_QUEUES. Leave None for default queuing.
<= 200 字符
exchange
string  | null 
Exchange
可选
Override Exchange for low-level AMQP routing
<= 200 字符
routing_key
string  | null 
Routing Key
可选
Override Routing Key for low-level AMQP routing
<= 200 字符
headers
string 
AMQP Message Headers
可选
JSON encoded message headers for the AMQP message.
priority
integer  | null 
Priority
可选
Priority Number between 0 and 255. Supported by: RabbitMQ, Redis (priority reversed, 0 is highest).
>= 0<= 255
expires
string <date-time> | null 
Expires Datetime
可选
Datetime after which the schedule will no longer trigger the task to run
expire_seconds
integer  | null 
Expires timedelta with seconds
可选
Timedelta with seconds which the schedule will no longer trigger the task to run
>= 0<= 4294967295
one_off
boolean 
One-off Task
可选
If True, the schedule will only run the task a single time
start_time
string <date-time> | null 
Start Datetime
可选
Datetime when the schedule should begin triggering the task to run
enabled
boolean 
Enabled
可选
Set to False to disable the schedule
last_run_at
string <date-time>
Last Run Datetime
只读可选
Datetime that the schedule last triggered the task to run. Reset to None if enabled is set to False.
total_run_count
integer 
Total Run Count
只读可选
Running count of how many times the schedule has triggered the task
date_changed
string <date-time>
Last Modified
只读可选
Datetime that this PeriodicTask was last modified
description
string 
Description
可选
Detailed description about the details of this Periodic Task
interval
integer  | null 
Interval Schedule
可选
Interval Schedule to run the task on. Set only one schedule type, leave the others null.
crontab
integer  | null 
Crontab Schedule
可选
Crontab Schedule to run the task on. Set only one schedule type, leave the others null.
solar
integer  | null 
Solar Schedule
可选
Solar Schedule to run the task on. Set only one schedule type, leave the others null.
clocked
integer  | null 
Clocked Schedule
可选
Clocked Schedule to run the task on. Set only one schedule type, leave the others null.
示例
{
    "id": 0,
    "create_datetime": "2019-08-24T14:15:22Z",
    "update_datetime": "2019-08-24T14:15:22Z",
    "creator_name": "string",
    "interval_list": "string",
    "crontab_list": "string",
    "name": "string",
    "task": "string",
    "args": "string",
    "kwargs": "string",
    "queue": "string",
    "exchange": "string",
    "routing_key": "string",
    "headers": "string",
    "priority": 0,
    "expires": "2019-08-24T14:15:22Z",
    "expire_seconds": 0,
    "one_off": true,
    "start_time": "2019-08-24T14:15:22Z",
    "enabled": true,
    "last_run_at": "2019-08-24T14:15:22Z",
    "total_run_count": 0,
    "date_changed": "2019-08-24T14:15:22Z",
    "description": "string",
    "interval": 0,
    "crontab": 0,
    "solar": 0,
    "clocked": 0
}
上一页
/admin/celery/periodictask/{id}/
下一页
/admin/celery/periodictask/{id}/
Built with