package com.ruoyi.web.work.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.web.work.domain.Feedback;
import org.apache.ibatis.annotations.Delete;

import java.util.List;

/**
 * @author lsw
 * @date 2024-04-24
 */
public interface FeedbackMapper extends BaseMapper<Feedback> {
    List<Feedback> selectList(Feedback feedback);

    @Delete("DELETE  FROM tb_feedback WHERE user_id=#{userId} AND id=#{id}")
    boolean delByUser(Feedback feedback);
}
