Skip to content

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

aichy12660a5c4015f18
diff --git a/docs/docs.go b/docs/docs.go
index 936f0c5c..119db1fe 100644
--- a/docs/docs.go
+++ b/docs/docs.go
@@ -1314,12 +1314,12 @@ const docTemplate = `{
"summary": "AnswerList",
"parameters": [
{
- "description": "AnswerList",
+ "description": "AnswerListReq",
"name": "data",
"in": "body",
"required": true,
"schema": {
- "$ref": "#/definitions/schema.AnswerList"
+ "$ref": "#/definitions/schema.AnswerListReq"
}
}
],
@@ -4860,7 +4860,7 @@ const docTemplate = `{
}
}
},
- "schema.AnswerList": {
+ "schema.AnswerListReq": {
"type": "object",
"properties": {
"order": {
diff --git a/docs/swagger.json b/docs/swagger.json
index c0182ab4..097f3938 100644
--- a/docs/swagger.json
+++ b/docs/swagger.json
@@ -1302,12 +1302,12 @@
"summary": "AnswerList",
"parameters": [
{
- "description": "AnswerList",
+ "description": "AnswerListReq",
"name": "data",
"in": "body",
"required": true,
"schema": {
- "$ref": "#/definitions/schema.AnswerList"
+ "$ref": "#/definitions/schema.AnswerListReq"
}
}
],
@@ -4848,7 +4848,7 @@
}
}
},
- "schema.AnswerList": {
+ "schema.AnswerListReq": {
"type": "object",
"properties": {
"order": {
diff --git a/docs/swagger.yaml b/docs/swagger.yaml
index 842c9b4f..a3f3ce70 100644
--- a/docs/swagger.yaml
+++ b/docs/swagger.yaml
@@ -202,7 +202,7 @@ definitions:
description: question_id
type: string
type: object
- schema.AnswerList:
+ schema.AnswerListReq:
properties:
order:
description: 1 Default 2 time
@@ -2431,12 +2431,12 @@ paths:
- application/json
description: AnswerList <br> <b>order</b> (default or updated)
parameters:
- - description: AnswerList
+ - description: AnswerListReq
in: body
name: data
required: true
schema:
- $ref: '#/definitions/schema.AnswerList'
+ $ref: '#/definitions/schema.AnswerListReq'
produces:
- application/json
responses:
diff --git a/internal/service/revision_service.go b/internal/service/revision_service.go
index 6d41e5c3..bfe28508 100644
--- a/internal/service/revision_service.go
+++ b/internal/service/revision_service.go
@@ -205,8 +205,6 @@ func (rs *RevisionService) revisionAuditTag(ctx context.Context, revisionitem *s
if ok {
tag := &entity.Tag{}
tag.ID = taginfo.TagID
- tag.DisplayName = taginfo.DisplayName
- tag.SlugName = taginfo.SlugName
tag.OriginalText = taginfo.OriginalText
tag.ParsedText = taginfo.ParsedText
saveerr := rs.tagRepo.UpdateTag(ctx, tag)