package com.orion.visor.module.infra.define.operator;

import com.orion.visor.framework.biz.operator.log.core.annotation.Module;
import com.orion.visor.framework.biz.operator.log.core.factory.InitializingOperatorTypes;
import com.orion.visor.framework.biz.operator.log.core.model.OperatorType;

import static com.orion.visor.framework.biz.operator.log.core.enums.OperatorRiskLevel.*;

/**
 * 字典配置项 操作日志类型
 *
 * @author Jiahang Li
 * @version 1.0.0
 * @since 2023-10-16 16:33
 */
@Module("infra:dict-key")
public class DictKeyOperatorType extends InitializingOperatorTypes {

    public static final String CREATE = "dict-key:create";

    public static final String UPDATE = "dict-key:update";

    public static final String DELETE = "dict-key:delete";

    @Override
    public OperatorType[] types() {
        return new OperatorType[]{
                new OperatorType(L, CREATE, "创建字典配置项 <sb>${keyName}</sb>"),
                new OperatorType(M, UPDATE, "更新字典配置项 <sb>${keyName}</sb>"),
                new OperatorType(H, DELETE, "删除字典配置项 <sb>${keyName}</sb>"),
        };
    }

}
