mirror of https://gitee.com/answerdev/answer.git
Merge branch 'feat/timezone' into 'test'
fix: swagger wrong request parameter See merge request opensource/answer!162
This commit is contained in:
commit
259a88a08d
11
docs/docs.go
11
docs/docs.go
|
@ -561,17 +561,6 @@ const docTemplate = `{
|
|||
"admin"
|
||||
],
|
||||
"summary": "get site interface",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "general",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/schema.AddCommentReq"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
|
|
|
@ -549,17 +549,6 @@
|
|||
"admin"
|
||||
],
|
||||
"summary": "get site interface",
|
||||
"parameters": [
|
||||
{
|
||||
"description": "general",
|
||||
"name": "data",
|
||||
"in": "body",
|
||||
"required": true,
|
||||
"schema": {
|
||||
"$ref": "#/definitions/schema.AddCommentReq"
|
||||
}
|
||||
}
|
||||
],
|
||||
"responses": {
|
||||
"200": {
|
||||
"description": "OK",
|
||||
|
|
|
@ -1725,13 +1725,6 @@ paths:
|
|||
/answer/admin/api/siteinfo/interface:
|
||||
get:
|
||||
description: get site interface
|
||||
parameters:
|
||||
- description: general
|
||||
in: body
|
||||
name: data
|
||||
required: true
|
||||
schema:
|
||||
$ref: '#/definitions/schema.AddCommentReq'
|
||||
produces:
|
||||
- application/json
|
||||
responses:
|
||||
|
|
|
@ -39,7 +39,6 @@ func (sc *SiteInfoController) GetGeneral(ctx *gin.Context) {
|
|||
// @Produce json
|
||||
// @Success 200 {object} handler.RespBody{data=schema.SiteInterfaceResp}
|
||||
// @Router /answer/admin/api/siteinfo/interface [get]
|
||||
// @Param data body schema.AddCommentReq true "general"
|
||||
func (sc *SiteInfoController) GetInterface(ctx *gin.Context) {
|
||||
resp, err := sc.siteInfoService.GetSiteInterface(ctx)
|
||||
handler.HandleResponse(ctx, err, resp)
|
||||
|
|
Loading…
Reference in New Issue