Documentation
¶
Index ¶
Constants ¶
View Source
const ( BeforeNodeExec = iota AfterNodeExec BeforeExecutorDo AfterExecutorDo )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Action ¶
type Action struct { // 关闭 access 权限验证, 默认否 NoAccessVerify bool // 关闭 request 验证开关, 默认否 NoRequestVerify bool // dbFieldStyle 数据库字段命名风格 请求传递到数据库中 DbFieldStyle config.FieldStyle // jsonFieldStyle 数据库返回的字段 JsonFieldStyle config.FieldStyle // contains filtered or unexported fields }
Action 非get查询的request表中的请求
type Hook ¶
type Hook struct { For string // // Exec 事务外 BeforeNodeExec func(ctx context.Context, n *Node, method string) error AfterNodeExec func(ctx context.Context, n *Node, method string) error // Do 事务内 BeforeExecutorDo func(ctx context.Context, n *Node, method string) error AfterExecutorDo func(ctx context.Context, n *Node, method string) error }
Click to show internal directories.
Click to hide internal directories.