[feat] 重新梳理依赖
This commit is contained in:
+3
-2
@@ -4,6 +4,7 @@ import (
|
||||
"net/http"
|
||||
|
||||
"git.fsdpf.net/go/db"
|
||||
"git.fsdpf.net/go/req"
|
||||
)
|
||||
|
||||
type UserApprovalExecute int
|
||||
@@ -51,9 +52,9 @@ type UserApproval interface {
|
||||
// 审批流名称
|
||||
Name() string
|
||||
// 发起审批请求
|
||||
RequestApproval(Route, *http.Request) any
|
||||
RequestApproval(req.Route, *http.Request) any
|
||||
// 判断发起审批请求权限
|
||||
HasUserRoles(User) bool
|
||||
HasUserRoles(req.User) bool
|
||||
// 获取审批列表标记字段值
|
||||
Execute(id int64, status UserApprovalExecute, r *http.Request, tx *db.Transaction) (current, next UserApprovalFlow, err error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user