You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
486 B
37 lines
486 B
package com.example.mapper;
|
|
|
|
import com.example.entity.Type;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* 操作type相关数据接口
|
|
*/
|
|
public interface TypeMapper {
|
|
|
|
/**
|
|
* 新增
|
|
*/
|
|
int insert(Type type);
|
|
|
|
/**
|
|
* 删除
|
|
*/
|
|
int deleteById(Integer id);
|
|
|
|
/**
|
|
* 修改
|
|
*/
|
|
int updateById(Type type);
|
|
|
|
/**
|
|
* 根据ID查询
|
|
*/
|
|
Type selectById(Integer id);
|
|
|
|
/**
|
|
* 查询所有
|
|
*/
|
|
List<Type> selectAll(Type type);
|
|
|
|
} |