[feat] 重新梳理依赖

This commit is contained in:
2024-05-09 13:15:24 +08:00
parent 9172fb2f34
commit bddd754869
28 changed files with 341 additions and 1075 deletions
+3 -2
View File
@@ -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)
}