docs(api): 更新计划书API文档,年龄与出生年月日改为二选一
- customer_age 和 customer_birthday 不再是必填字段 - 改为条件必填:至少提供一个即可 - 添加字段描述说明 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Showing
1 changed file
with
6 additions
and
2 deletions
| ... | @@ -52,9 +52,12 @@ paths: | ... | @@ -52,9 +52,12 @@ paths: |
| 52 | customer_age: | 52 | customer_age: |
| 53 | type: integer | 53 | type: integer |
| 54 | title: 年龄 | 54 | title: 年龄 |
| 55 | + description: 与 customer_birthday 二选一,至少提供一个 | ||
| 55 | customer_birthday: | 56 | customer_birthday: |
| 56 | type: string | 57 | type: string |
| 57 | title: 出生年月日 | 58 | title: 出生年月日 |
| 59 | + format: date | ||
| 60 | + description: 与 customer_age 二选一,至少提供一个。格式:YYYY-MM-DD | ||
| 58 | annual_premium: | 61 | annual_premium: |
| 59 | type: integer | 62 | type: integer |
| 60 | title: 保额 | 63 | title: 保额 |
| ... | @@ -94,8 +97,9 @@ paths: | ... | @@ -94,8 +97,9 @@ paths: |
| 94 | required: | 97 | required: |
| 95 | - customer_name | 98 | - customer_name |
| 96 | - customer_gender | 99 | - customer_gender |
| 97 | - - customer_age | 100 | + # 年龄与出生年月日二选一(至少提供一个) |
| 98 | - - customer_birthday | 101 | + # - customer_age |
| 102 | + # - customer_birthday | ||
| 99 | - annual_premium | 103 | - annual_premium |
| 100 | - payment_years | 104 | - payment_years |
| 101 | - currency_type | 105 | - currency_type | ... | ... |
-
Please register or login to post a comment