// Path: src/main/java/com/phn/bookhouse/entity/Type.java
// public class Type {
// 	private int type_id;
// 
// 	private String type_name;
// 
// 	private int type_father_id;
// 
// 	public int getType_id() {
// 		return type_id;
// 	}
// 
// 	public void setType_id(int type_id) {
// 		this.type_id = type_id;
// 	}
// 
// 	public String getType_name() {
// 		return type_name;
// 	}
// 
// 	public void setType_name(String type_name) {
// 		this.type_name = type_name;
// 	}
// 
// 	public int getType_father_id() {
// 		return type_father_id;
// 	}
// 
// 	public void setType_father_id(int type_father_id) {
// 		this.type_father_id = type_father_id;
// 	}
// 	@Override
// 	public String toString() {
// 		return "Type [type_id=" + type_id + ",type_name=" + type_name
// 				+ ", type_father_id=" + type_father_id + "]";
// 	}
// 
// }


import java.util.List;
import com.phn.bookhouse.entity.Type;
package com.phn.bookhouse.service;





public interface TypeService {
	public int addType(Type type);
	public int removeTypeById(int typeid);
	public Type findTypeById(int typeid);
	public List<Type> findTypeByName(String typename);
	public int editType(Type type);
	/**
	 * @author pan
	 * @param typefatherid
	 * @return List<Type>
	 */
	public List<Type> findTypeByFatherId(int typefatherid);
	/**
	 * @author pan
	 * @param typefatherid
	 * @return
	 */
// Path: src/main/java/com/phn/bookhouse/entity/Type.java
// public class Type {
// 	private int type_id;
// 
// 	private String type_name;
// 
// 	private int type_father_id;
// 
// 	public int getType_id() {
// 		return type_id;
// 	}
// 
// 	public void setType_id(int type_id) {
// 		this.type_id = type_id;
// 	}
// 
// 	public String getType_name() {
// 		return type_name;
// 	}
// 
// 	public void setType_name(String type_name) {
// 		this.type_name = type_name;
// 	}
// 
// 	public int getType_father_id() {
// 		return type_father_id;
// 	}
// 
// 	public void setType_father_id(int type_father_id) {
// 		this.type_father_id = type_father_id;
// 	}
// 	@Override
// 	public String toString() {
// 		return "Type [type_id=" + type_id + ",type_name=" + type_name
// 				+ ", type_father_id=" + type_father_id + "]";
// 	}
// 
// }


// Path: src/main/java/com/phn/bookhouse/service/TypeService.java
import java.util.List;
import com.phn.bookhouse.entity.Type;

package com.phn.bookhouse.service;





public interface TypeService {
	public int addType(Type type);
	public int removeTypeById(int typeid);
	public Type findTypeById(int typeid);
	public List<Type> findTypeByName(String typename);
	public int editType(Type type);
	/**
	 * @author pan
	 * @param typefatherid
	 * @return List<Type>
	 */
	public List<Type> findTypeByFatherId(int typefatherid);
	/**
	 * @author pan
	 * @param typefatherid
	 * @return
	 */
	public List<Type> findFatherType(int typefatherid);