add
wangpengfei
2023-07-21 54f4078e9462871995cf4b241df217b18cdd6e08
docs/swagger.yaml
@@ -558,6 +558,13 @@
      name:
        type: string
    type: object
  model.ReportSource:
    properties:
      id:
        type: integer
      name:
        type: string
    type: object
  model.SaleChance:
    properties:
      advantages:
@@ -1278,6 +1285,13 @@
    - name
    type: object
  request.AddRegularCustomers:
    properties:
      name:
        type: string
    required:
    - name
    type: object
  request.AddReportSource:
    properties:
      name:
        type: string
@@ -2469,6 +2483,25 @@
    required:
    - regularCustomers
    type: object
  request.UpdateReportSource:
    properties:
      id:
        type: integer
      name:
        type: string
    required:
    - id
    - name
    type: object
  request.UpdateReportSources:
    properties:
      report_source:
        items:
          $ref: '#/definitions/request.UpdateReportSource'
        type: array
    required:
    - report_source
    type: object
  request.UpdateSaleChance:
    properties:
      advantages:
@@ -3037,6 +3070,11 @@
        items:
          $ref: '#/definitions/model.RegularCustomers'
        type: array
      reportSource:
        description: 报表来源
        items:
          $ref: '#/definitions/model.ReportSource'
        type: array
      sale_stage:
        description: 销售阶段
        items:
@@ -3183,6 +3221,13 @@
      list:
        items:
          $ref: '#/definitions/model.RegularCustomers'
        type: array
    type: object
  response.ReportSourceResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.ReportSource'
        type: array
    type: object
  response.SaleChanceResponse:
@@ -4721,7 +4766,7 @@
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加订单
      summary: 添加工单
      tags:
      - OrderManage
  /api/orderManage/delete/{id}:
@@ -4739,7 +4784,7 @@
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 删除订单
      summary: 删除工单
      tags:
      - OrderManage
  /api/orderManage/list:
@@ -4751,7 +4796,7 @@
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 订单列表
      summary: 工单列表
      tags:
      - OrderManage
  /api/orderManage/update:
@@ -4770,7 +4815,7 @@
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新订单
      summary: 更新工单
      tags:
      - OrderManage
  /api/plan/add:
@@ -5329,6 +5374,79 @@
      summary: 更新常客
      tags:
      - RegularCustomers
  /api/reportSource/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddReportSource'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加报表来源
      tags:
      - ReportSource
  /api/reportSource/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:
      - ReportSource
  /api/reportSource/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.ReportSourceResponse'
              type: object
      summary: 获取报表来源列表
      tags:
      - ReportSource
  /api/reportSource/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateReportSources'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新报表来源
      tags:
      - ReportSource
  /api/saleChance/add:
    post:
      parameters: