doc: update site legal info get swagger doc

This commit is contained in:
LinkinStar 2022-11-15 17:29:45 +08:00
parent b08e20ff99
commit 53f6413d45
1 changed files with 2 additions and 1 deletions

View File

@ -49,8 +49,9 @@ func (sc *SiteinfoController) GetSiteInfo(ctx *gin.Context) {
// @Summary get site legal info
// @Description get site legal info
// @Tags site
// @Param info_type query string true "legal information type" Enums(tos, privacy)
// @Produce json
// @Success 200 {object} handler.RespBody{data=schema.SiteGeneralResp}
// @Success 200 {object} handler.RespBody{data=schema.GetSiteLegalInfoResp}
// @Router /answer/api/v1/siteinfo/legal [get]
func (sc *SiteinfoController) GetSiteLegalInfo(ctx *gin.Context) {
req := &schema.GetSiteLegalInfoReq{}