package com.nuvole.four.service;
|
|
import java.util.List;
|
import java.util.Map;
|
// @formatter:off
|
/**
|
* .-~~~~~~~~~-._ _.-~~~~~~~~~-.
|
* __.' @Author ~. .~ 代码无Bug `.__
|
* .'// liu.q \./ (秘籍) \\`.
|
* .'// [916000612@qq.com] | 欲练神功 引刀自宫 \\`.
|
* .'// .-~"""""""~~~~-._ | _,-~~~~"""""""~-. \\`.
|
* .'//.-" 2019-04-04 `-. | .-' 13:59 "-.\\`.
|
* .'//______.============-.. \ | / ..-============.______\\`.
|
*.'______________________________\|/______________________________`.
|
*
|
* @Description :
|
*/
|
// @formatter:on
|
|
public interface BaseService<T> {
|
|
// 查询列表
|
List<T> getList(Map map);
|
|
List<T> getList(T t);
|
|
List<Map> getListOfMap(Map map);
|
|
List<Map> getListOfMap(T t);
|
|
// 保存
|
Integer save(T t);
|
|
// 修改
|
Integer update(T t);
|
|
// 删除
|
Integer del(Long id);
|
|
// 根据主键id查询
|
T getById(Long id);
|
|
|
}
|