DgStaffConverter.java 723 Bytes
package com.pashanhoo.staff.entity;

import java.util.List;
import com.pashanhoo.staff.entity.vo.AddDgStaffRequest;
import com.pashanhoo.staff.entity.vo.DgStaffDetailVO;
import com.pashanhoo.staff.entity.vo.DgStaffListVO;
import com.pashanhoo.staff.entity.vo.UpdateDgStaffRequest;
import org.mapstruct.Mapper;

/**
 * @author
 * @since 2021-11-08
 */
@Mapper(componentModel = "spring")
public interface DgStaffConverter{
    DgStaffDO addRequest2DO(AddDgStaffRequest request);

    DgStaffDetailVO do2DetailVO(DgStaffDO dgstaffDO);

    DgStaffDO updateRequest2DO(UpdateDgStaffRequest request);

    DgStaffListVO do2ListVO(DgStaffDO dgstaffDO);

    List<DgStaffListVO> doList2ListVOList(List<DgStaffDO> dgstaffDOList);
}