mirror of
https://gitee.com/pnoker/iot-dc3.git
synced 2026-11-03 03:32:08 +08:00
feat(manager): add MapStruct builder classes for all manager domain entities
This commit is contained in:
+119
@@ -0,0 +1,119 @@
|
||||
/*
|
||||
* Copyright 2016-present the IoT DC3 original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package io.github.pnoker.center.manager.entity.builder;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import io.github.pnoker.center.manager.entity.bo.DeviceBO;
|
||||
import io.github.pnoker.center.manager.entity.model.DeviceDO;
|
||||
import io.github.pnoker.center.manager.entity.vo.DeviceVO;
|
||||
import org.mapstruct.Mapper;
|
||||
import org.mapstruct.Mapping;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Device Builder
|
||||
*
|
||||
* @author pnoker
|
||||
* @since 2022.1.0
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface DeviceBuilder {
|
||||
|
||||
/**
|
||||
* VO to BO
|
||||
*
|
||||
* @param entityVO EntityVO
|
||||
* @return EntityBO
|
||||
*/
|
||||
DeviceBO buildBOByVO(DeviceVO entityVO);
|
||||
|
||||
/**
|
||||
* VOList to BOList
|
||||
*
|
||||
* @param entityVOList EntityVO Array
|
||||
* @return EntityBO Array
|
||||
*/
|
||||
List<DeviceBO> buildBOListByVOList(List<DeviceVO> entityVOList);
|
||||
|
||||
/**
|
||||
* BO to DO
|
||||
*
|
||||
* @param entityBO EntityBO
|
||||
* @return EntityDO
|
||||
*/
|
||||
@Mapping(target = "deleted", ignore = true)
|
||||
DeviceDO buildDOByBO(DeviceBO entityBO);
|
||||
|
||||
/**
|
||||
* BOList to DOList
|
||||
*
|
||||
* @param entityBOList EntityBO Array
|
||||
* @return EntityDO Array
|
||||
*/
|
||||
List<DeviceDO> buildDOListByBOList(List<DeviceBO> entityBOList);
|
||||
|
||||
/**
|
||||
* DO to BO
|
||||
*
|
||||
* @param entityDO EntityDO
|
||||
* @return EntityBO
|
||||
*/
|
||||
DeviceBO buildBOByDO(DeviceDO entityDO);
|
||||
|
||||
/**
|
||||
* DOList to BOList
|
||||
*
|
||||
* @param entityDOList EntityDO Array
|
||||
* @return EntityBO Array
|
||||
*/
|
||||
List<DeviceBO> buildBOByDO(List<DeviceDO> entityDOList);
|
||||
|
||||
/**
|
||||
* BO to VO
|
||||
*
|
||||
* @param entityBO EntityBO
|
||||
* @return EntityVO
|
||||
*/
|
||||
DeviceVO buildVOByBO(DeviceBO entityBO);
|
||||
|
||||
/**
|
||||
* BOList to VOList
|
||||
*
|
||||
* @param entityBOList EntityBO Array
|
||||
* @return EntityVO Array
|
||||
*/
|
||||
List<DeviceVO> buildVOListByBOList(List<DeviceBO> entityBOList);
|
||||
|
||||
/**
|
||||
* DOPage to BOPage
|
||||
*
|
||||
* @param entityPageDO EntityDO Page
|
||||
* @return EntityBO Page
|
||||
*/
|
||||
@Mapping(target = "optimizeJoinOfCountSql", ignore = true)
|
||||
Page<DeviceBO> buildBOPageByDOPage(Page<DeviceDO> entityPageDO);
|
||||
|
||||
/**
|
||||
* BOPage to VOPage
|
||||
*
|
||||
* @param entityPageBO EntityBO Page
|
||||
* @return EntityVO Page
|
||||
*/
|
||||
@Mapping(target = "optimizeJoinOfCountSql", ignore = true)
|
||||
Page<DeviceVO> buildVOPageByBOPage(Page<DeviceBO> entityPageBO);
|
||||
}
|
||||
+119
@@ -0,0 +1,119 @@
|
||||
/*
|
||||
* Copyright 2016-present the IoT DC3 original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package io.github.pnoker.center.manager.entity.builder;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import io.github.pnoker.center.manager.entity.bo.DriverAttributeBO;
|
||||
import io.github.pnoker.center.manager.entity.model.DriverAttributeDO;
|
||||
import io.github.pnoker.center.manager.entity.vo.DriverAttributeVO;
|
||||
import org.mapstruct.Mapper;
|
||||
import org.mapstruct.Mapping;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* DriverAttribute Builder
|
||||
*
|
||||
* @author pnoker
|
||||
* @since 2022.1.0
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface DriverAttributeBuilder {
|
||||
|
||||
/**
|
||||
* VO to BO
|
||||
*
|
||||
* @param entityVO EntityVO
|
||||
* @return EntityBO
|
||||
*/
|
||||
DriverAttributeBO buildBOByVO(DriverAttributeVO entityVO);
|
||||
|
||||
/**
|
||||
* VOList to BOList
|
||||
*
|
||||
* @param entityVOList EntityVO Array
|
||||
* @return EntityBO Array
|
||||
*/
|
||||
List<DriverAttributeBO> buildBOListByVOList(List<DriverAttributeVO> entityVOList);
|
||||
|
||||
/**
|
||||
* BO to DO
|
||||
*
|
||||
* @param entityBO EntityBO
|
||||
* @return EntityDO
|
||||
*/
|
||||
@Mapping(target = "deleted", ignore = true)
|
||||
DriverAttributeDO buildDOByBO(DriverAttributeBO entityBO);
|
||||
|
||||
/**
|
||||
* BOList to DOList
|
||||
*
|
||||
* @param entityBOList EntityBO Array
|
||||
* @return EntityDO Array
|
||||
*/
|
||||
List<DriverAttributeDO> buildDOListByBOList(List<DriverAttributeBO> entityBOList);
|
||||
|
||||
/**
|
||||
* DO to BO
|
||||
*
|
||||
* @param entityDO EntityDO
|
||||
* @return EntityBO
|
||||
*/
|
||||
DriverAttributeBO buildBOByDO(DriverAttributeDO entityDO);
|
||||
|
||||
/**
|
||||
* DOList to BOList
|
||||
*
|
||||
* @param entityDOList EntityDO Array
|
||||
* @return EntityBO Array
|
||||
*/
|
||||
List<DriverAttributeBO> buildBOByDO(List<DriverAttributeDO> entityDOList);
|
||||
|
||||
/**
|
||||
* BO to VO
|
||||
*
|
||||
* @param entityBO EntityBO
|
||||
* @return EntityVO
|
||||
*/
|
||||
DriverAttributeVO buildVOByBO(DriverAttributeBO entityBO);
|
||||
|
||||
/**
|
||||
* BOList to VOList
|
||||
*
|
||||
* @param entityBOList EntityBO Array
|
||||
* @return EntityVO Array
|
||||
*/
|
||||
List<DriverAttributeVO> buildVOListByBOList(List<DriverAttributeBO> entityBOList);
|
||||
|
||||
/**
|
||||
* DOPage to BOPage
|
||||
*
|
||||
* @param entityPageDO EntityDO Page
|
||||
* @return EntityBO Page
|
||||
*/
|
||||
@Mapping(target = "optimizeJoinOfCountSql", ignore = true)
|
||||
Page<DriverAttributeBO> buildBOPageByDOPage(Page<DriverAttributeDO> entityPageDO);
|
||||
|
||||
/**
|
||||
* BOPage to VOPage
|
||||
*
|
||||
* @param entityPageBO EntityBO Page
|
||||
* @return EntityVO Page
|
||||
*/
|
||||
@Mapping(target = "optimizeJoinOfCountSql", ignore = true)
|
||||
Page<DriverAttributeVO> buildVOPageByBOPage(Page<DriverAttributeBO> entityPageBO);
|
||||
}
|
||||
+119
@@ -0,0 +1,119 @@
|
||||
/*
|
||||
* Copyright 2016-present the IoT DC3 original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package io.github.pnoker.center.manager.entity.builder;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import io.github.pnoker.center.manager.entity.bo.DriverAttributeConfigBO;
|
||||
import io.github.pnoker.center.manager.entity.model.DriverAttributeConfigDO;
|
||||
import io.github.pnoker.center.manager.entity.vo.DriverAttributeConfigVO;
|
||||
import org.mapstruct.Mapper;
|
||||
import org.mapstruct.Mapping;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* DriverAttributeConfig Builder
|
||||
*
|
||||
* @author pnoker
|
||||
* @since 2022.1.0
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface DriverAttributeConfigBuilder {
|
||||
|
||||
/**
|
||||
* VO to BO
|
||||
*
|
||||
* @param entityVO EntityVO
|
||||
* @return EntityBO
|
||||
*/
|
||||
DriverAttributeConfigBO buildBOByVO(DriverAttributeConfigVO entityVO);
|
||||
|
||||
/**
|
||||
* VOList to BOList
|
||||
*
|
||||
* @param entityVOList EntityVO Array
|
||||
* @return EntityBO Array
|
||||
*/
|
||||
List<DriverAttributeConfigBO> buildBOListByVOList(List<DriverAttributeConfigVO> entityVOList);
|
||||
|
||||
/**
|
||||
* BO to DO
|
||||
*
|
||||
* @param entityBO EntityBO
|
||||
* @return EntityDO
|
||||
*/
|
||||
@Mapping(target = "deleted", ignore = true)
|
||||
DriverAttributeConfigDO buildDOByBO(DriverAttributeConfigBO entityBO);
|
||||
|
||||
/**
|
||||
* BOList to DOList
|
||||
*
|
||||
* @param entityBOList EntityBO Array
|
||||
* @return EntityDO Array
|
||||
*/
|
||||
List<DriverAttributeConfigDO> buildDOListByBOList(List<DriverAttributeConfigBO> entityBOList);
|
||||
|
||||
/**
|
||||
* DO to BO
|
||||
*
|
||||
* @param entityDO EntityDO
|
||||
* @return EntityBO
|
||||
*/
|
||||
DriverAttributeConfigBO buildBOByDO(DriverAttributeConfigDO entityDO);
|
||||
|
||||
/**
|
||||
* DOList to BOList
|
||||
*
|
||||
* @param entityDOList EntityDO Array
|
||||
* @return EntityBO Array
|
||||
*/
|
||||
List<DriverAttributeConfigBO> buildBOByDO(List<DriverAttributeConfigDO> entityDOList);
|
||||
|
||||
/**
|
||||
* BO to VO
|
||||
*
|
||||
* @param entityBO EntityBO
|
||||
* @return EntityVO
|
||||
*/
|
||||
DriverAttributeConfigVO buildVOByBO(DriverAttributeConfigBO entityBO);
|
||||
|
||||
/**
|
||||
* BOList to VOList
|
||||
*
|
||||
* @param entityBOList EntityBO Array
|
||||
* @return EntityVO Array
|
||||
*/
|
||||
List<DriverAttributeConfigVO> buildVOListByBOList(List<DriverAttributeConfigBO> entityBOList);
|
||||
|
||||
/**
|
||||
* DOPage to BOPage
|
||||
*
|
||||
* @param entityPageDO EntityDO Page
|
||||
* @return EntityBO Page
|
||||
*/
|
||||
@Mapping(target = "optimizeJoinOfCountSql", ignore = true)
|
||||
Page<DriverAttributeConfigBO> buildBOPageByDOPage(Page<DriverAttributeConfigDO> entityPageDO);
|
||||
|
||||
/**
|
||||
* BOPage to VOPage
|
||||
*
|
||||
* @param entityPageBO EntityBO Page
|
||||
* @return EntityVO Page
|
||||
*/
|
||||
@Mapping(target = "optimizeJoinOfCountSql", ignore = true)
|
||||
Page<DriverAttributeConfigVO> buildVOPageByBOPage(Page<DriverAttributeConfigBO> entityPageBO);
|
||||
}
|
||||
+119
@@ -0,0 +1,119 @@
|
||||
/*
|
||||
* Copyright 2016-present the IoT DC3 original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package io.github.pnoker.center.manager.entity.builder;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import io.github.pnoker.center.manager.entity.bo.DriverBO;
|
||||
import io.github.pnoker.center.manager.entity.model.DriverDO;
|
||||
import io.github.pnoker.center.manager.entity.vo.DriverVO;
|
||||
import org.mapstruct.Mapper;
|
||||
import org.mapstruct.Mapping;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Driver Builder
|
||||
*
|
||||
* @author pnoker
|
||||
* @since 2022.1.0
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface DriverBuilder {
|
||||
|
||||
/**
|
||||
* VO to BO
|
||||
*
|
||||
* @param entityVO EntityVO
|
||||
* @return EntityBO
|
||||
*/
|
||||
DriverBO buildBOByVO(DriverVO entityVO);
|
||||
|
||||
/**
|
||||
* VOList to BOList
|
||||
*
|
||||
* @param entityVOList EntityVO Array
|
||||
* @return EntityBO Array
|
||||
*/
|
||||
List<DriverBO> buildBOListByVOList(List<DriverVO> entityVOList);
|
||||
|
||||
/**
|
||||
* BO to DO
|
||||
*
|
||||
* @param entityBO EntityBO
|
||||
* @return EntityDO
|
||||
*/
|
||||
@Mapping(target = "deleted", ignore = true)
|
||||
DriverDO buildDOByBO(DriverBO entityBO);
|
||||
|
||||
/**
|
||||
* BOList to DOList
|
||||
*
|
||||
* @param entityBOList EntityBO Array
|
||||
* @return EntityDO Array
|
||||
*/
|
||||
List<DriverDO> buildDOListByBOList(List<DriverBO> entityBOList);
|
||||
|
||||
/**
|
||||
* DO to BO
|
||||
*
|
||||
* @param entityDO EntityDO
|
||||
* @return EntityBO
|
||||
*/
|
||||
DriverBO buildBOByDO(DriverDO entityDO);
|
||||
|
||||
/**
|
||||
* DOList to BOList
|
||||
*
|
||||
* @param entityDOList EntityDO Array
|
||||
* @return EntityBO Array
|
||||
*/
|
||||
List<DriverBO> buildBOByDO(List<DriverDO> entityDOList);
|
||||
|
||||
/**
|
||||
* BO to VO
|
||||
*
|
||||
* @param entityBO EntityBO
|
||||
* @return EntityVO
|
||||
*/
|
||||
DriverVO buildVOByBO(DriverBO entityBO);
|
||||
|
||||
/**
|
||||
* BOList to VOList
|
||||
*
|
||||
* @param entityBOList EntityBO Array
|
||||
* @return EntityVO Array
|
||||
*/
|
||||
List<DriverVO> buildVOListByBOList(List<DriverBO> entityBOList);
|
||||
|
||||
/**
|
||||
* DOPage to BOPage
|
||||
*
|
||||
* @param entityPageDO EntityDO Page
|
||||
* @return EntityBO Page
|
||||
*/
|
||||
@Mapping(target = "optimizeJoinOfCountSql", ignore = true)
|
||||
Page<DriverBO> buildBOPageByDOPage(Page<DriverDO> entityPageDO);
|
||||
|
||||
/**
|
||||
* BOPage to VOPage
|
||||
*
|
||||
* @param entityPageBO EntityBO Page
|
||||
* @return EntityVO Page
|
||||
*/
|
||||
@Mapping(target = "optimizeJoinOfCountSql", ignore = true)
|
||||
Page<DriverVO> buildVOPageByBOPage(Page<DriverBO> entityPageBO);
|
||||
}
|
||||
+119
@@ -0,0 +1,119 @@
|
||||
/*
|
||||
* Copyright 2016-present the IoT DC3 original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package io.github.pnoker.center.manager.entity.builder;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import io.github.pnoker.center.manager.entity.bo.PointAttributeBO;
|
||||
import io.github.pnoker.center.manager.entity.model.PointAttributeDO;
|
||||
import io.github.pnoker.center.manager.entity.vo.PointAttributeVO;
|
||||
import org.mapstruct.Mapper;
|
||||
import org.mapstruct.Mapping;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* PointAttribute Builder
|
||||
*
|
||||
* @author pnoker
|
||||
* @since 2022.1.0
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface PointAttributeBuilder {
|
||||
|
||||
/**
|
||||
* VO to BO
|
||||
*
|
||||
* @param entityVO EntityVO
|
||||
* @return EntityBO
|
||||
*/
|
||||
PointAttributeBO buildBOByVO(PointAttributeVO entityVO);
|
||||
|
||||
/**
|
||||
* VOList to BOList
|
||||
*
|
||||
* @param entityVOList EntityVO Array
|
||||
* @return EntityBO Array
|
||||
*/
|
||||
List<PointAttributeBO> buildBOListByVOList(List<PointAttributeVO> entityVOList);
|
||||
|
||||
/**
|
||||
* BO to DO
|
||||
*
|
||||
* @param entityBO EntityBO
|
||||
* @return EntityDO
|
||||
*/
|
||||
@Mapping(target = "deleted", ignore = true)
|
||||
PointAttributeDO buildDOByBO(PointAttributeBO entityBO);
|
||||
|
||||
/**
|
||||
* BOList to DOList
|
||||
*
|
||||
* @param entityBOList EntityBO Array
|
||||
* @return EntityDO Array
|
||||
*/
|
||||
List<PointAttributeDO> buildDOListByBOList(List<PointAttributeBO> entityBOList);
|
||||
|
||||
/**
|
||||
* DO to BO
|
||||
*
|
||||
* @param entityDO EntityDO
|
||||
* @return EntityBO
|
||||
*/
|
||||
PointAttributeBO buildBOByDO(PointAttributeDO entityDO);
|
||||
|
||||
/**
|
||||
* DOList to BOList
|
||||
*
|
||||
* @param entityDOList EntityDO Array
|
||||
* @return EntityBO Array
|
||||
*/
|
||||
List<PointAttributeBO> buildBOByDO(List<PointAttributeDO> entityDOList);
|
||||
|
||||
/**
|
||||
* BO to VO
|
||||
*
|
||||
* @param entityBO EntityBO
|
||||
* @return EntityVO
|
||||
*/
|
||||
PointAttributeVO buildVOByBO(PointAttributeBO entityBO);
|
||||
|
||||
/**
|
||||
* BOList to VOList
|
||||
*
|
||||
* @param entityBOList EntityBO Array
|
||||
* @return EntityVO Array
|
||||
*/
|
||||
List<PointAttributeVO> buildVOListByBOList(List<PointAttributeBO> entityBOList);
|
||||
|
||||
/**
|
||||
* DOPage to BOPage
|
||||
*
|
||||
* @param entityPageDO EntityDO Page
|
||||
* @return EntityBO Page
|
||||
*/
|
||||
@Mapping(target = "optimizeJoinOfCountSql", ignore = true)
|
||||
Page<PointAttributeBO> buildBOPageByDOPage(Page<PointAttributeDO> entityPageDO);
|
||||
|
||||
/**
|
||||
* BOPage to VOPage
|
||||
*
|
||||
* @param entityPageBO EntityBO Page
|
||||
* @return EntityVO Page
|
||||
*/
|
||||
@Mapping(target = "optimizeJoinOfCountSql", ignore = true)
|
||||
Page<PointAttributeVO> buildVOPageByBOPage(Page<PointAttributeBO> entityPageBO);
|
||||
}
|
||||
+119
@@ -0,0 +1,119 @@
|
||||
/*
|
||||
* Copyright 2016-present the IoT DC3 original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package io.github.pnoker.center.manager.entity.builder;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import io.github.pnoker.center.manager.entity.bo.PointAttributeConfigBO;
|
||||
import io.github.pnoker.center.manager.entity.model.PointAttributeConfigDO;
|
||||
import io.github.pnoker.center.manager.entity.vo.PointAttributeConfigVO;
|
||||
import org.mapstruct.Mapper;
|
||||
import org.mapstruct.Mapping;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* PointAttributeConfig Builder
|
||||
*
|
||||
* @author pnoker
|
||||
* @since 2022.1.0
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface PointAttributeConfigBuilder {
|
||||
|
||||
/**
|
||||
* VO to BO
|
||||
*
|
||||
* @param entityVO EntityVO
|
||||
* @return EntityBO
|
||||
*/
|
||||
PointAttributeConfigBO buildBOByVO(PointAttributeConfigVO entityVO);
|
||||
|
||||
/**
|
||||
* VOList to BOList
|
||||
*
|
||||
* @param entityVOList EntityVO Array
|
||||
* @return EntityBO Array
|
||||
*/
|
||||
List<PointAttributeConfigBO> buildBOListByVOList(List<PointAttributeConfigVO> entityVOList);
|
||||
|
||||
/**
|
||||
* BO to DO
|
||||
*
|
||||
* @param entityBO EntityBO
|
||||
* @return EntityDO
|
||||
*/
|
||||
@Mapping(target = "deleted", ignore = true)
|
||||
PointAttributeConfigDO buildDOByBO(PointAttributeConfigBO entityBO);
|
||||
|
||||
/**
|
||||
* BOList to DOList
|
||||
*
|
||||
* @param entityBOList EntityBO Array
|
||||
* @return EntityDO Array
|
||||
*/
|
||||
List<PointAttributeConfigDO> buildDOListByBOList(List<PointAttributeConfigBO> entityBOList);
|
||||
|
||||
/**
|
||||
* DO to BO
|
||||
*
|
||||
* @param entityDO EntityDO
|
||||
* @return EntityBO
|
||||
*/
|
||||
PointAttributeConfigBO buildBOByDO(PointAttributeConfigDO entityDO);
|
||||
|
||||
/**
|
||||
* DOList to BOList
|
||||
*
|
||||
* @param entityDOList EntityDO Array
|
||||
* @return EntityBO Array
|
||||
*/
|
||||
List<PointAttributeConfigBO> buildBOByDO(List<PointAttributeConfigDO> entityDOList);
|
||||
|
||||
/**
|
||||
* BO to VO
|
||||
*
|
||||
* @param entityBO EntityBO
|
||||
* @return EntityVO
|
||||
*/
|
||||
PointAttributeConfigVO buildVOByBO(PointAttributeConfigBO entityBO);
|
||||
|
||||
/**
|
||||
* BOList to VOList
|
||||
*
|
||||
* @param entityBOList EntityBO Array
|
||||
* @return EntityVO Array
|
||||
*/
|
||||
List<PointAttributeConfigVO> buildVOListByBOList(List<PointAttributeConfigBO> entityBOList);
|
||||
|
||||
/**
|
||||
* DOPage to BOPage
|
||||
*
|
||||
* @param entityPageDO EntityDO Page
|
||||
* @return EntityBO Page
|
||||
*/
|
||||
@Mapping(target = "optimizeJoinOfCountSql", ignore = true)
|
||||
Page<PointAttributeConfigBO> buildBOPageByDOPage(Page<PointAttributeConfigDO> entityPageDO);
|
||||
|
||||
/**
|
||||
* BOPage to VOPage
|
||||
*
|
||||
* @param entityPageBO EntityBO Page
|
||||
* @return EntityVO Page
|
||||
*/
|
||||
@Mapping(target = "optimizeJoinOfCountSql", ignore = true)
|
||||
Page<PointAttributeConfigVO> buildVOPageByBOPage(Page<PointAttributeConfigBO> entityPageBO);
|
||||
}
|
||||
+119
@@ -0,0 +1,119 @@
|
||||
/*
|
||||
* Copyright 2016-present the IoT DC3 original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package io.github.pnoker.center.manager.entity.builder;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import io.github.pnoker.center.manager.entity.bo.PointBO;
|
||||
import io.github.pnoker.center.manager.entity.model.PointDO;
|
||||
import io.github.pnoker.center.manager.entity.vo.PointVO;
|
||||
import org.mapstruct.Mapper;
|
||||
import org.mapstruct.Mapping;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Point Builder
|
||||
*
|
||||
* @author pnoker
|
||||
* @since 2022.1.0
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface PointBuilder {
|
||||
|
||||
/**
|
||||
* VO to BO
|
||||
*
|
||||
* @param entityVO EntityVO
|
||||
* @return EntityBO
|
||||
*/
|
||||
PointBO buildBOByVO(PointVO entityVO);
|
||||
|
||||
/**
|
||||
* VOList to BOList
|
||||
*
|
||||
* @param entityVOList EntityVO Array
|
||||
* @return EntityBO Array
|
||||
*/
|
||||
List<PointBO> buildBOListByVOList(List<PointVO> entityVOList);
|
||||
|
||||
/**
|
||||
* BO to DO
|
||||
*
|
||||
* @param entityBO EntityBO
|
||||
* @return EntityDO
|
||||
*/
|
||||
@Mapping(target = "deleted", ignore = true)
|
||||
PointDO buildDOByBO(PointBO entityBO);
|
||||
|
||||
/**
|
||||
* BOList to DOList
|
||||
*
|
||||
* @param entityBOList EntityBO Array
|
||||
* @return EntityDO Array
|
||||
*/
|
||||
List<PointDO> buildDOListByBOList(List<PointBO> entityBOList);
|
||||
|
||||
/**
|
||||
* DO to BO
|
||||
*
|
||||
* @param entityDO EntityDO
|
||||
* @return EntityBO
|
||||
*/
|
||||
PointBO buildBOByDO(PointDO entityDO);
|
||||
|
||||
/**
|
||||
* DOList to BOList
|
||||
*
|
||||
* @param entityDOList EntityDO Array
|
||||
* @return EntityBO Array
|
||||
*/
|
||||
List<PointBO> buildBOByDO(List<PointDO> entityDOList);
|
||||
|
||||
/**
|
||||
* BO to VO
|
||||
*
|
||||
* @param entityBO EntityBO
|
||||
* @return EntityVO
|
||||
*/
|
||||
PointVO buildVOByBO(PointBO entityBO);
|
||||
|
||||
/**
|
||||
* BOList to VOList
|
||||
*
|
||||
* @param entityBOList EntityBO Array
|
||||
* @return EntityVO Array
|
||||
*/
|
||||
List<PointVO> buildVOListByBOList(List<PointBO> entityBOList);
|
||||
|
||||
/**
|
||||
* DOPage to BOPage
|
||||
*
|
||||
* @param entityPageDO EntityDO Page
|
||||
* @return EntityBO Page
|
||||
*/
|
||||
@Mapping(target = "optimizeJoinOfCountSql", ignore = true)
|
||||
Page<PointBO> buildBOPageByDOPage(Page<PointDO> entityPageDO);
|
||||
|
||||
/**
|
||||
* BOPage to VOPage
|
||||
*
|
||||
* @param entityPageBO EntityBO Page
|
||||
* @return EntityVO Page
|
||||
*/
|
||||
@Mapping(target = "optimizeJoinOfCountSql", ignore = true)
|
||||
Page<PointVO> buildVOPageByBOPage(Page<PointBO> entityPageBO);
|
||||
}
|
||||
+119
@@ -0,0 +1,119 @@
|
||||
/*
|
||||
* Copyright 2016-present the IoT DC3 original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package io.github.pnoker.center.manager.entity.builder;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import io.github.pnoker.center.manager.entity.bo.ProfileBindBO;
|
||||
import io.github.pnoker.center.manager.entity.model.ProfileBindDO;
|
||||
import io.github.pnoker.center.manager.entity.vo.ProfileBindVO;
|
||||
import org.mapstruct.Mapper;
|
||||
import org.mapstruct.Mapping;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* ProfileBind Builder
|
||||
*
|
||||
* @author pnoker
|
||||
* @since 2022.1.0
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface ProfileBindBuilder {
|
||||
|
||||
/**
|
||||
* VO to BO
|
||||
*
|
||||
* @param entityVO EntityVO
|
||||
* @return EntityBO
|
||||
*/
|
||||
ProfileBindBO buildBOByVO(ProfileBindVO entityVO);
|
||||
|
||||
/**
|
||||
* VOList to BOList
|
||||
*
|
||||
* @param entityVOList EntityVO Array
|
||||
* @return EntityBO Array
|
||||
*/
|
||||
List<ProfileBindBO> buildBOListByVOList(List<ProfileBindVO> entityVOList);
|
||||
|
||||
/**
|
||||
* BO to DO
|
||||
*
|
||||
* @param entityBO EntityBO
|
||||
* @return EntityDO
|
||||
*/
|
||||
@Mapping(target = "deleted", ignore = true)
|
||||
ProfileBindDO buildDOByBO(ProfileBindBO entityBO);
|
||||
|
||||
/**
|
||||
* BOList to DOList
|
||||
*
|
||||
* @param entityBOList EntityBO Array
|
||||
* @return EntityDO Array
|
||||
*/
|
||||
List<ProfileBindDO> buildDOListByBOList(List<ProfileBindBO> entityBOList);
|
||||
|
||||
/**
|
||||
* DO to BO
|
||||
*
|
||||
* @param entityDO EntityDO
|
||||
* @return EntityBO
|
||||
*/
|
||||
ProfileBindBO buildBOByDO(ProfileBindDO entityDO);
|
||||
|
||||
/**
|
||||
* DOList to BOList
|
||||
*
|
||||
* @param entityDOList EntityDO Array
|
||||
* @return EntityBO Array
|
||||
*/
|
||||
List<ProfileBindBO> buildBOByDO(List<ProfileBindDO> entityDOList);
|
||||
|
||||
/**
|
||||
* BO to VO
|
||||
*
|
||||
* @param entityBO EntityBO
|
||||
* @return EntityVO
|
||||
*/
|
||||
ProfileBindVO buildVOByBO(ProfileBindBO entityBO);
|
||||
|
||||
/**
|
||||
* BOList to VOList
|
||||
*
|
||||
* @param entityBOList EntityBO Array
|
||||
* @return EntityVO Array
|
||||
*/
|
||||
List<ProfileBindVO> buildVOListByBOList(List<ProfileBindBO> entityBOList);
|
||||
|
||||
/**
|
||||
* DOPage to BOPage
|
||||
*
|
||||
* @param entityPageDO EntityDO Page
|
||||
* @return EntityBO Page
|
||||
*/
|
||||
@Mapping(target = "optimizeJoinOfCountSql", ignore = true)
|
||||
Page<ProfileBindBO> buildBOPageByDOPage(Page<ProfileBindDO> entityPageDO);
|
||||
|
||||
/**
|
||||
* BOPage to VOPage
|
||||
*
|
||||
* @param entityPageBO EntityBO Page
|
||||
* @return EntityVO Page
|
||||
*/
|
||||
@Mapping(target = "optimizeJoinOfCountSql", ignore = true)
|
||||
Page<ProfileBindVO> buildVOPageByBOPage(Page<ProfileBindBO> entityPageBO);
|
||||
}
|
||||
+119
@@ -0,0 +1,119 @@
|
||||
/*
|
||||
* Copyright 2016-present the IoT DC3 original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
package io.github.pnoker.center.manager.entity.builder;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import io.github.pnoker.center.manager.entity.bo.ProfileBO;
|
||||
import io.github.pnoker.center.manager.entity.model.ProfileDO;
|
||||
import io.github.pnoker.center.manager.entity.vo.ProfileVO;
|
||||
import org.mapstruct.Mapper;
|
||||
import org.mapstruct.Mapping;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* Profile Builder
|
||||
*
|
||||
* @author pnoker
|
||||
* @since 2022.1.0
|
||||
*/
|
||||
@Mapper(componentModel = "spring")
|
||||
public interface ProfileBuilder {
|
||||
|
||||
/**
|
||||
* VO to BO
|
||||
*
|
||||
* @param entityVO EntityVO
|
||||
* @return EntityBO
|
||||
*/
|
||||
ProfileBO buildBOByVO(ProfileVO entityVO);
|
||||
|
||||
/**
|
||||
* VOList to BOList
|
||||
*
|
||||
* @param entityVOList EntityVO Array
|
||||
* @return EntityBO Array
|
||||
*/
|
||||
List<ProfileBO> buildBOListByVOList(List<ProfileVO> entityVOList);
|
||||
|
||||
/**
|
||||
* BO to DO
|
||||
*
|
||||
* @param entityBO EntityBO
|
||||
* @return EntityDO
|
||||
*/
|
||||
@Mapping(target = "deleted", ignore = true)
|
||||
ProfileDO buildDOByBO(ProfileBO entityBO);
|
||||
|
||||
/**
|
||||
* BOList to DOList
|
||||
*
|
||||
* @param entityBOList EntityBO Array
|
||||
* @return EntityDO Array
|
||||
*/
|
||||
List<ProfileDO> buildDOListByBOList(List<ProfileBO> entityBOList);
|
||||
|
||||
/**
|
||||
* DO to BO
|
||||
*
|
||||
* @param entityDO EntityDO
|
||||
* @return EntityBO
|
||||
*/
|
||||
ProfileBO buildBOByDO(ProfileDO entityDO);
|
||||
|
||||
/**
|
||||
* DOList to BOList
|
||||
*
|
||||
* @param entityDOList EntityDO Array
|
||||
* @return EntityBO Array
|
||||
*/
|
||||
List<ProfileBO> buildBOByDO(List<ProfileDO> entityDOList);
|
||||
|
||||
/**
|
||||
* BO to VO
|
||||
*
|
||||
* @param entityBO EntityBO
|
||||
* @return EntityVO
|
||||
*/
|
||||
ProfileVO buildVOByBO(ProfileBO entityBO);
|
||||
|
||||
/**
|
||||
* BOList to VOList
|
||||
*
|
||||
* @param entityBOList EntityBO Array
|
||||
* @return EntityVO Array
|
||||
*/
|
||||
List<ProfileVO> buildVOListByBOList(List<ProfileBO> entityBOList);
|
||||
|
||||
/**
|
||||
* DOPage to BOPage
|
||||
*
|
||||
* @param entityPageDO EntityDO Page
|
||||
* @return EntityBO Page
|
||||
*/
|
||||
@Mapping(target = "optimizeJoinOfCountSql", ignore = true)
|
||||
Page<ProfileBO> buildBOPageByDOPage(Page<ProfileDO> entityPageDO);
|
||||
|
||||
/**
|
||||
* BOPage to VOPage
|
||||
*
|
||||
* @param entityPageBO EntityBO Page
|
||||
* @return EntityVO Page
|
||||
*/
|
||||
@Mapping(target = "optimizeJoinOfCountSql", ignore = true)
|
||||
Page<ProfileVO> buildVOPageByBOPage(Page<ProfileBO> entityPageBO);
|
||||
}
|
||||
Reference in New Issue
Block a user