package com.njcn.serviceimpl.configuration;

import com.njcn.mapper.configuration.ProtectControlWordMapper;
import com.njcn.pojo.configuration.ProtectControlWord;
import com.njcn.service.configuration.ProtectControlWordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ProtectControlWordServiceImpl implements ProtectControlWordService {
    @Autowired
    ProtectControlWordMapper pcw;
    @Override
    public List<ProtectControlWord> getAll(String pvIndex) {
        List<ProtectControlWord> list=pcw.getAll(pvIndex);
        return list;
    }

    @Override
    public int updateWord(String pvIndex, int flag,int typeNum) {
        return pcw.updateWord(pvIndex,flag,typeNum);
    }
}
