huanghongfa
2021-07-05 2dcf4b9d75cc1b6613aea59cec4a0f9cc97f1c0e
springcloud_k8s_panzhihuazhihuishequ/service_community/src/main/java/com/panzhihua/service_community/api/DictionaryApi.java
@@ -1,5 +1,6 @@
package com.panzhihua.service_community.api;
import com.panzhihua.common.model.vos.BcDictionaryItemVO;
import com.panzhihua.common.model.vos.BcDictionaryVO;
import com.panzhihua.common.model.vos.R;
import com.panzhihua.service_community.service.BcDictionaryService;
@@ -31,4 +32,17 @@
        return bcDictionaryService.getDictionaryByKey(key);
    }
    /**
     * description 根据字典code查询自典项
     *
     * @param code 入参参数
     * @return BcDictionaryVO 字典
     * @author manailin
     * @date 2021/6/10 17:00
     */
    @GetMapping("/getByCode")
    BcDictionaryItemVO getByCode(@RequestParam("dictId") String dictId, @RequestParam("code")String code){
        return bcDictionaryService.getByCode(dictId,code);
    }
}