Skip to content

Commit

Permalink
feat: rm exist method
Browse files Browse the repository at this point in the history
qqxhb committed Jun 7, 2023
1 parent 7c4df2b commit ee71e18
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions internal/template/method.go
Original file line number Diff line number Diff line change
@@ -73,10 +73,6 @@ func ({{.S}} {{.QueryStructName}}Do) Where(conds ...gen.Condition) {{.ReturnObje
return {{.S}}.withDO({{.S}}.DO.Where(conds...))
}
func ({{.S}} {{.QueryStructName}}Do) Exists(subquery interface{UnderlyingDB() *gorm.DB}) {{.ReturnObject}} {
return {{.S}}.Where(field.CompareSubQuery(field.ExistsOp, nil, subquery.UnderlyingDB()))
}
func ({{.S}} {{.QueryStructName}}Do) Order(conds ...field.Expr) {{.ReturnObject}} {
return {{.S}}.withDO({{.S}}.DO.Order(conds...))
}

0 comments on commit ee71e18

Please sign in to comment.