You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by li...@apache.org on 2023/11/29 08:47:05 UTC

(incubator-answer) 02/02: docs(swagger): update swagger docs

This is an automated email from the ASF dual-hosted git repository.

linkinstar pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/incubator-answer.git

commit 1a7cbb780bedc14776a94019b95ae060d405b2a4
Author: LinkinStars <li...@foxmail.com>
AuthorDate: Wed Nov 29 16:46:49 2023 +0800

    docs(swagger): update swagger docs
---
 docs/docs.go      | 32 ++++----------------------------
 docs/swagger.json | 13 ++++---------
 docs/swagger.yaml | 27 +++------------------------
 3 files changed, 11 insertions(+), 61 deletions(-)

diff --git a/docs/docs.go b/docs/docs.go
index 897fcd66..4cbf5956 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -1,22 +1,3 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements.  See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership.  The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License.  You may obtain a copy of the License at
- *
- *   http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied.  See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
 // Code generated by swaggo/swag. DO NOT EDIT.
 
 package docs
@@ -6902,12 +6883,13 @@ const docTemplate = `{
                 "object_id"
             ],
             "properties": {
+                "bookmark": {
+                    "type": "boolean"
+                },
                 "group_id": {
-                    "description": "user collection group TagID",
                     "type": "string"
                 },
                 "object_id": {
-                    "description": "object TagID",
                     "type": "string"
                 }
             }
@@ -6916,13 +6898,7 @@ const docTemplate = `{
             "type": "object",
             "properties": {
                 "object_collection_count": {
-                    "type": "string"
-                },
-                "object_id": {
-                    "type": "string"
-                },
-                "switch": {
-                    "type": "boolean"
+                    "type": "integer"
                 }
             }
         },
diff --git a/docs/swagger.json b/docs/swagger.json
index 48b6283e..5930b339 100644
--- a/docs/swagger.json
+++ b/docs/swagger.json
@@ -6871,12 +6871,13 @@
                 "object_id"
             ],
             "properties": {
+                "bookmark": {
+                    "type": "boolean"
+                },
                 "group_id": {
-                    "description": "user collection group TagID",
                     "type": "string"
                 },
                 "object_id": {
-                    "description": "object TagID",
                     "type": "string"
                 }
             }
@@ -6885,13 +6886,7 @@
             "type": "object",
             "properties": {
                 "object_collection_count": {
-                    "type": "string"
-                },
-                "object_id": {
-                    "type": "string"
-                },
-                "switch": {
-                    "type": "boolean"
+                    "type": "integer"
                 }
             }
         },
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 851e8a86..34f49144 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -1,20 +1,3 @@
-# Licensed to the Apache Software Foundation (ASF) under one
-# or more contributor license agreements.  See the NOTICE file
-# distributed with this work for additional information
-# regarding copyright ownership.  The ASF licenses this file
-# to you under the Apache License, Version 2.0 (the
-# "License"); you may not use this file except in compliance
-# with the License.  You may obtain a copy of the License at
-#
-#   http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing,
-# software distributed under the License is distributed on an
-# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
-# KIND, either express or implied.  See the License for the
-# specific language governing permissions and limitations
-# under the License.
-
 definitions:
   constant.NotificationChannelKey:
     enum:
@@ -357,11 +340,11 @@ definitions:
     type: object
   schema.CollectionSwitchReq:
     properties:
+      bookmark:
+        type: boolean
       group_id:
-        description: user collection group TagID
         type: string
       object_id:
-        description: object TagID
         type: string
     required:
     - group_id
@@ -370,11 +353,7 @@ definitions:
   schema.CollectionSwitchResp:
     properties:
       object_collection_count:
-        type: string
-      object_id:
-        type: string
-      switch:
-        type: boolean
+        type: integer
     type: object
   schema.ConfigField:
     properties: