(product_id int)
| 48 | } |
| 49 | |
| 50 | func (this *db) GetStrategies(product_id int) []*types.Strategy { |
| 51 | strategies := []*types.Strategy{} |
| 52 | if err := this.Select(&strategies, "SELECT * FROM `strategy` WHERE product_id=?", product_id); err != nil { |
| 53 | lg.Error(err.Error()) |
| 54 | return nil |
| 55 | } |
| 56 | return strategies |
| 57 | } |
| 58 | |
| 59 | func (this *db) GetHostsExByStrategyID(strategy_id int) map[string]string { |
| 60 | ids := make([]string, 0) |
no outgoing calls
no test coverage detected