package com.ichangzuo.system.converter;

import com.ichangzuo.system.model.entity.Dept;
import com.ichangzuo.system.model.vo.DeptVO;
import com.ichangzuo.system.model.form.DeptForm;
import org.mapstruct.Mapper;

/**
 * 部门对象转换器
 *
 * @author haoxr
 * @since 2022/7/29
 */
@Mapper(componentModel = "spring")
public interface DeptConverter {

    DeptForm toForm(Dept entity);
    
    DeptVO toVo(Dept entity);

    Dept toEntity(DeptForm deptForm);

}