feat: update

This commit is contained in:
Rogee
2025-05-28 19:40:50 +08:00
parent fa87d18276
commit 1a9dd1d30d
5 changed files with 21 additions and 15 deletions

View File

@@ -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())