add.md 5.67 KB

新增计划书

OpenAPI Specification

openapi: 3.0.1
info:
  title: ''
  version: 1.0.0
paths:
  /srv/:
    post:
      summary: 新增计划书
      deprecated: false
      description: ''
      tags:
        - 计划书
      parameters:
        - name: f
          in: query
          description: ''
          required: false
          example: manulife
          schema:
            type: string
        - name: a
          in: query
          description: ''
          required: false
          example: proposal
          schema:
            type: string
        - name: t
          in: query
          description: ''
          required: false
          example: add
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                customer_name:
                  type: string
                  title: 申请人
                customer_gender:
                  type: string
                  title: 性别
                customer_age:
                  type: integer
                  title: 年龄
                customer_birthday:
                  type: string
                  title: 出生年月日
                annual_premium:
                  type: integer
                  title: 年缴保费
                payment_years:
                  type: string
                  title: 繳費年期
                currency_type:
                  type: string
                  title: 币种
                allow_reduce_amount:
                  type: string
                  title: 是否容许减少名义金额
                withdrawal_option:
                  type: string
                  title: 提取选项
                withdrawal_start_age:
                  type: integer
                  title: 提取开始年龄
                withdrawal_period:
                  type: integer
                  title: 提取期(年)
                smoking_status:
                  type: string
                  title: 是否吸烟
                total_premium:
                  type: integer
                  title: 总保费金额
                product_id:
                  type: integer
                  title: 产品id
                annual_withdrawal_amount:
                  type: integer
                  title: 每年提取金额
                annual_increase_percentage:
                  type: integer
                  title: 每年递增提取百分比
                coverage:
                  type: string
                  title: 保额
              required:
                - customer_name
                - customer_gender
                - customer_age
                - customer_birthday
                - annual_premium
                - payment_years
                - currency_type
                - allow_reduce_amount
                - withdrawal_option
                - withdrawal_start_age
                - withdrawal_period
                - smoking_status
                - total_premium
                - product_id
                - annual_increase_percentage
                - annual_withdrawal_amount
                - coverage
              x-apifox-orders:
                - customer_name
                - customer_gender
                - customer_age
                - annual_premium
                - payment_years
                - coverage
                - currency_type
                - product_id
                - customer_birthday
                - allow_reduce_amount
                - withdrawal_option
                - withdrawal_start_age
                - withdrawal_period
                - smoking_status
                - total_premium
                - annual_withdrawal_amount
                - annual_increase_percentage
            example:
              customer_name: 张三
              customer_gender: 
              customer_age: 30
              annual_premium: 5000
              payment_years: 10年
              currency_type: CNY
              product_id: 3151974
              customer_birthday: '2025-03-21'
              allow_reduce_amount: 
              withdrawal_option: 指定提取金额
              withdrawal_start_age: 60
              withdrawal_period: 10
              smoking_status: 
              total_premium: 0
              annual_withdrawal_amount: 6
              annual_increase_percentage: 33
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                  msg:
                    type: string
                  data:
                    type: object
                    properties:
                      order_id:
                        type: string
                    required:
                      - order_id
                    x-apifox-orders:
                      - order_id
                required:
                  - code
                  - msg
                  - data
                x-apifox-orders:
                  - code
                  - msg
                  - data
              example:
                code: 1
                msg: 计划书申请提交成功
                data:
                  order_id: '2769902'
          headers: {}
          x-apifox-name: 成功
          x-apifox-ordering: 0
      security: []
      x-apifox-folder: 计划书
      x-apifox-status: released
      x-run-in-apifox: https://app.apifox.com/web/project/7792797/apis/api-417310981-run
components:
  schemas: {}
  responses: {}
  securitySchemes: {}
servers: []
security: []