46 lines
883 B
Kotlin
46 lines
883 B
Kotlin
package top.fatweb.api.properties
|
|
|
|
import org.springframework.boot.context.properties.ConfigurationProperties
|
|
import org.springframework.stereotype.Component
|
|
|
|
/**
|
|
* Admin properties
|
|
*
|
|
* @author FatttSnake, fatttsnake@gmail.com
|
|
* @since 1.0.0
|
|
*/
|
|
@Component
|
|
@ConfigurationProperties("app.admin")
|
|
object AdminProperties {
|
|
/**
|
|
* Username
|
|
*
|
|
* @author FatttSnake, fatttsnake@gmail.com
|
|
* @since 1.0.0
|
|
*/
|
|
var username = "admin"
|
|
|
|
/**
|
|
* Password
|
|
*
|
|
* @author FatttSnake, fatttsnake@gmail.com
|
|
* @since 1.0.0
|
|
*/
|
|
var password: String? = null
|
|
|
|
/**
|
|
* Nickname
|
|
*
|
|
* @author FatttSnake, fatttsnake@gmail.com
|
|
* @since 1.0.0
|
|
*/
|
|
var nickname = "Administrator"
|
|
|
|
/**
|
|
* Email
|
|
*
|
|
* @author FatttSnake, fatttsnake@gmail.com
|
|
* @since 1.0.0
|
|
*/
|
|
var email = "admin@fatweb.top"
|
|
} |