diff --git a/src/main/java/com/dao/AdminInfoDao.java b/src/main/java/com/dao/AdminInfoDao.java new file mode 100644 index 0000000..8ae3436 --- /dev/null +++ b/src/main/java/com/dao/AdminInfoDao.java @@ -0,0 +1,18 @@ +package com.example.dao; + +import com.example.entity.AdminInfo; +import com.example.vo.AdminInfoVo; +import org.apache.ibatis.annotations.Param; +import org.springframework.stereotype.Repository; +import tk.mybatis.mapper.common.Mapper; + +import java.util.List; + +@Repository +public interface AdminInfoDao extends Mapper { + List findByName(@Param("name") String name); + + int checkRepeat(String column, String value, Long id); + AdminInfoVo findByUsername(String username); + Integer count(); +}