自动判断content_type
This commit is contained in:
@@ -129,20 +129,24 @@ definitions:
|
||||
- 0
|
||||
- 1
|
||||
- 2
|
||||
- 3
|
||||
format: int32
|
||||
type: integer
|
||||
x-enum-comments:
|
||||
PlanStatusDisabled: 禁用计划
|
||||
PlanStatusEnabled: 启用计划
|
||||
PlanStatusFailed: 执行失败
|
||||
PlanStatusStopeed: 执行完毕
|
||||
x-enum-descriptions:
|
||||
- 启用计划
|
||||
- 禁用计划
|
||||
- 启用计划
|
||||
- 执行完毕
|
||||
- 执行失败
|
||||
x-enum-varnames:
|
||||
- PlanStatusEnabled
|
||||
- PlanStatusDisabled
|
||||
- PlanStatusEnabled
|
||||
- PlanStatusStopeed
|
||||
- PlanStatusFailed
|
||||
models.TaskType:
|
||||
enum:
|
||||
- plan_analysis
|
||||
@@ -159,10 +163,6 @@ definitions:
|
||||
- TaskTypeWaiting
|
||||
plan.CreatePlanRequest:
|
||||
properties:
|
||||
content_type:
|
||||
allOf:
|
||||
- $ref: '#/definitions/models.PlanContentType'
|
||||
example: tasks
|
||||
cron_expression:
|
||||
example: 0 0 6 * * *
|
||||
type: string
|
||||
@@ -188,7 +188,6 @@ definitions:
|
||||
$ref: '#/definitions/plan.TaskRequest'
|
||||
type: array
|
||||
required:
|
||||
- content_type
|
||||
- execution_type
|
||||
- name
|
||||
type: object
|
||||
@@ -306,10 +305,6 @@ definitions:
|
||||
type: object
|
||||
plan.UpdatePlanRequest:
|
||||
properties:
|
||||
content_type:
|
||||
allOf:
|
||||
- $ref: '#/definitions/models.PlanContentType'
|
||||
example: tasks
|
||||
cron_expression:
|
||||
example: 0 0 6 * * *
|
||||
type: string
|
||||
|
||||
Reference in New Issue
Block a user