17 lines
537 B
Go
17 lines
537 B
Go
|
|
package publicreport
|
||
|
|
|
||
|
|
import (
|
||
|
|
"context"
|
||
|
|
|
||
|
|
"github.com/Gleipnir-Technology/nidus-sync/db"
|
||
|
|
"github.com/Gleipnir-Technology/nidus-sync/db/gen/nidus-sync/publicreport/model"
|
||
|
|
"github.com/Gleipnir-Technology/nidus-sync/db/gen/nidus-sync/publicreport/table"
|
||
|
|
//"github.com/go-jet/jet/v2/postgres"
|
||
|
|
)
|
||
|
|
|
||
|
|
func ReportLogInsert(ctx context.Context, txn db.Ex, m model.ReportLog) (model.ReportLog, error) {
|
||
|
|
statement := table.ReportLog.INSERT(table.ReportLog.AllColumns).
|
||
|
|
MODEL(m)
|
||
|
|
return db.ExecuteOneTx[model.ReportLog](ctx, txn, statement)
|
||
|
|
}
|