自动判断content_type
This commit is contained in:
31
docs/docs.go
31
docs/docs.go
@@ -741,22 +741,26 @@ const docTemplate = `{
|
||||
"enum": [
|
||||
0,
|
||||
1,
|
||||
2
|
||||
2,
|
||||
3
|
||||
],
|
||||
"x-enum-comments": {
|
||||
"PlanStatusDisabled": "禁用计划",
|
||||
"PlanStatusEnabled": "启用计划",
|
||||
"PlanStatusFailed": "执行失败",
|
||||
"PlanStatusStopeed": "执行完毕"
|
||||
},
|
||||
"x-enum-descriptions": [
|
||||
"启用计划",
|
||||
"禁用计划",
|
||||
"执行完毕"
|
||||
"启用计划",
|
||||
"执行完毕",
|
||||
"执行失败"
|
||||
],
|
||||
"x-enum-varnames": [
|
||||
"PlanStatusEnabled",
|
||||
"PlanStatusDisabled",
|
||||
"PlanStatusStopeed"
|
||||
"PlanStatusEnabled",
|
||||
"PlanStatusStopeed",
|
||||
"PlanStatusFailed"
|
||||
]
|
||||
},
|
||||
"models.TaskType": {
|
||||
@@ -781,19 +785,10 @@ const docTemplate = `{
|
||||
"plan.CreatePlanRequest": {
|
||||
"type": "object",
|
||||
"required": [
|
||||
"content_type",
|
||||
"execution_type",
|
||||
"name"
|
||||
],
|
||||
"properties": {
|
||||
"content_type": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/models.PlanContentType"
|
||||
}
|
||||
],
|
||||
"example": "tasks"
|
||||
},
|
||||
"cron_expression": {
|
||||
"type": "string",
|
||||
"example": "0 0 6 * * *"
|
||||
@@ -1005,14 +1000,6 @@ const docTemplate = `{
|
||||
"plan.UpdatePlanRequest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"content_type": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/models.PlanContentType"
|
||||
}
|
||||
],
|
||||
"example": "tasks"
|
||||
},
|
||||
"cron_expression": {
|
||||
"type": "string",
|
||||
"example": "0 0 6 * * *"
|
||||
|
||||
Reference in New Issue
Block a user