add
wangpengfei
2023-07-10 f1fbbbf99f7fa820f51cb47aee4df7e7cf3df6f0
docs/swagger.yaml
@@ -349,6 +349,29 @@
      name:
        type: string
    type: object
  model.Quotation:
    properties:
      client_id:
        type: integer
      conditions:
        type: string
      contact_id:
        type: integer
      file:
        type: string
      id:
        type: integer
      member_id:
        type: integer
      number:
        type: string
      quotation_status_id:
        type: integer
      sale_chance_id:
        type: integer
      validity_date:
        type: string
    type: object
  model.Region:
    properties:
      id:
@@ -752,6 +775,27 @@
    properties:
      name:
        description: 省份名称
        type: string
    type: object
  request.AddQuotation:
    properties:
      client_id:
        type: integer
      conditions:
        type: string
      contact_id:
        type: integer
      file:
        type: string
      member_id:
        type: integer
      number:
        type: string
      quotation_status_id:
        type: integer
      sale_chance_id:
        type: integer
      validity_date:
        type: string
    type: object
  request.AddRegion:
@@ -1426,6 +1470,29 @@
          $ref: '#/definitions/request.UpdateProvince'
        type: array
    type: object
  request.UpdateQuotation:
    properties:
      client_id:
        type: integer
      conditions:
        type: string
      contact_id:
        type: integer
      file:
        type: string
      id:
        type: integer
      member_id:
        type: integer
      number:
        type: string
      quotation_status_id:
        type: integer
      sale_chance_id:
        type: integer
      validity_date:
        type: string
    type: object
  request.UpdateRegion:
    properties:
      id:
@@ -1774,6 +1841,13 @@
      list:
        items:
          $ref: '#/definitions/model.Province'
        type: array
    type: object
  response.QuotationResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.Quotation'
        type: array
    type: object
  response.RegisteredCapitalResponse:
@@ -2952,6 +3026,79 @@
      summary: 更新省份
      tags:
      - Province
  /api/quotation/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddQuotation'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加报价单
      tags:
      - Quotation
  /api/quotation/delete/{id}:
    delete:
      parameters:
      - description: 查询参数
        in: path
        name: id
        required: true
        type: integer
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 删除报价单
      tags:
      - Quotation
  /api/quotation/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.QuotationResponse'
              type: object
      summary: 报价单列表
      tags:
      - Quotation
  /api/quotation/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateQuotation'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新报价单
      tags:
      - Quotation
  /api/region/add:
    post:
      parameters: