package com.miaxis.icon.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.miaxis.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.apache.commons.lang3.StringUtils;
import com.miaxis.icon.mapper.IconQuestionMapper;
import com.miaxis.icon.domain.IconQuestion;
import com.miaxis.icon.service.IIconQuestionService;

/**
 * 题目图标Service业务层处理
 *
 * @author miaxis
 * @date 2022-08-01
 */
@Service
public class IconQuestionServiceImpl extends ServiceImpl<IconQuestionMapper, IconQuestion> implements IIconQuestionService {
    @Autowired
    private IconQuestionMapper iconQuestionMapper;

    /**
     * 查询题目图标列表
     *
     * @param iconQuestion 题目图标
     * @return 题目图标
     */
    @Override
    public List<IconQuestion> selectIconQuestionList(IconQuestion iconQuestion){
        return iconQuestionMapper.selectIconQuestionList(iconQuestion);
    }

    @Override
    public String getImageUrl(long quetionId) {
        return iconQuestionMapper.getImageUrl(quetionId);
    }
}
