All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.ssrs.platform.config.AdminUserName Maven / Gradle / Ivy

There is a newer version: 1.0.5
Show newest version
package com.ssrs.platform.config;

import cn.hutool.core.util.StrUtil;
import com.ssrs.framework.Config;
import com.ssrs.platform.FixedConfigItem;
import com.ssrs.platform.code.ControlType;
import com.ssrs.platform.code.DataType;

/**
 * 系统管理员的用户名
 */
public class AdminUserName extends FixedConfigItem {
    public static final String ID = "Platform.AdminUserName";

    public AdminUserName() {
        super(ID, DataType.ShortText, ControlType.Text, "系统管理员的用户名");
    }

    public static String getValue() {
        String v = Config.getValue(ID);
        if (StrUtil.isEmpty(v)) {
            v = "admin";
        }
        return v;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy