package com.engine.salary.wrapper;

import com.engine.common.util.ServiceUtil;
import com.engine.core.impl.Service;
import com.engine.salary.entity.salaryBill.dto.MySalaryShowSetDTO;
import com.engine.salary.service.MySalaryShowSetService;
import com.engine.salary.service.impl.MySalaryShowSetServiceImpl;
import org.springframework.stereotype.Component;
import weaver.hrm.User;

;

/**
 * @Description: 我的薪资福利显示设置
 * @Author: wangxiangzhong
 * @Date: 2023/8/7 11:24
 */
@Component
public class MySalaryShowSetWrapper extends Service {
    private MySalaryShowSetService getMySalaryShowSetService(User user) {
        return ServiceUtil.getService(MySalaryShowSetServiceImpl.class, user);
    }

    /**
     * 获取我的薪资福利显示设置
     *
     * @return
     */
    public MySalaryShowSetDTO mySalaryShowSet() {
        return getMySalaryShowSetService(user).get();
    }
}
