package com.jwipc.tender.logic.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.jwipc.page.PageUtil;
import com.jwipc.page.PageView;
import com.jwipc.tender.service.IDimensionService;
import com.jwipc.tender.convert.DimensionConvert;
import com.jwipc.tender.dto.DimensionDTO;

import com.jwipc.tender.logic.DimensionLogic;

import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author AL
 * @date 2024/1/31 15:01
 * @desc 模具
 */
@Service
@RequiredArgsConstructor
public class DimensionLogicImpl implements DimensionLogic {

    private final IDimensionService dimensionService;
    private final DimensionConvert dimensionConvert;
    
    @Override
    /**
     * 维度下拉框数据
     */
    public List<DimensionDTO> listAll() {
        return dimensionConvert.entity2ListDTO(dimensionService.list());
    }
}
