Versions in this module Expand all Collapse all v0 v0.0.19 Sep 16, 2019 v0.0.18 Sep 11, 2019 Changes in this version + func APIGETGoods(c *gin.Context) + func APIGETGoodsByID(c *gin.Context) + func APIPOSTGoods(c *gin.Context) + func APIPUTGoods(c *gin.Context) + func GETGoods(req *GETGoodsReq) (*[]model.DBGoods, error) + func GETGoodsByID(req *GETGoodsByIDReq) (*model.DBGoods, error) + func POSTGoods(tx *sql.Tx, postGoodsReq *POSTGoodsReq) (sql.Result, error) + func PUTGoods(tx *sql.Tx, req *PUTGoodsReq) (sql.Result, error) + func Register() + type GETGoodsByIDReq struct + GoodsID uint64 + type GETGoodsReq struct + GoodsCategoryID uint64 + GoodsStatus string + type POSTGoodsReq struct + GoodsCategoryID uint64 + GoodsContent string + GoodsExcerpt string + GoodsName string + GoodsOrder uint64 + GoodsPrice float64 + GoodsStatus string + GoodsUID uint64 + type PUTGoodsReq struct + GoodsCategoryID uint64 + GoodsContent string + GoodsExcerpt string + GoodsExt string + GoodsID uint64 + GoodsImg string + GoodsName string + GoodsOrder uint64 + GoodsPrice float64 + GoodsStatus string + GoodsUID uint64