parent
968bd46d46
commit
cc13f2042b
@ -0,0 +1,19 @@
|
||||
package com.example.flower.mapper;
|
||||
|
||||
import com.example.flower.entity.Class;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
@Repository
|
||||
public interface ClassMapper {
|
||||
List<Class> classList(); //获取所有类别信息
|
||||
List<Class> classListByQuery(String class_name);//查询类别信息列表
|
||||
void classAdd(Class c); //添加新类别
|
||||
int classDeletePer(int class_id); //删除单个类别
|
||||
int classDeleteMul(int[] class_ids); //批量删除类别
|
||||
Class classInfo(int class_id); //获取类别信息
|
||||
int classModify(Class c); //修改类别信息
|
||||
}
|
||||
Loading…
Reference in new issue