26 lines
581 B
Java
26 lines
581 B
Java
package com.lovenav.dao;
|
|
|
|
import com.lovenav.entity.Comment;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.mybatis.spring.annotation.MapperScan;
|
|
import org.springframework.stereotype.Repository;
|
|
|
|
import java.util.List;
|
|
|
|
@Repository
|
|
@Mapper
|
|
public interface CommentDao {
|
|
int deleteByPrimaryKey(Integer id);
|
|
|
|
int insert(Comment record);
|
|
|
|
int insertSelective(Comment record);
|
|
|
|
Comment selectByPrimaryKey(Integer id);
|
|
|
|
int updateByPrimaryKeySelective(Comment record);
|
|
|
|
int updateByPrimaryKey(Comment record);
|
|
|
|
List<Comment> selectByAllComment();
|
|
} |