package cn.sikey.mcdisk.convert;

import cn.sikey.mcdisk.controller.app.authorizephoto.vo.AuthorizePhotoRespVO;
import cn.sikey.mcdisk.dal.dataobject.AuthorizePhotoDO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

/**
 * @Author: nelson
 * @Date: 2025/7/1
 * @Description: 授权相册
 */
@Mapper
public interface AuthorizePhotoConvert {
    AuthorizePhotoConvert INSTANCE = Mappers.getMapper(AuthorizePhotoConvert.class);

    @Mapping(source = "deviceId", target = "ticket")
    AuthorizePhotoRespVO convertOauthRespVO(AuthorizePhotoDO authorizePhotoDO);
}
