package com.xunhong.erp.turbo.user.infrastructure.convert;

import com.xunhong.erp.turbo.api.user.dto.cmd.AdminCreateCmd;
import com.xunhong.erp.turbo.user.domain.entity.Admin;
import com.xunhong.erp.turbo.user.infrastructure.entity.AdminDO;
import org.mapstruct.Mapper;
import org.mapstruct.NullValueCheckStrategy;

@Mapper(componentModel = "spring", nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface AdminConvert {
	Admin toAdmin(AdminDO adminDO);

	AdminDO toAdminDO(AdminCreateCmd adminCreateCmd);
}
