Skip to content

Commit

Permalink
feat(sqlbuilderzero): rename BulkDelete to BulkDeleteByCondition
Browse files Browse the repository at this point in the history
  • Loading branch information
jaronnie committed Aug 16, 2024
1 parent ded7512 commit 89a4e52
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .template/go-zero/model/customized.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func (m *custom{{.upperStartCamelObject}}Model) UpdateFieldsByCondition(ctx cont
return nil
}

func (m *custom{{.upperStartCamelObject}}Model) BulkDelete(ctx context.Context, conds ...condition.Condition) error {
func (m *custom{{.upperStartCamelObject}}Model) BulkDeleteByCondition(ctx context.Context, conds ...condition.Condition) error {
if len(conds) == 0 {
return nil
}
Expand Down
2 changes: 1 addition & 1 deletion .template/go-zero/model/types.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ type (
FindOneByCondition(ctx context.Context, conds ...condition.Condition) (*{{.upperStartCamelObject}}, error)
PageByCondition(ctx context.Context, conds ...condition.Condition) ([]*{{.upperStartCamelObject}}, int64 ,error)
UpdateFieldsByCondition(ctx context.Context, field map[string]any, conds ...condition.Condition) error
BulkDelete(ctx context.Context, conds ...condition.Condition) error
BulkDeleteByCondition(ctx context.Context, conds ...condition.Condition) error
}

default{{.upperStartCamelObject}}Model struct {
Expand Down
4 changes: 2 additions & 2 deletions internal/model/system_dict_key/tsystemdictkeymodel_gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 89a4e52

Please sign in to comment.