// Path: src/main/java/com/phn/bookhouse/dao/AdminDao.java
// public interface AdminDao {
// 	public int insertAdmin(Admin admin);
// 	public int deleteAdminById(int adminid);
// 	public Admin selectAdminById(int adminid);
// 	public List<Admin> selectAdminByName(String adminname);
// 	public int updateAdmin(Admin admin);
// }
// 
// Path: src/main/java/com/phn/bookhouse/entity/Admin.java
// public class Admin {
// 	private int admi_id;
// 	private String admi_login_name;
// 	private String admi_login_password;
// 
// 	public int getAdmi_id() {
// 		return admi_id;
// 	}
// 
// 	public void setAdmi_id(int admi_id) {
// 		this.admi_id = admi_id;
// 	}
// 
// 	public String getAdmi_login_name() {
// 		return admi_login_name;
// 	}
// 
// 	public void setAdmi_login_name(String admi_login_name) {
// 		this.admi_login_name = admi_login_name;
// 	}
// 
// 	public String getAdmi_login_password() {
// 		return admi_login_password;
// 	}
// 
// 	public void setAdmi_login_password(String admi_login_password) {
// 		this.admi_login_password = admi_login_password;
// 	}
// 
// }
// 
// Path: src/main/java/com/phn/bookhouse/service/AdminService.java
// public interface AdminService {
// 	public int addAdmin(Admin admin);
// 	public int removeAdminById(int adminid);
// 	public Admin findAdminById(int adminid);
// 	public List<Admin> findAdminByName(String adminname);
// 	public int editAdmin(Admin admin);
// }


import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.phn.bookhouse.dao.AdminDao;
import com.phn.bookhouse.entity.Admin;
import com.phn.bookhouse.service.AdminService;
package com.phn.bookhouse.service.impl;




@Service("adminService")
public class AdminServiceImpl implements AdminService {
	@Autowired
	private AdminDao adminDao;

	@Override
	public int addAdmin(Admin admin) {
		System.out.println("info:here is admin service impl;");
		return adminDao.insertAdmin(admin);
	}

	@Override
	public int removeAdminById(int adminid) {
		return adminDao.deleteAdminById(adminid);
	}

	@Override
	public Admin findAdminById(int adminid) {
// Path: src/main/java/com/phn/bookhouse/dao/AdminDao.java
// public interface AdminDao {
// 	public int insertAdmin(Admin admin);
// 	public int deleteAdminById(int adminid);
// 	public Admin selectAdminById(int adminid);
// 	public List<Admin> selectAdminByName(String adminname);
// 	public int updateAdmin(Admin admin);
// }
// 
// Path: src/main/java/com/phn/bookhouse/entity/Admin.java
// public class Admin {
// 	private int admi_id;
// 	private String admi_login_name;
// 	private String admi_login_password;
// 
// 	public int getAdmi_id() {
// 		return admi_id;
// 	}
// 
// 	public void setAdmi_id(int admi_id) {
// 		this.admi_id = admi_id;
// 	}
// 
// 	public String getAdmi_login_name() {
// 		return admi_login_name;
// 	}
// 
// 	public void setAdmi_login_name(String admi_login_name) {
// 		this.admi_login_name = admi_login_name;
// 	}
// 
// 	public String getAdmi_login_password() {
// 		return admi_login_password;
// 	}
// 
// 	public void setAdmi_login_password(String admi_login_password) {
// 		this.admi_login_password = admi_login_password;
// 	}
// 
// }
// 
// Path: src/main/java/com/phn/bookhouse/service/AdminService.java
// public interface AdminService {
// 	public int addAdmin(Admin admin);
// 	public int removeAdminById(int adminid);
// 	public Admin findAdminById(int adminid);
// 	public List<Admin> findAdminByName(String adminname);
// 	public int editAdmin(Admin admin);
// }


// Path: src/main/java/com/phn/bookhouse/service/impl/AdminServiceImpl.java
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.phn.bookhouse.dao.AdminDao;
import com.phn.bookhouse.entity.Admin;
import com.phn.bookhouse.service.AdminService;

package com.phn.bookhouse.service.impl;




@Service("adminService")
public class AdminServiceImpl implements AdminService {
	@Autowired
	private AdminDao adminDao;

	@Override
	public int addAdmin(Admin admin) {
		System.out.println("info:here is admin service impl;");
		return adminDao.insertAdmin(admin);
	}

	@Override
	public int removeAdminById(int adminid) {
		return adminDao.deleteAdminById(adminid);
	}

	@Override
	public Admin findAdminById(int adminid) {
		return adminDao.selectAdminById(adminid);