mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
行业相关api
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
package me.chanjar.weixin.mp.bean;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author miller
|
||||
* 官方文档中,创建和获取的数据结构不一样。所以采用冗余字段的方式,实现相应的接口
|
||||
*/
|
||||
public class Industry implements Serializable {
|
||||
private static final long serialVersionUID = -1707184885588012142L;
|
||||
private String id;
|
||||
private String firstClass;
|
||||
private String secondClass;
|
||||
|
||||
public String getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(String id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public String getFirstClass() {
|
||||
return firstClass;
|
||||
}
|
||||
|
||||
public void setFirstClass(String firstClass) {
|
||||
this.firstClass = firstClass;
|
||||
}
|
||||
|
||||
public String getSecondClass() {
|
||||
return secondClass;
|
||||
}
|
||||
|
||||
public void setSecondClass(String secondClass) {
|
||||
this.secondClass = secondClass;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,39 @@
|
||||
package me.chanjar.weixin.mp.bean;
|
||||
|
||||
|
||||
import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
/**
|
||||
* @author miller
|
||||
*/
|
||||
public class WxMpIndustry implements Serializable {
|
||||
private static final long serialVersionUID = -7700398224795914722L;
|
||||
private Industry primaryIndustry;
|
||||
private Industry secondIndustry;
|
||||
|
||||
public static WxMpIndustry fromJson(String json) {
|
||||
return WxMpGsonBuilder.create().fromJson(json, WxMpIndustry.class);
|
||||
}
|
||||
|
||||
public String toJson() {
|
||||
return WxMpGsonBuilder.create().toJson(this);
|
||||
}
|
||||
|
||||
public Industry getPrimaryIndustry() {
|
||||
return primaryIndustry;
|
||||
}
|
||||
|
||||
public void setPrimaryIndustry(Industry primaryIndustry) {
|
||||
this.primaryIndustry = primaryIndustry;
|
||||
}
|
||||
|
||||
public Industry getSecondIndustry() {
|
||||
return secondIndustry;
|
||||
}
|
||||
|
||||
public void setSecondIndustry(Industry secondIndustry) {
|
||||
this.secondIndustry = secondIndustry;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user