refactor(audit): 更新审核参数结构并添加工作流角色支持

- 将多个模块中的审核参数从 AuditStaffIds 改为 AuditItems 结构
- 添加对审核角色 ID 的支持
- 新增 bean.AuditItem 结构体定义
- 更新客户端发现逻辑以支持本地开发环境
- 在工作流节点中添加角色 ID 字段
- 调整导入包顺序并优化代码结构
This commit is contained in:
2026-06-08 17:26:25 +08:00
parent 68184b3e5e
commit 6a34ba0fcf
12 changed files with 68 additions and 35 deletions

View File

@@ -2,10 +2,11 @@ package erp
import (
"context"
"time"
"git.kumo.work/shama/service/client"
workflow2 "git.kumo.work/shama/service/erp/workflow"
"git.kumo.work/shama/service/lib/bean"
"time"
)
type workflow struct {
@@ -22,6 +23,7 @@ type WorkflowSearch struct {
BusinessTypes []string
Status AuditStatus
AuditStaffIds []int64 // 审核人
RoleIds []int64
}
type ReplyWorkflowList struct {
List []WorkflowItem
@@ -69,10 +71,10 @@ type WorkflowNodeItem struct {
Id int64 `json:"id"` // 审批流节点id
Status AuditStatus `json:"status"` // 审批流节点状态
ReviewStaffId int64 `json:"reviewStaffId"` // 审批流节点审核人
ReviewRoleId int64 `json:"reviewRoleId"` // 审批流节点角色id
ReviewAt *time.Time `json:"reviewAt"` // 审批流节点审核时间
ReviewComments string `json:"reviewComments"` // 审批流节点审核意见
Index int64 `json:"index"` // 审批流节点顺序
}
type ArgsWorkflowInfo struct {
WorkflowId int64 // 审批流id