package com.jwipc.sys.logic;

import com.jwipc.page.PageView;
import com.jwipc.sys.dto.FactoryDTO;
import com.jwipc.sys.dto.UserFactoryTreeDTO;
import com.jwipc.sys.model.query.FactoryQuery;

import java.util.List;

/**
 * @author shenyang.ou
 * @date 2024/1/29 15:01
 * @desc
 */
public interface FactoryLogic {
    PageView findByPage(FactoryQuery query);

    FactoryDTO getById(Long id);

    void saveOrUpdate(FactoryDTO param);

    void remove(String factoryCode);

    List<UserFactoryTreeDTO> getForTree(Long userId);

    List<FactoryDTO> findByAllList();

    List<FactoryDTO> listAll(FactoryQuery query);
}
