Merge branch 'dev' into test
# Conflicts: # cmd/wire_gen.go # internal/service/content/question_service.go
This commit is contained in:
+63
-1
@@ -4562,6 +4562,67 @@ const docTemplate = `{
|
||||
}
|
||||
}
|
||||
},
|
||||
"/answer/api/v1/question/recommend/page": {
|
||||
"get": {
|
||||
"description": "get recommend questions by page",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Question"
|
||||
],
|
||||
"summary": "get recommend questions by page",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "QuestionPageReq",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/schema.QuestionPageReq"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/handler.RespBody"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/pager.PageModel"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"list": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/schema.QuestionPageResp"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/answer/api/v1/question/recover": {
|
||||
"post": {
|
||||
"security": [
|
||||
@@ -9491,7 +9552,8 @@ const docTemplate = `{
|
||||
"active",
|
||||
"hot",
|
||||
"score",
|
||||
"unanswered"
|
||||
"unanswered",
|
||||
"recommend"
|
||||
]
|
||||
},
|
||||
"page": {
|
||||
|
||||
+63
-1
@@ -4536,6 +4536,67 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"/answer/api/v1/question/recommend/page": {
|
||||
"get": {
|
||||
"description": "get recommend questions by page",
|
||||
"consumes": [
|
||||
"application/json"
|
||||
],
|
||||
"produces": [
|
||||
"application/json"
|
||||
],
|
||||
"tags": [
|
||||
"Question"
|
||||
],
|
||||
"summary": "get recommend questions by page",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "QuestionPageReq",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/schema.QuestionPageReq"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
"schema": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/handler.RespBody"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"data": {
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "#/definitions/pager.PageModel"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"list": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"$ref": "#/definitions/schema.QuestionPageResp"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"/answer/api/v1/question/recover": {
|
||||
"post": {
|
||||
"security": [
|
||||
@@ -9465,7 +9526,8 @@
|
||||
"active",
|
||||
"hot",
|
||||
"score",
|
||||
"unanswered"
|
||||
"unanswered",
|
||||
"recommend"
|
||||
]
|
||||
},
|
||||
"page": {
|
||||
|
||||
@@ -1555,6 +1555,7 @@ definitions:
|
||||
- hot
|
||||
- score
|
||||
- unanswered
|
||||
- recommend
|
||||
type: string
|
||||
page:
|
||||
minimum: 1
|
||||
@@ -5643,6 +5644,40 @@ paths:
|
||||
summary: get questions by page
|
||||
tags:
|
||||
- Question
|
||||
/answer/api/v1/question/recommend/page:
|
||||
get:
|
||||
consumes:
|
||||
- application/json
|
||||
description: get recommend questions by page
|
||||
parameters:
|
||||
- description: QuestionPageReq
|
||||
in: body
|
||||
name: data
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/schema.QuestionPageReq'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
"200":
|
||||
description: OK
|
||||
schema:
|
||||
allOf:
|
||||
- $ref: '#/definitions/handler.RespBody'
|
||||
- properties:
|
||||
data:
|
||||
allOf:
|
||||
- $ref: '#/definitions/pager.PageModel'
|
||||
- properties:
|
||||
list:
|
||||
items:
|
||||
$ref: '#/definitions/schema.QuestionPageResp'
|
||||
type: array
|
||||
type: object
|
||||
type: object
|
||||
summary: get recommend questions by page
|
||||
tags:
|
||||
- Question
|
||||
/answer/api/v1/question/recover:
|
||||
post:
|
||||
consumes:
|
||||
|
||||
Reference in New Issue
Block a user