goods.go 562 B

1234567891011121314151617181920212223242526
  1. package guangzuan
  2. import (
  3. "mtp2_if/global/app"
  4. "mtp2_if/models"
  5. "github.com/gin-gonic/gin"
  6. )
  7. // GetGoods
  8. // @Summary 获取钻石详情
  9. // @Produce json
  10. // @Security ApiKeyAuth
  11. // @Security LoginID
  12. // @Security Group
  13. // @Param goodsno query string true "商品编号"
  14. // @Success 200 {object} models.GZGoods
  15. // @Failure 500 {object} app.Response
  16. // @Router /Guangzuan/GetGoods [get]
  17. // @Tags 广钻
  18. func GetGoods(c *gin.Context) {
  19. a := app.GinUtils{Gin: app.Gin{C: c}}
  20. m := models.GZGoods{}
  21. a.DoBindReq(&m)
  22. a.DoGetDataEx(&m)
  23. }