1、反向下单初始化
This commit is contained in:
16
services/binanceservice/binance_reverse_service.go
Normal file
16
services/binanceservice/binance_reverse_service.go
Normal file
@ -0,0 +1,16 @@
|
||||
package binanceservice
|
||||
|
||||
import DbModels "go-admin/app/admin/models"
|
||||
|
||||
// ShouldReverse 判断是否需要反单
|
||||
// return apiInfo, bool
|
||||
func ShouldReverse(apiKey string) (DbModels.LineApiUser, bool) {
|
||||
// TODO: 实现判断是否需要反单的逻辑
|
||||
apiInfo := GetApiInfoByKey(apiKey)
|
||||
|
||||
if apiInfo.ReverseStatus == 1 && apiInfo.ReverseApiId > 0 {
|
||||
return apiInfo, true
|
||||
}
|
||||
|
||||
return DbModels.LineApiUser{}, false
|
||||
}
|
||||
Reference in New Issue
Block a user