Files

15 lines
791 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package dao
import "github.com/rulego/gflow-engine/query"
// Underlying 系列返回事务入口所需的 *query.Query:service 层 WithInstanceTx
// 经此取查询束开事务,以方法而非字段暴露是为了让存储窄接口的实现不必
// 背负 gorm gen 的查询束结构。
func (d *TaskDAO) Underlying() *query.Query { return d.Query }
func (d *HiTaskDAO) Underlying() *query.Query { return d.Query }
func (d *InstanceDAO) Underlying() *query.Query { return d.Query }
func (d *HiInstanceDAO) Underlying() *query.Query { return d.Query }
func (d *ProcessDAO) Underlying() *query.Query { return d.Query }
func (d *TaskAssigneeDAO) Underlying() *query.Query { return d.Query }
func (d *TaskCommentDAO) Underlying() *query.Query { return d.Query }