Merge branch 'feat/timezone' into 'test'

fix: swagger wrong request parameter

See merge request opensource/answer!162
This commit is contained in:
linkinstar 2022-11-02 08:08:35 +00:00
commit 259a88a08d
4 changed files with 0 additions and 30 deletions

View File

@ -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",

View File

@ -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",

View File

@ -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:

View File

@ -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)