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.
29 lines
727 B
29 lines
727 B
package influencer
|
|
|
|
import (
|
|
"github.com/gin-gonic/gin"
|
|
"go.uber.org/zap"
|
|
"pure/global"
|
|
"pure/model/request"
|
|
"pure/model/response"
|
|
"pure/service"
|
|
)
|
|
|
|
// GetTbGoodsDetail
|
|
// @Summary 获取商品详情
|
|
// @Description
|
|
// @Tags goods
|
|
// @Security ApiKeyAuth
|
|
// @Param data query request.Goods false "params"
|
|
// @Success 200 {object} model.TbGoodsDetail "{"code": 200, "data": {}}"
|
|
//@Router /influencer/goods/detail [get]
|
|
func GetTbGoodsDetail(c *gin.Context) {
|
|
var info request.Goods
|
|
_ = c.ShouldBindQuery(&info)
|
|
if err, data := service.GetTbGoods(info); err != nil {
|
|
global.MG_LOG.Error("获取失败!", zap.Any("err", err))
|
|
response.FailWithMessage("获取失败", c)
|
|
} else {
|
|
response.OkWithData(data, c)
|
|
}
|
|
}
|
|
|