mitao
2025-02-21 31573d6180d15ef65ed0df9c2732495f40b12663
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
package com.panzhihua.common.model.helper.encrypt;
 
import java.lang.reflect.Field;
 
public interface IEncryptDecrypt {
 
    /**
     * 加密方法
     * 
     * @param declaredFields
     *            反射bean成员变量
     * @param parameterObject
     *            Mybatis入参
     * @param <T>
     * @return
     */
    <T> T encrypt(Field[] declaredFields, T parameterObject) throws IllegalAccessException;
 
    /**
     * 解密方法
     * 
     * @param result
     *            Mybatis 返回值,需要判断是否是ArrayList类型
     * @param <T>
     * @return
     */
    <T> T decrypt(T result) throws IllegalAccessException;
 
}