1
0

feat(web): 增加审查状态类型的展示

This commit is contained in:
2024-11-29 10:34:12 +08:00
parent 51bca63ec6
commit 1740b7bea2
4 changed files with 27 additions and 2 deletions

View File

@@ -19,8 +19,14 @@ public interface CheckingService {
@Value
class CheckOrder {
String name;
Type type;
ImmutableList<CheckOperation> operations;
ImmutableMap<String, Object> parameters;
public enum Type {
CONFIRMATION,
AUTHENTICATION,
}
}
@Data

View File

@@ -55,6 +55,7 @@ public class ConfirmationService extends SimpleServiceSupport<Confirmation> impl
)
.collect(confirmation -> new CheckOrder(
StrUtil.format("资源名为「{}」的确权申请", confirmation.getTarget().getName()),
CheckOrder.Type.CONFIRMATION,
Lists.immutable.of(
new CheckOperation("confirmation_check_apply", "通过"),
new CheckOperation("confirmation_check_reject", "拒绝", "danger")