1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
| package com.mzl.flower.mapper.film;
|
| import com.github.pagehelper.PageInfo;
|
| import java.util.List;
|
| /**
| * @author fanghaowei
| * @date
| */
| public interface CommonMS<P, D> {
| /**
| * po转dto
| *
| * @param p po
| * @return dto
| */
| D toDTO(P p);
|
| /**
| * dto转po
| *
| * @param d dto
| * @return po
| */
| P toPo(D d);
|
| /**
| * po转dto
| *
| * @param pList po
| * @return dto
| */
| List<D> toDTO(List<P> pList);
|
| /**
| * dto转po
| *
| * @param pList dto
| * @return po
| */
| List<P> toPo(List<D> pList);
|
| /**
| * po转dto
| *
| * @param pageInfo po
| * @return dto
| */
| PageInfo<D> toPage(PageInfo<P> pageInfo);
|
| }
|
|