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 2024/03/06 01:58:24 UTC

(incubator-answer) 02/02: chore: sync swagger

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 c014be823b494007c379ece3416512fa9067cef1
Author: sy-records <52...@qq52o.cn>
AuthorDate: Tue Mar 5 17:14:18 2024 +0800

    chore: sync swagger
---
 docs/docs.go      | 46 ++++++++++++++++++++++++++++++++++++++++++----
 docs/swagger.json | 46 ++++++++++++++++++++++++++++++++++++++++++----
 docs/swagger.yaml | 30 +++++++++++++++++++++++++++++-
 3 files changed, 113 insertions(+), 9 deletions(-)

diff --git a/docs/docs.go b/docs/docs.go
index dc56880a..ee259828 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -6554,7 +6554,8 @@ const docTemplate = `{
                     "type": "string"
                 },
                 "value": {
-                    "type": "integer"
+                    "type": "integer",
+                    "minimum": 1
                 }
             }
         },
@@ -7094,6 +7095,12 @@ const docTemplate = `{
                 "action": {
                     "$ref": "#/definitions/schema.UIOptionAction"
                 },
+                "class_name": {
+                    "type": "string"
+                },
+                "field_class_name": {
+                    "type": "string"
+                },
                 "input_type": {
                     "type": "string"
                 },
@@ -7374,6 +7381,10 @@ const docTemplate = `{
                     "description": "bio html",
                     "type": "string"
                 },
+                "color_scheme": {
+                    "description": "Color scheme",
+                    "type": "string"
+                },
                 "created_at": {
                     "description": "create time",
                     "type": "integer"
@@ -8161,12 +8172,14 @@ const docTemplate = `{
             "enum": [
                 1,
                 2,
-                3
+                3,
+                99
             ],
             "x-enum-varnames": [
                 "PrivilegeLevel1",
                 "PrivilegeLevel2",
-                "PrivilegeLevel3"
+                "PrivilegeLevel3",
+                "PrivilegeLevelCustom"
             ]
         },
         "schema.PrivilegeOption": {
@@ -9074,6 +9087,10 @@ const docTemplate = `{
                 "theme"
             ],
             "properties": {
+                "color_scheme": {
+                    "type": "string",
+                    "maxLength": 100
+                },
                 "theme": {
                     "type": "string",
                     "maxLength": 255
@@ -9087,6 +9104,9 @@ const docTemplate = `{
         "schema.SiteThemeResp": {
             "type": "object",
             "properties": {
+                "color_scheme": {
+                    "type": "string"
+                },
                 "theme": {
                     "type": "string"
                 },
@@ -9435,8 +9455,13 @@ const docTemplate = `{
                 "level"
             ],
             "properties": {
+                "custom_privileges": {
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/constant.Privilege"
+                    }
+                },
                 "level": {
-                    "maximum": 3,
                     "minimum": 1,
                     "allOf": [
                         {
@@ -9542,9 +9567,15 @@ const docTemplate = `{
         "schema.UpdateUserInterfaceRequest": {
             "type": "object",
             "required": [
+                "color_scheme",
                 "language"
             ],
             "properties": {
+                "color_scheme": {
+                    "description": "Color scheme",
+                    "type": "string",
+                    "maxLength": 100
+                },
                 "language": {
                     "description": "language",
                     "type": "string",
@@ -9652,6 +9683,9 @@ const docTemplate = `{
                 "id": {
                     "type": "string"
                 },
+                "language": {
+                    "type": "string"
+                },
                 "location": {
                     "type": "string"
                 },
@@ -9757,6 +9791,10 @@ const docTemplate = `{
                     "description": "bio html",
                     "type": "string"
                 },
+                "color_scheme": {
+                    "description": "Color scheme",
+                    "type": "string"
+                },
                 "created_at": {
                     "description": "create time",
                     "type": "integer"
diff --git a/docs/swagger.json b/docs/swagger.json
index 83bde221..d65e30bd 100644
--- a/docs/swagger.json
+++ b/docs/swagger.json
@@ -6523,7 +6523,8 @@
                     "type": "string"
                 },
                 "value": {
-                    "type": "integer"
+                    "type": "integer",
+                    "minimum": 1
                 }
             }
         },
@@ -7063,6 +7064,12 @@
                 "action": {
                     "$ref": "#/definitions/schema.UIOptionAction"
                 },
+                "class_name": {
+                    "type": "string"
+                },
+                "field_class_name": {
+                    "type": "string"
+                },
                 "input_type": {
                     "type": "string"
                 },
@@ -7343,6 +7350,10 @@
                     "description": "bio html",
                     "type": "string"
                 },
+                "color_scheme": {
+                    "description": "Color scheme",
+                    "type": "string"
+                },
                 "created_at": {
                     "description": "create time",
                     "type": "integer"
@@ -8130,12 +8141,14 @@
             "enum": [
                 1,
                 2,
-                3
+                3,
+                99
             ],
             "x-enum-varnames": [
                 "PrivilegeLevel1",
                 "PrivilegeLevel2",
-                "PrivilegeLevel3"
+                "PrivilegeLevel3",
+                "PrivilegeLevelCustom"
             ]
         },
         "schema.PrivilegeOption": {
@@ -9043,6 +9056,10 @@
                 "theme"
             ],
             "properties": {
+                "color_scheme": {
+                    "type": "string",
+                    "maxLength": 100
+                },
                 "theme": {
                     "type": "string",
                     "maxLength": 255
@@ -9056,6 +9073,9 @@
         "schema.SiteThemeResp": {
             "type": "object",
             "properties": {
+                "color_scheme": {
+                    "type": "string"
+                },
                 "theme": {
                     "type": "string"
                 },
@@ -9404,8 +9424,13 @@
                 "level"
             ],
             "properties": {
+                "custom_privileges": {
+                    "type": "array",
+                    "items": {
+                        "$ref": "#/definitions/constant.Privilege"
+                    }
+                },
                 "level": {
-                    "maximum": 3,
                     "minimum": 1,
                     "allOf": [
                         {
@@ -9511,9 +9536,15 @@
         "schema.UpdateUserInterfaceRequest": {
             "type": "object",
             "required": [
+                "color_scheme",
                 "language"
             ],
             "properties": {
+                "color_scheme": {
+                    "description": "Color scheme",
+                    "type": "string",
+                    "maxLength": 100
+                },
                 "language": {
                     "description": "language",
                     "type": "string",
@@ -9621,6 +9652,9 @@
                 "id": {
                     "type": "string"
                 },
+                "language": {
+                    "type": "string"
+                },
                 "location": {
                     "type": "string"
                 },
@@ -9726,6 +9760,10 @@
                     "description": "bio html",
                     "type": "string"
                 },
+                "color_scheme": {
+                    "description": "Color scheme",
+                    "type": "string"
+                },
                 "created_at": {
                     "description": "create time",
                     "type": "integer"
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index ca78bc49..21d72673 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -29,6 +29,7 @@ definitions:
       label:
         type: string
       value:
+        minimum: 1
         type: integer
     type: object
   handler.RespBody:
@@ -403,6 +404,10 @@ definitions:
     properties:
       action:
         $ref: '#/definitions/schema.UIOptionAction'
+      class_name:
+        type: string
+      field_class_name:
+        type: string
       input_type:
         type: string
       label:
@@ -603,6 +608,9 @@ definitions:
       bio_html:
         description: bio html
         type: string
+      color_scheme:
+        description: Color scheme
+        type: string
       created_at:
         description: create time
         type: integer
@@ -1156,11 +1164,13 @@ definitions:
     - 1
     - 2
     - 3
+    - 99
     type: integer
     x-enum-varnames:
     - PrivilegeLevel1
     - PrivilegeLevel2
     - PrivilegeLevel3
+    - PrivilegeLevelCustom
   schema.PrivilegeOption:
     properties:
       level:
@@ -1783,6 +1793,9 @@ definitions:
     type: object
   schema.SiteThemeReq:
     properties:
+      color_scheme:
+        maxLength: 100
+        type: string
       theme:
         maxLength: 255
         type: string
@@ -1794,6 +1807,8 @@ definitions:
     type: object
   schema.SiteThemeResp:
     properties:
+      color_scheme:
+        type: string
       theme:
         type: string
       theme_config:
@@ -2030,10 +2045,13 @@ definitions:
     type: object
   schema.UpdatePrivilegesConfigReq:
     properties:
+      custom_privileges:
+        items:
+          $ref: '#/definitions/constant.Privilege'
+        type: array
       level:
         allOf:
         - $ref: '#/definitions/schema.PrivilegeLevel'
-        maximum: 3
         minimum: 1
     required:
     - level
@@ -2107,11 +2125,16 @@ definitions:
     type: object
   schema.UpdateUserInterfaceRequest:
     properties:
+      color_scheme:
+        description: Color scheme
+        maxLength: 100
+        type: string
       language:
         description: language
         maxLength: 100
         type: string
     required:
+    - color_scheme
     - language
     type: object
   schema.UpdateUserNotificationConfigReq:
@@ -2183,6 +2206,8 @@ definitions:
         type: string
       id:
         type: string
+      language:
+        type: string
       location:
         type: string
       rank:
@@ -2257,6 +2282,9 @@ definitions:
       bio_html:
         description: bio html
         type: string
+      color_scheme:
+        description: Color scheme
+        type: string
       created_at:
         description: create time
         type: integer