package com.xueyi.system.resource.service.impl;

import com.xueyi.system.resource.domain.dto.DmFaceAuthMappingDto;
import com.xueyi.system.resource.domain.query.DmFaceAuthMappingQuery;
import com.xueyi.system.resource.mapper.DmFaceAuthMappingMapper;
import com.xueyi.system.resource.service.IDmFaceAuthMappingService;
import com.xueyi.system.resource.manager.IDmFaceAuthMappingManager;
import com.xueyi.common.web.entity.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 人脸权限管理 服务层处理
 *
 * @author xueyi
 */
@Service
public class DmFaceAuthMappingServiceImpl extends BaseServiceImpl<DmFaceAuthMappingQuery, DmFaceAuthMappingDto, IDmFaceAuthMappingManager> implements IDmFaceAuthMappingService {

    @Autowired
    private DmFaceAuthMappingMapper dmFaceAuthMappingMapper;
    /**
     * 查询人脸权限对象列表 | 数据权限
     *
     * @param dmFaceAuthMapping 人脸权限对象
     * @return 人脸权限对象集合
     */
    @Override
    //@DataScope(userAlias = "createBy", mapperScope = {"DmFaceAuthMappingMapper"})
    public List<DmFaceAuthMappingDto> selectListScope(DmFaceAuthMappingQuery dmFaceAuthMapping) {
        return baseManager.selectList(dmFaceAuthMapping);
    }

    @Override
    public Long insertOne(DmFaceAuthMappingDto dmFaceAuthMappingDto) {
        return dmFaceAuthMappingMapper.insertOne(dmFaceAuthMappingDto);
    }
}