Thanks to visit codestin.com
Credit goes to github.com

Skip to content

zhengjin-me/common-dict

Repository files navigation

common-dict

GitHub Workflow Status Maven Central GitHub

dependencies {
    implementation "me.zhengjin:common-dict:version"
}

自定义字典内容实现方式

实现DictAdapter接口, type为system_开头才会走系统查询, 否则转入适配器查询

    /**
     * @param type 字典类型, 如果支持此类型查询则返回true
     *
     * 是否支持对传入的字典类型进行查询
     */
    fun dictSupport(type: String): Boolean

    /**
     * @param searchData    字典查询时的传入内容
     * @param searchType    查询类型
     * @param dictType      字典类型
     * @param pageable      分页参数
     *
     * 字典查询, 必须实现 searchType === CODE_EXACT 精准查询适配
     */
    fun dictHandler(searchData: String, searchType: DictSearchType, dictType: String, pageable: Pageable): Page<Dict.CodeName>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages