init
This commit is contained in:
@@ -8,6 +8,7 @@ import com.ruoyi.cai.dto.app.vo.user.UserListVo;
|
||||
import com.ruoyi.cai.mapper.UserBlacklistMapper;
|
||||
import com.ruoyi.cai.service.UserBlacklistService;
|
||||
import com.ruoyi.common.core.domain.PageQuery;
|
||||
import com.ruoyi.common.exception.ServiceException;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
@@ -29,7 +30,7 @@ public class UserBlacklistServiceImpl extends ServiceImpl<UserBlacklistMapper, U
|
||||
@Override
|
||||
public boolean black(Long userId, Long blackUserId,Integer actionType) {
|
||||
if(userId.equals(blackUserId)){
|
||||
throw new SecurityException("不能对自己操作哦");
|
||||
throw new ServiceException("不能对自己操作哦");
|
||||
}
|
||||
if(actionType == 1){ // 拉黑
|
||||
UserBlacklist userBlacklist = new UserBlacklist();
|
||||
|
||||
Reference in New Issue
Block a user