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.
20 lines
332 B
20 lines
332 B
3 years ago
|
package vip
|
||
|
|
||
|
import (
|
||
|
"recook/internal/back"
|
||
|
"recook/internal/v2/model/recook/goods"
|
||
|
|
||
|
"git.oa00.com/go/mysql"
|
||
|
"github.com/gin-gonic/gin"
|
||
|
)
|
||
|
|
||
|
type Proxy struct{}
|
||
|
|
||
|
func (o Proxy) VipGoods(c *gin.Context) {
|
||
|
var gs goods.RecookGoodsInfoModel
|
||
|
mysql.Db.First(&gs, "is_virtual = 1")
|
||
|
back.Suc(c, "", gin.H{
|
||
|
"goods_id": gs.Id,
|
||
|
})
|
||
|
}
|