(strategy_id int)
| 116 | } |
| 117 | |
| 118 | func (this *db) GetAllActions(strategy_id int) []*types.Action { |
| 119 | actions := []*types.Action{} |
| 120 | if err := this.Select(&actions, "SELECT * FROM `action` WHERE `strategy_id` = ?", strategy_id); err != nil { |
| 121 | lg.Error(err.Error()) |
| 122 | return nil |
| 123 | } |
| 124 | return actions |
| 125 | } |
| 126 | |
| 127 | func (this *db) CreateStrategyEvent(strategy_event *types.StrategyEvent, trigger_events map[string]*types.TriggerEvent) (int64, error) { |
| 128 | tx, err := this.Begin() |