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.DmInitSkillsPo;
import com.xueyi.system.digitalmans.domain.dto.DmInitSkillsDto;
import com.xueyi.system.digitalmans.domain.query.DmInitSkillsQuery;
import com.xueyi.system.digitalmans.domain.model.DmInitSkillsConverter;
import com.xueyi.system.digitalmans.mapper.DmInitSkillsMapper;
import com.xueyi.common.web.entity.manager.impl.BaseManagerImpl;
import com.xueyi.system.digitalmans.manager.IDmInitSkillsManager;
import org.springframework.stereotype.Component;

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

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

/**
 * 技能管理管理 数据封装层处理
 *
 * @author xueyi
 */
@Component
public class DmInitSkillsManager extends BaseManagerImpl<DmInitSkillsQuery, DmInitSkillsDto, DmInitSkillsPo, DmInitSkillsMapper, DmInitSkillsConverter> implements IDmInitSkillsManager {

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