package cn.sikey.mcdisk.convert;


import cn.sikey.mcdisk.controller.app.familycloud.vo.InviteFamilyMemberRespVO;
import cn.sikey.mcdisk.controller.app.wristwatch.vo.AuthorizeRespVO;
import cn.sikey.mcdisk.dal.dataobject.AuthorizeDO;
import cn.sikey.mcdisk.dal.dataobject.InviteFamilyMemberDO;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

@Mapper
public interface OauthConvert {

    OauthConvert INSTANCE = Mappers.getMapper(OauthConvert.class);

    @Mapping(source = "deviceId", target = "ticket")
    AuthorizeRespVO convertOauthRespVO(AuthorizeDO authorizeDO);

    InviteFamilyMemberRespVO convertInviteFamilyMemberRespVO(InviteFamilyMemberDO inviteFamilyMemberDO);
}
