提交 | 用户 | 时间
|
a6de49
|
1 |
/** |
H |
2 |
* Copyright (c) 2018 人人开源 All rights reserved. |
|
3 |
* <p> |
|
4 |
* https://www.renren.io |
|
5 |
* <p> |
|
6 |
* 版权所有,侵权必究! |
|
7 |
*/ |
|
8 |
|
|
9 |
package com.iailab.framework.common.service; |
|
10 |
|
|
11 |
import com.iailab.framework.common.page.PageData; |
|
12 |
|
|
13 |
import java.util.List; |
|
14 |
import java.util.Map; |
|
15 |
|
|
16 |
/** |
|
17 |
* CRUD基础服务接口 |
|
18 |
* |
|
19 |
* @author Mark sunlightcs@gmail.com |
|
20 |
*/ |
|
21 |
public interface CrudService<T, D> extends BaseService<T> { |
|
22 |
|
|
23 |
PageData<D> page(Map<String, Object> params); |
|
24 |
|
|
25 |
List<D> list(Map<String, Object> params); |
|
26 |
|
|
27 |
D get(Long id); |
|
28 |
|
|
29 |
void save(D dto); |
|
30 |
|
|
31 |
void update(D dto); |
|
32 |
|
|
33 |
void delete(Long[] ids); |
|
34 |
|
|
35 |
} |