package com.xueyi.system.api.digitalmans.domain.merge;

import com.baomidou.mybatisplus.annotation.TableName;
import com.xueyi.common.core.annotation.Correlation;
import com.xueyi.common.core.annotation.Correlations;
import com.xueyi.common.core.constant.basic.OperateConstants;
import com.xueyi.common.core.web.tenant.base.TBasisEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serial;


/**
 * 任务访客关联 持久化对象
 *
 * @author xueyi
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("dm_model_icon_merge")
public class DmModelIconMerge extends TBasisEntity {

    @Serial
    private static final long serialVersionUID = 1L;


    /** 招待任务id */
    @Correlations({
            @Correlation(groupName = MergeGroup.Model_DmModelIcon_GROUP, keyType = OperateConstants.SubKeyType.MERGE_MAIN),
            @Correlation(groupName = MergeGroup.Icon_DmModelIcon_GROUP, keyType = OperateConstants.SubKeyType.MERGE_SLAVE)
    })
    protected Long modelId;

    /** 访客id */
    @Correlations({
            @Correlation(groupName = MergeGroup.Icon_DmModelIcon_GROUP, keyType = OperateConstants.SubKeyType.MERGE_MAIN),
            @Correlation(groupName = MergeGroup.Model_DmModelIcon_GROUP, keyType = OperateConstants.SubKeyType.MERGE_SLAVE)
    })
    protected Long iconId;

    /** 优先级 */
    protected Integer pos;

    public DmModelIconMerge(Long modelId, Long iconId, Integer pos) {
        this.modelId = modelId;
        this.iconId = iconId;
        this.pos = pos;
    }
}