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

import com.xueyi.common.core.constant.basic.OperateConstants;
import com.xueyi.common.web.entity.domain.SlaveRelation;
import com.xueyi.system.digitalmans.domain.po.DmActionPo;
import com.xueyi.system.digitalmans.domain.dto.DmActionDto;
import com.xueyi.system.digitalmans.domain.query.DmActionQuery;
import com.xueyi.system.digitalmans.domain.model.DmActionConverter;
import com.xueyi.system.digitalmans.mapper.DmActionMapper;
import com.xueyi.common.web.entity.manager.impl.BaseManagerImpl;
import com.xueyi.system.digitalmans.manager.IDmActionManager;
import com.xueyi.system.resource.manager.impl.DmResourcesManager;
import org.springframework.stereotype.Component;

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

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

/**
 * 动作管理
管理 数据封装层处理
 *
 * @author xueyi
 */
@Component
public class DmActionManager extends BaseManagerImpl<DmActionQuery, DmActionDto, DmActionPo, DmActionMapper, DmActionConverter> implements IDmActionManager {

    @Override
    protected List<SlaveRelation> subRelationInit() {
        List result = new ArrayList<SlaveRelation>();
        result.add(new SlaveRelation(Action_Resource_GROUP, DmResourcesManager.class, OperateConstants.SubOperateLimit.ONLY_SEL));
        return result;
    }
}



