package com.zsElectric.boot.business.converter;

import com.zsElectric.boot.business.model.vo.UserInfoVO;
import org.mapstruct.Mapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zsElectric.boot.business.model.entity.UserInfo;
import com.zsElectric.boot.business.model.form.UserInfoForm;

/**
 * 个人用户信息对象转换器
 *
 * @author zsElectric
 * @since 2025-12-12 10:27
 */
@Mapper(componentModel = "spring")
public interface UserInfoConverter{

    UserInfoForm toForm(UserInfo entity);

    UserInfo toEntity(UserInfoForm formData);
    
    /**
     * 实体转换为VO
     *
     * @param entity 实体对象
     * @return VO对象
     */
    UserInfoVO toVO(UserInfo entity);
}