add
wangpengfei
2023-07-10 ac5468a5ce91c4a9ba7c9610c6bef78e24bf6dce
docs/swagger.yaml
@@ -331,6 +331,13 @@
      name:
        type: string
    type: object
  model.Possibility:
    properties:
      id:
        type: integer
      name:
        type: string
    type: object
  model.Province:
    properties:
      cities:
@@ -411,7 +418,7 @@
        type: string
      pain_points:
        type: string
      possibilities:
      possibilities_id:
        type: integer
      process:
        type: string
@@ -728,6 +735,13 @@
    - follow_record
    type: object
  request.AddIndustry:
    properties:
      name:
        type: string
    required:
    - name
    type: object
  request.AddPossibility:
    properties:
      name:
        type: string
@@ -1369,6 +1383,25 @@
    - id
    - name
    type: object
  request.UpdatePossibilities:
    properties:
      possibilities:
        items:
          $ref: '#/definitions/request.UpdatePossibility'
        type: array
    required:
    - possibilities
    type: object
  request.UpdatePossibility:
    properties:
      id:
        type: integer
      name:
        type: string
    required:
    - id
    - name
    type: object
  request.UpdateProvince:
    properties:
      id:
@@ -1702,6 +1735,13 @@
        type: integer
      total:
        type: integer
    type: object
  response.PossibilityResponse:
    properties:
      list:
        items:
          $ref: '#/definitions/model.Possibility'
        type: array
    type: object
  response.ProvinceResponse:
    properties:
@@ -2721,6 +2761,79 @@
      summary: 更新行业
      tags:
      - Industry
  /api/possibility/add:
    post:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.AddPossibility'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 添加商机可能性
      tags:
      - Possibility
  /api/possibility/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:
      - Possibility
  /api/possibility/list:
    get:
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            allOf:
            - $ref: '#/definitions/contextx.Response'
            - properties:
                data:
                  $ref: '#/definitions/response.PossibilityResponse'
              type: object
      summary: 商机可能性列表
      tags:
      - Possibility
  /api/possibility/update:
    put:
      parameters:
      - description: 查询参数
        in: body
        name: object
        required: true
        schema:
          $ref: '#/definitions/request.UpdatePossibilities'
      produces:
      - application/json
      responses:
        "200":
          description: OK
          schema:
            $ref: '#/definitions/contextx.Response'
      summary: 更新商机可能性
      tags:
      - Possibility
  /api/province/add:
    post:
      parameters: