feat: 归档L03与L09审批发布能力

- 新增统一审批中心与审批管理页面,支持流程配置、审批详情与角色/用户审批对象

- 接入聊天助手、知识库、工作流的发布与删除审批,并补齐发布态校验与快照展示
This commit is contained in:
2026-04-07 14:41:52 +08:00
parent 7e7c236c2a
commit 3f128e977a
138 changed files with 13035 additions and 346 deletions

View File

@@ -0,0 +1,35 @@
package tech.easyflow.approval.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 提交审批动作注解。
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface ApprovalAction {
/**
* 资源类型。
*
* @return 资源类型编码
*/
String resourceType();
/**
* 动作类型。
*
* @return 动作类型编码
*/
String actionType();
/**
* 资源 ID 的 SpEL 表达式。
*
* @return SpEL 表达式
*/
String idExpr();
}

View File

@@ -0,0 +1,35 @@
package tech.easyflow.approval.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 已发布访问门禁注解。
*/
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface RequirePublishedAccess {
/**
* 资源类型。
*
* @return 资源类型编码
*/
String resourceType();
/**
* 资源标识的 SpEL 表达式。
*
* @return 标识表达式
*/
String idExpr();
/**
* 拒绝访问时的提示文案。
*
* @return 错误提示
*/
String denyMessage() default "资源尚未发布";
}