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