正在显示
1 个修改的文件
包含
1 行增加
和
3 行删除
| 1 | package repository | 1 | package repository |
| 2 | 2 | ||
| 3 | import ( | 3 | import ( |
| 4 | - "time" | ||
| 5 | - | ||
| 6 | pgTransaction "github.com/linmadan/egglib-go/transaction/pg" | 4 | pgTransaction "github.com/linmadan/egglib-go/transaction/pg" |
| 7 | "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/domain" | 5 | "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/domain" |
| 8 | "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/infrastructure/pg/models" | 6 | "gitlab.fjmaimaimai.com/allied-creation/performance/pkg/infrastructure/pg/models" |
| @@ -30,7 +28,7 @@ func (repo *LogSmsRepository) Save(param *domain.LogSms) error { | @@ -30,7 +28,7 @@ func (repo *LogSmsRepository) Save(param *domain.LogSms) error { | ||
| 30 | Status: string(param.Status), | 28 | Status: string(param.Status), |
| 31 | From: param.From, | 29 | From: param.From, |
| 32 | Index: param.Index, | 30 | Index: param.Index, |
| 33 | - ExecuteAt: time.Time{}, | 31 | + ExecuteAt: param.ExecuteAt, |
| 34 | } | 32 | } |
| 35 | tx := repo.transactionContext.PgTx | 33 | tx := repo.transactionContext.PgTx |
| 36 | _, err := tx.Model(&m).Insert() | 34 | _, err := tx.Model(&m).Insert() |
-
请 注册 或 登录 后发表评论