feat(web): 增加审查状态类型的展示
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user