package com.xueyi.system.staff.manager.impl;

import com.xueyi.common.core.constant.basic.OperateConstants;
import com.xueyi.common.web.entity.domain.SlaveRelation;
import com.xueyi.common.web.entity.manager.impl.BaseManagerImpl;
import com.xueyi.system.api.digitalmans.domain.dto.DmVisitorsDto;
import com.xueyi.system.api.digitalmans.domain.po.DmVisitorsPo;
import com.xueyi.system.digitalmans.domain.merge.DmReceptionVisitorMerge;
import com.xueyi.system.digitalmans.mapper.merge.DmReceptionVisitorMergeMapper;
import com.xueyi.system.staff.domain.model.DmVisitorsConverter;
import com.xueyi.system.staff.domain.query.DmVisitorsQuery;
import com.xueyi.system.staff.manager.IDmVisitorsManager;
import com.xueyi.system.staff.mapper.DmVisitorsMapper;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

import static com.xueyi.system.api.digitalmans.domain.merge.MergeGroup.Visitor_DmReceptionVisitorMerge_GROUP;

/**
 * 访客管理 数据封装层处理
 *
 * @author xueyi
 */
@Component
public class DmVisitorsManager extends BaseManagerImpl<DmVisitorsQuery, DmVisitorsDto, DmVisitorsPo, DmVisitorsMapper, DmVisitorsConverter> implements IDmVisitorsManager {
    @Override
    protected List<SlaveRelation> subRelationInit() {
        List result = new ArrayList<SlaveRelation>();
        result.add(new SlaveRelation(Visitor_DmReceptionVisitorMerge_GROUP, DmReceptionVisitorMergeMapper.class, DmReceptionVisitorMerge.class, OperateConstants.SubOperateLimit.ONLY_DEL));
        return result;
    }
}