Update AdminDao.java

pull/1/head
prwfxgajt 8 months ago
parent acdd442fa9
commit 1ebc5cf798

@ -1,60 +1,67 @@
package com.cn.dao; package com.cn.dao; // 定义接口所在的包名
import java.sql.SQLException; import java.sql.SQLException; // 导入SQLException类
import java.util.List; import java.util.List; // 导入List接口
import com.cn.domain.Admin; import com.cn.domain.Admin; // 导入Admin实体类
/** /**
* @className AdminDao.java * AdminDao.java访DAO
* @description * <p></p>
* @author lxs * @author lxs
* @date 201991 * @date 201991
*/ */
public interface AdminDao { public interface AdminDao {
/** /**
* *
* @param admin * <p>Admin</p>
* @return * @param admin
* @throws SQLException * @return
* @throws SQLException
*/ */
int add(Admin admin) throws SQLException; int add(Admin admin) throws SQLException;
/** /**
* * ID
* @param adminId * <p>IDID</p>
* @return * @param adminId ID
* @throws SQLException * @return
* @throws SQLException
*/ */
int delete(int adminId) throws SQLException; int delete(int adminId) throws SQLException;
/** /**
* *
* @param admin * <p>AdminID</p>
* @return * @param admin
* @throws SQLException * @return
* @throws SQLException
*/ */
int update(Admin admin) throws SQLException; int update(Admin admin) throws SQLException;
/** /**
* *
* @return * <p></p>
* @return
* @throws SQLException
*/ */
List<Admin> getAll() throws SQLException; List<Admin> getAll() throws SQLException;
/** /**
* id * ID
* @param adminId * <p>IDID</p>
* @return * @param adminId ID
* @throws SQLException * @return ID
* @throws SQLException
*/ */
Admin getById(int adminId) throws SQLException; Admin getById(int adminId) throws SQLException;
/** /**
* *
* @param userName * <p></p>
* @return * @param userName
* @throws SQLException * @return
* @throws SQLException
*/ */
Admin getByName(String userName) throws SQLException; Admin getByName(String userName) throws SQLException;
} }

Loading…
Cancel
Save