add
wangpengfei
2023-07-07 045199a75fceedea2e310d8798922c302f317849
docs/swagger.yaml
@@ -444,6 +444,13 @@
      name:
        type: string
    type: object
  model.SaleType:
    properties:
      id:
        type: integer
      name:
        type: string
    type: object
  model.SalesLeads:
    properties:
      city:
@@ -805,6 +812,13 @@
        type: string
    type: object
  request.AddSaleStage:
    properties:
      name:
        type: string
    required:
    - name
    type: object
  request.AddSaleType:
    properties:
      name:
        type: string
@@ -1480,6 +1494,25 @@
    required:
    - sale_stages
    type: object
  request.UpdateSaleType:
    properties:
      id:
        type: integer
      name:
        type: string
    required:
    - id
    - name
    type: object
  request.UpdateSaleTypes:
    properties:
      sale_types:
        items:
          $ref: '#/definitions/request.UpdateSaleType'
        type: array
    required:
    - sale_types
    type: object
  request.UpdateSalesLeads:
    properties:
      city_id:
@@ -1663,6 +1696,13 @@
      list:
        items:
          $ref: '#/definitions/model.SaleStage'
        type: array
    type: object
  response.SaleTypeResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.SaleType'
        type: array
    type: object
  response.SalesLeadsResponse:
@@ -3039,6 +3079,79 @@
      summary: 更新销售阶段
      tags:
      - SaleStage
  /api/saleType/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddSaleType'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加销售类型
      tags:
      - SaleType
  /api/saleType/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:
      - SaleType
  /api/saleType/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.SaleTypeResponse'
              type: object
      summary: 获取销售类型列表
      tags:
      - SaleType
  /api/saleType/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdateSaleTypes'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新销售类型
      tags:
      - SaleType
  /api/salesLeads/add:
    post:
      parameters: