package com.xingxi.web.controller.system.service.impl;

import com.xingxi.system.mapper.SysDictDataMapper;
import com.xingxi.system.service.ISysDictTypeService;
import com.xingxi.system.service.impl.SysDictTypeServiceImpl;
import com.xingxi.web.controller.system.service.ISysDictTypeVoService;
import org.springframework.stereotype.Service;

import javax.annotation.PostConstruct;
import javax.annotation.Resource;

/**
 * 字典 业务层处理
 *
 * @author xingxi
 */
@Service
public class SysDictTypeVoServiceImpl implements ISysDictTypeVoService {
    @Resource
    private ISysDictTypeService sysDictTypeService;

    /**
     * 项目启动时，初始化字典到缓存
     */
    @PostConstruct
    public void init() {
        sysDictTypeService.loadingDictCache();
    }
}
