迭代批量安排酒店

This commit is contained in:
andy committed 2026-09-24 14:43:08 +08:00
1 parent 4cfbefffe8
commit c2c71d35af
48 files changed
+5670 -57

No files matched your search

+113 -2
View File
@@ -54,7 +54,10 @@
"$ref": "#/$defs/operationData"
}
},
"allOf": [
"allOf": [{
"if": { "properties": { "data": { "required": ["arrangements"] } }, "required": ["data"] },
"then": { "$ref": "#/$defs/hotelBatch" },
"else": { "allOf": [
{
"if": { "properties": { "data": { "properties": { "arrangement": { "required": ["vehicle_type"] } }, "required": ["arrangement"] } }, "required": ["data"] },
"then": { "properties": { "action": { "const": "arrangement_vehicle" }, "data": { "properties": { "arrangement": { "properties": { "mode": { "enum": ["create", "update"] } } } } } } }
@@ -1326,8 +1329,115 @@
}
}
}
],
] } }],
"$defs": {
"hotelBatch": {
"title": "Program-only same-team hotel creation batch",
"type": "object",
"additionalProperties": false,
"required": [
"action",
"order_nature",
"submit_mode",
"data"
],
"properties": {
"action": {
"const": "arrangement_hotel"
},
"order_nature": {
"const": "formal"
},
"submit_mode": {
"const": "dry_run"
},
"data": {
"type": "object",
"additionalProperties": false,
"required": [
"existing_refs",
"arrangements"
],
"properties": {
"existing_refs": {
"type": "object",
"additionalProperties": false,
"required": [
"identifier"
],
"properties": {
"identifier": {
"type": "string",
"minLength": 1
},
"kind": {
"enum": [
"independent_order",
"shared_plan"
]
}
}
},
"arrangements": {
"type": "array",
"minItems": 2,
"maxItems": 10,
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"mode",
"resource",
"start_date",
"end_date",
"room_count"
],
"properties": {
"mode": {
"const": "create"
},
"resource": {
"type": "object",
"additionalProperties": false,
"required": ["name"],
"properties": {
"name": {
"type": "string",
"minLength": 1
},
"keyword": {
"type": "string",
"minLength": 1
},
"source_region": {
"type": "string",
"minLength": 1
}
}
},
"start_date": {
"type": "string",
"format": "date"
},
"end_date": {
"type": "string",
"format": "date"
},
"room_count": {
"type": "integer",
"minimum": 1
},
"remark": {
"type": "string",
"minLength": 1
}
}
}
}
}
}
}
},
"operationData": {
"type": "object",
"additionalProperties": false,
@@ -1416,6 +1526,7 @@
},
"additionalProperties": true
},
"arrangements": { "type": "array" },
"arrangement": { "$ref": "#/$defs/arrangement" },
"transition": { "$ref": "#/$defs/transition" },
"delete_guard": { "$ref": "#/$defs/deleteGuard" },