package com.youchain.config.thread;

import com.youchain.modules.system.domain.Dept;
import com.youchain.modules.system.repository.DeptRepository;
import com.youchain.utils.BaseStatus;
import com.youchain.utils.UserUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @author 92525
 */
@Component
public class BaseComponent {
    @Autowired
    private DeptRepository deptRepository;
    public BaseComponent(){

    }
    @PostConstruct
    public void configUrlApi(){
        UserUtils.isDept=deptRepository.findById(7L);
    }
}
