A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
swagger
aichy126a9381056e985
diff --git a/docs/docs.go b/docs/docs.goindex f371483a..91628981 100644--- a/docs/docs.go+++ b/docs/docs.go@@ -6149,12 +6149,21 @@ const docTemplate = `{}}},- "schema.ConfigFields": {+ "schema.ConfigField": {"type": "object","properties": {"description": {"type": "string"},+ "name": {+ "type": "string"+ },+ "options": {+ "type": "array",+ "items": {+ "$ref": "#/definitions/schema.ConfigFieldOption"+ }+ },"required": {"type": "boolean"},@@ -6164,14 +6173,40 @@ const docTemplate = `{"type": {"type": "string"},- "ui_widget": {- "$ref": "#/definitions/schema.UIWidget"+ "ui_options": {+ "$ref": "#/definitions/schema.ConfigFieldUIOptions"+ },+ "value": {}+ }+ },+ "schema.ConfigFieldOption": {+ "type": "object",+ "properties": {+ "label": {+ "type": "string"},"value": {"type": "string"}}},+ "schema.ConfigFieldUIOptions": {+ "type": "object",+ "properties": {+ "input_type": {+ "type": "string"+ },+ "label": {+ "type": "string"+ },+ "placeholder": {+ "type": "string"+ },+ "rows": {+ "type": "string"+ }+ }+ },"schema.ConnectorInfoResp": {"type": "object","properties": {@@ -6532,14 +6567,13 @@ const docTemplate = `{"config_fields": {"type": "array","items": {- "$ref": "#/definitions/schema.ConfigFields"+ "$ref": "#/definitions/schema.ConfigField"}},"description": {"type": "string"},"name": {- "description": "ConfigFields []plugin.ConfigField ` + "`" + `json:\"config_fields\"` + "`" + `","type": "string"},"slug_name": {@@ -6562,6 +6596,9 @@ const docTemplate = `{"have_config": {"type": "boolean"},+ "link": {+ "type": "string"+ },"name": {"type": "string"},@@ -7009,6 +7046,10 @@ const docTemplate = `{"description": "follow count","type": "integer"},+ "have_password": {+ "description": "user have password",+ "type": "boolean"+ },"id": {"description": "user id","type": "string"@@ -7109,6 +7150,9 @@ const docTemplate = `{"description": "follow count","type": "integer"},+ "have_password": {+ "type": "boolean"+ },"id": {"description": "user id","type": "string"@@ -8096,17 +8140,6 @@ const docTemplate = `{}}},- "schema.UIWidget": {- "type": "object",- "properties": {- "placeholder": {- "type": "string"- },- "type": {- "type": "string"- }- }- },"schema.UnreviewedRevisionInfoInfo": {"type": "object","properties": {@@ -8493,14 +8526,19 @@ const docTemplate = `{},"schema.UserModifyPassWordRequest": {"type": "object",+ "required": [+ "pass"+ ],"properties": {"old_pass": {- "description": "old password",- "type": "string"+ "type": "string",+ "maxLength": 32,+ "minLength": 8},"pass": {- "description": "password",- "type": "string"+ "type": "string",+ "maxLength": 32,+ "minLength": 8}}},diff --git a/docs/swagger.json b/docs/swagger.jsonindex 235fa4d7..17f8328f 100644--- a/docs/swagger.json+++ b/docs/swagger.json@@ -6137,12 +6137,21 @@}}},- "schema.ConfigFields": {+ "schema.ConfigField": {"type": "object","properties": {"description": {"type": "string"},+ "name": {+ "type": "string"+ },+ "options": {+ "type": "array",+ "items": {+ "$ref": "#/definitions/schema.ConfigFieldOption"+ }+ },"required": {"type": "boolean"},@@ -6152,14 +6161,40 @@"type": {"type": "string"},- "ui_widget": {- "$ref": "#/definitions/schema.UIWidget"+ "ui_options": {+ "$ref": "#/definitions/schema.ConfigFieldUIOptions"+ },+ "value": {}+ }+ },+ "schema.ConfigFieldOption": {+ "type": "object",+ "properties": {+ "label": {+ "type": "string"},"value": {"type": "string"}}},+ "schema.ConfigFieldUIOptions": {+ "type": "object",+ "properties": {+ "input_type": {+ "type": "string"+ },+ "label": {+ "type": "string"+ },+ "placeholder": {+ "type": "string"+ },+ "rows": {+ "type": "string"+ }+ }+ },"schema.ConnectorInfoResp": {"type": "object","properties": {@@ -6520,14 +6555,13 @@"config_fields": {"type": "array","items": {- "$ref": "#/definitions/schema.ConfigFields"+ "$ref": "#/definitions/schema.ConfigField"}},"description": {"type": "string"},"name": {- "description": "ConfigFields []plugin.ConfigField `json:\"config_fields\"`","type": "string"},"slug_name": {@@ -6550,6 +6584,9 @@"have_config": {"type": "boolean"},+ "link": {+ "type": "string"+ },"name": {"type": "string"},@@ -6997,6 +7034,10 @@"description": "follow count","type": "integer"},+ "have_password": {+ "description": "user have password",+ "type": "boolean"+ },"id": {"description": "user id","type": "string"@@ -7097,6 +7138,9 @@"description": "follow count","type": "integer"},+ "have_password": {+ "type": "boolean"+ },"id": {"description": "user id","type": "string"@@ -8084,17 +8128,6 @@}}},- "schema.UIWidget": {- "type": "object",- "properties": {- "placeholder": {- "type": "string"- },- "type": {- "type": "string"- }- }- },"schema.UnreviewedRevisionInfoInfo": {"type": "object","properties": {@@ -8481,14 +8514,19 @@},"schema.UserModifyPassWordRequest": {"type": "object",+ "required": [+ "pass"+ ],"properties": {"old_pass": {- "description": "old password",- "type": "string"+ "type": "string",+ "maxLength": 32,+ "minLength": 8},"pass": {- "description": "password",- "type": "string"+ "type": "string",+ "maxLength": 32,+ "minLength": 8}}},diff --git a/docs/swagger.yaml b/docs/swagger.yamlindex c6c02c1a..a597fe06 100644--- a/docs/swagger.yaml+++ b/docs/swagger.yaml@@ -305,21 +305,44 @@ definitions:switch:type: booleantype: object- schema.ConfigFields:+ schema.ConfigField:properties:description:type: string+ name:+ type: string+ options:+ items:+ $ref: '#/definitions/schema.ConfigFieldOption'+ type: arrayrequired:type: booleantitle:type: stringtype:type: string- ui_widget:- $ref: '#/definitions/schema.UIWidget'+ ui_options:+ $ref: '#/definitions/schema.ConfigFieldUIOptions'+ value: {}+ type: object+ schema.ConfigFieldOption:+ properties:+ label:+ type: stringvalue:type: stringtype: object+ schema.ConfigFieldUIOptions:+ properties:+ input_type:+ type: string+ label:+ type: string+ placeholder:+ type: string+ rows:+ type: string+ type: objectschema.ConnectorInfoResp:properties:icon:@@ -580,12 +603,11 @@ definitions:properties:config_fields:items:- $ref: '#/definitions/schema.ConfigFields'+ $ref: '#/definitions/schema.ConfigField'type: arraydescription:type: stringname:- description: ConfigFields []plugin.ConfigField `json:"config_fields"`type: stringslug_name:type: string@@ -600,6 +622,8 @@ definitions:type: booleanhave_config:type: boolean+ link:+ type: stringname:type: stringslug_name:@@ -920,6 +944,9 @@ definitions:follow_count:description: follow counttype: integer+ have_password:+ description: user have password+ type: booleanid:description: user idtype: string@@ -994,6 +1021,8 @@ definitions:follow_count:description: follow counttype: integer+ have_password:+ type: booleanid:description: user idtype: string@@ -1687,13 +1716,6 @@ definitions:value:type: stringtype: object- schema.UIWidget:- properties:- placeholder:- type: string- type:- type: string- type: objectschema.UnreviewedRevisionInfoInfo:properties:content:@@ -1971,11 +1993,15 @@ definitions:schema.UserModifyPassWordRequest:properties:old_pass:- description: old password+ maxLength: 32+ minLength: 8type: stringpass:- description: password+ maxLength: 32+ minLength: 8type: string+ required:+ - passtype: objectschema.UserNoticeSetRequest:properties: