# 添加折扣

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /c4-discount/add-discount:
    post:
      summary: 添加折扣
      deprecated: false
      description: ''
      operationId: addDiscount
      tags:
        - c4/费用管理
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DiscountAddDTO'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StringJsonVO'
          headers: {}
          x-apifox-name: 成功
      security: []
      x-apifox-folder: c4/费用管理
      x-apifox-status: integrating
      x-run-in-apifox: https://app.apifox.com/web/project/6386631/apis/api-306374345-run
components:
  schemas:
    DiscountAddDTO:
      type: object
      properties:
        discount_name:
          type: string
          description: 打折名称
        discount_type:
          type: string
          description: 折扣类型
        rule_id:
          type: string
          description: 规则ID
        discount_desc:
          type: string
          description: 打折说明
        spec_name:
          type: array
          description: 规格名称
          items:
            type: string
        spec_value:
          type: array
          description: 规格值
          items:
            type: string
      x-apifox-orders:
        - discount_name
        - discount_type
        - rule_id
        - discount_desc
        - spec_name
        - spec_value
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
    StringJsonVO:
      type: object
      properties:
        code:
          type: integer
          description: 状态码
          default: 10000
          minimum: -2147483648
          maximum: 2147483647
        message:
          type: string
          description: 提示信息
          default: success
        data:
          type: string
          description: 数据对象
      required:
        - code
        - message
      x-apifox-orders:
        - code
        - message
        - data
      x-apifox-ignore-properties: []
      x-apifox-folder: ''
  securitySchemes:
    bearer_auth:
      type: jwt
      description: Default HTTP Bearer Authorization
      name: Authorization
      in: header
      scheme: bearer
      bearerFormat: JWT
    Authorization:
      type: apikey
      name: Authorization
      in: header
servers: []
security: []

```
