[feat] add ResField.ToQueryField func

This commit is contained in:
2023-04-22 01:49:03 +08:00
parent cf81f7ff43
commit d8fc2e9de9
3 changed files with 136 additions and 0 deletions
+10
View File
@@ -269,3 +269,13 @@ func (this ResField) ToBlueprint(table *schema.Blueprint) (temp *schema.ColumnDe
return temp
}
func (this ResField) ToQueryField(t contracts.QueryDataType, alias string, options int) contracts.QueryField {
o := &QueryField{
ResField: this,
typ: t,
alias: alias,
}
return o.SetOptions(options)
}