BinancePrice
continuous-integration/drone/push Build is passing Details
continuous-integration/drone Build is passing Details

master
dustoair 3 years ago
parent 895cb0e92b
commit 4a9d3f990f

@ -19,6 +19,11 @@ type BinancePrice struct {
Price float64
}
// TableName 自定义表名
func (BinancePrice) TableName() string {
return "BinancePrice"
}
func GetBinanceLatestPrice(symbol string) float64 {
var binancePrice BinancePrice
global.DB.Where("symbol = ?", symbol).Last(&binancePrice)

Loading…
Cancel
Save