feat: update
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
// Code generated by the atomctl ; DO NOT EDIT.
|
||||
// Code generated by the atomctl ; DO NOT EDIT.
|
||||
// Code generated by the atomctl ; DO NOT EDIT.
|
||||
package model
|
||||
|
||||
import (
|
||||
"context"
|
||||
"time"
|
||||
|
||||
. "github.com/go-jet/jet/v2/postgres"
|
||||
"github.com/samber/lo"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"time"
|
||||
)
|
||||
|
||||
// conds
|
||||
@@ -61,7 +63,6 @@ func (m *Posts) BatchCreate(ctx context.Context, models []*Posts) error {
|
||||
m.log().WithField("func", "BatchCreate").Infof("Posts items created successfully")
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *Posts) Delete(ctx context.Context) error {
|
||||
stmt := tblPosts.UPDATE().SET(tblPosts.DeletedAt.SET(TimestampT(time.Now()))).WHERE(tblPosts.ID.EQ(Int(m.ID)))
|
||||
m.log().WithField("func", "SoftDelete").Info(stmt.DebugSql())
|
||||
|
||||
Reference in New Issue
Block a user