17 lines
		
	
	
		
			431 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			431 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| 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
 | |
| }
 |