package gaf3.core.services.menu


import org.springframework.boot.context.properties.ConfigurationProperties
import org.springframework.core.io.ClassPathResource
import org.springframework.core.io.Resource

@ConfigurationProperties(prefix = "gaf.menu")
class GafMenuConfigure {

    /**
     * 是否启用SPA处理
     */
    var storeType: StoreType = StoreType.file

    /**
     * 菜单树资源文件
     */
    var itemsFile: Resource = ClassPathResource("/menu/items.json")

    /**
     * 菜单条资源文件
     */
    var menusFile: Resource = ClassPathResource("/menu/menus.json")

    enum class StoreType {
        file, db
    }

}