1、反向下单初始化

This commit is contained in:
2025-06-17 14:09:37 +08:00
parent e943a47121
commit 3013486dd4
14 changed files with 1042 additions and 0 deletions

View 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
}