完成基本功能转移
This commit is contained in:
28
src/main/java/com/yutou/napcat/handle/BaseHandle.java
Normal file
28
src/main/java/com/yutou/napcat/handle/BaseHandle.java
Normal file
@@ -0,0 +1,28 @@
|
||||
package com.yutou.napcat.handle;
|
||||
|
||||
import com.alibaba.fastjson2.JSONObject;
|
||||
import com.yutou.napcat.enums.MessageEnum;
|
||||
import com.yutou.okhttp.BaseBean;
|
||||
import lombok.Data;
|
||||
|
||||
import java.lang.reflect.Type;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class BaseHandle<T> extends BaseBean {
|
||||
protected String type;
|
||||
protected T data;
|
||||
protected String src;
|
||||
|
||||
public BaseHandle(String type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
|
||||
public BaseHandle(String type, Object obj) {
|
||||
super();
|
||||
this.type = type;
|
||||
this.data= (T) obj;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user