mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
feat: add notifications for renew certs #192
This commit is contained in:
parent
ddb6cee153
commit
994b9087ae
45 changed files with 1971 additions and 594 deletions
|
@ -6,7 +6,6 @@ package query
|
|||
|
||||
import (
|
||||
"context"
|
||||
"github.com/0xJacky/Nginx-UI/model"
|
||||
"strings"
|
||||
|
||||
"gorm.io/gorm"
|
||||
|
@ -17,6 +16,8 @@ import (
|
|||
"gorm.io/gen/field"
|
||||
|
||||
"gorm.io/plugin/dbresolver"
|
||||
|
||||
"github.com/0xJacky/Nginx-UI/model"
|
||||
)
|
||||
|
||||
func newSite(db *gorm.DB, opts ...gen.DOOption) site {
|
||||
|
@ -182,10 +183,6 @@ func (s siteDo) Where(conds ...gen.Condition) *siteDo {
|
|||
return s.withDO(s.DO.Where(conds...))
|
||||
}
|
||||
|
||||
func (s siteDo) Exists(subquery interface{ UnderlyingDB() *gorm.DB }) *siteDo {
|
||||
return s.Where(field.CompareSubQuery(field.ExistsOp, nil, subquery.UnderlyingDB()))
|
||||
}
|
||||
|
||||
func (s siteDo) Order(conds ...field.Expr) *siteDo {
|
||||
return s.withDO(s.DO.Order(conds...))
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue