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
|
||||
@@ -50,7 +52,6 @@ func (m *UserPosts) BatchCreate(ctx context.Context, models []*UserPosts) error
|
||||
m.log().WithField("func", "BatchCreate").Infof("UserPosts items created successfully")
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *UserPosts) Delete(ctx context.Context) error {
|
||||
stmt := tblUserPosts.DELETE().WHERE(tblUserPosts.ID.EQ(Int(m.ID)))
|
||||
m.log().WithField("func", "Delete").Info(stmt.DebugSql())
|
||||
|
||||
Reference in New Issue
Block a user