[feat] 优化无用的方法
This commit is contained in:
parent
074894e7f8
commit
1deaa426d2
34
resource.go
34
resource.go
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user