From ac5468a5ce91c4a9ba7c9610c6bef78e24bf6dce Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期一, 10 七月 2023 11:14:18 +0800
Subject: [PATCH] add

---
 docs/swagger.yaml |  115 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 114 insertions(+), 1 deletions(-)

diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 55dbd57..219a2f8 100644
--- a/docs/swagger.yaml
+++ b/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:

--
Gitblit v1.8.0