package com.fzzy.api.data;
|
|
|
import com.bstek.dorado.annotation.PropertyDef;
|
import com.fzzy.api.entity.ApiConfs;
|
import lombok.Data;
|
|
import java.util.Date;
|
|
/**
|
* 公共参数对象
|
*/
|
@Data
|
public class ApiParam {
|
|
|
@PropertyDef(label = "库区代码")
|
private String kqdm;
|
|
private Date start;
|
|
private Date end;
|
|
private String czbz;
|
|
//接口编码
|
private String inteId;
|
|
private String inteCategory;
|
|
private String pushProtocol;
|
|
private String syncProtocol;
|
|
private String deptId;
|
|
private String bizId;
|
|
//指令ID,用于上级平台发送指令获取数据的情况
|
private String orderid;
|
|
|
public ApiParam() {
|
super();
|
}
|
|
public ApiParam(ApiConfs apiConf) {
|
this.kqdm = apiConf.getKqdm();
|
this.pushProtocol = apiConf.getPushProtocol();
|
this.syncProtocol = apiConf.getSyncProtocol();
|
this.deptId = apiConf.getDeptId();
|
}
|
|
public ApiParam(ApiConfs apiConf, String inteCategory, String inteId) {
|
this.kqdm = apiConf.getKqdm();
|
this.pushProtocol = apiConf.getPushProtocol();
|
this.syncProtocol = apiConf.getSyncProtocol();
|
this.deptId = apiConf.getDeptId();
|
this.inteCategory = inteCategory;
|
this.inteId = inteId;
|
}
|
|
|
}
|