[feat] 优化无用的方法

This commit is contained in:
what-00 2023-04-13 14:47:54 +08:00
parent 074894e7f8
commit 1deaa426d2

View File

@ -75,39 +75,5 @@ type ResField interface {
ToBlueprint(table *schema.Blueprint) *schema.ColumnDefinition
}
type ResRelation interface{}
type ResJoin interface {
ResRelation
}
type ResQueryField interface {
ResField
IsExpr() bool
ToSql() db.Expression
}
type ResCondition interface {
// 是否空条件
IsEmpty() bool
// 条件是否恒成立
IsRight() bool
// to sql 表达式
ToSql() db.Expression
}
type ResConditionExpr interface {
// 条件是否恒成立
IsRight() bool
// to sql 表达式
ToSql() db.Expression
GetTokenName() string
GetTokenValue() any
GetTokenSqlValue() string
GetTokenType() ResConditionTokenType
}
// 资源
type GetResource func(code string) (Resource, bool)