ErpReq.java
880 Bytes
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
package com.huaheng.api.general.domain;
import com.alibaba.fastjson.JSON;
import com.huaheng.common.constant.QuantityConstant;
import com.huaheng.common.utils.spring.SpringUtils;
import com.huaheng.framework.web.service.ConfigService;
import lombok.Data;
import javax.annotation.Resource;
public class ErpReq {
String token;
String data;
public String toJson(String data){
ConfigService configService = SpringUtils.getBean(ConfigService.class);
this.data = data;
this.token = configService.getKey(QuantityConstant.ERP_TOKEN);
return JSON.toJSONString(this);
}
public String getToken() {
return token;
}
public void setToken(String token) {
this.token = token;
}
public String getData() {
return data;
}
public void setData(String data) {
this.data = data;
}
}