package com.seer.teach.mp.admin.convert;

import com.seer.teach.mp.admin.controller.resp.AdminActivityFormVariableResp;
import com.seer.teach.mp.entity.MpActivityFormVariableEntity;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

@Mapper
public interface AdminActivityFormVariableConvert {
    AdminActivityFormVariableConvert INSTANCE = Mappers.getMapper(AdminActivityFormVariableConvert.class);

    @Mapping(source = "id", target = "id")
    @Mapping(source = "executionId", target = "executionId")
    @Mapping(source = "variableName", target = "variableName")
    @Mapping(source = "variableCode", target = "variableCode")
    @Mapping(source = "variableValue", target = "variableValue")
    @Mapping(source = "dataType", target = "dataType")
    AdminActivityFormVariableResp convertToResp(MpActivityFormVariableEntity entity);
}