You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.1 KiB
41 lines
1.1 KiB
package sys
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
|
|
"shop-api/global"
|
|
"shop-api/model/request"
|
|
"shop-api/model/response"
|
|
"shop-api/service"
|
|
"shop-api/utils"
|
|
)
|
|
|
|
// GetSysBrochure
|
|
// @Summary 隐私协议单页
|
|
// @Tags tools
|
|
// @Param data query request.SysBrochureType false "params"
|
|
// @Success 200 {string} string "{"success":true,"data":{},"msg":""}"
|
|
// @Router /base/brochure [get]
|
|
func GetSysBrochure(c *gin.Context) {
|
|
var info request.SysBrochureType
|
|
_ = c.ShouldBindQuery(&info)
|
|
|
|
if err := utils.Verify(info, utils.TypeVerify); err != nil {
|
|
response.FailWithMessage(err.Error(), c)
|
|
return
|
|
}
|
|
if err, data := service.GetSysBrochure(info.Type); err != nil {
|
|
global.MG_LOG.Error("获取失败! err " + err.Error())
|
|
response.FailWithMessage("获取失败", c)
|
|
} else {
|
|
response.OkWithDetailed(data.Content, "获取成功", c)
|
|
}
|
|
}
|
|
|
|
// GetSysBrochure2
|
|
// @Summary 隐私协议单页
|
|
// @Tags tools
|
|
// @Param data query request.SysBrochureType false "params"
|
|
// @Success 200 {string} string "{"success":true,"data":{},"msg":""}"
|
|
// @Router /influencer/base/brochure [get]
|
|
func GetSysBrochure2(c *gin.Context) {}
|
|
|