1 package com.foxinmy.weixin4j.mp.model;
2
3 import java.util.List;
4
5 import com.alibaba.fastjson.annotation.JSONCreator;
6 import com.alibaba.fastjson.annotation.JSONField;
7 import com.foxinmy.weixin4j.model.WeixinAccount;
8
9
10
11
12
13
14
15
16
17 public class WeixinMpAccount extends WeixinAccount {
18
19 private static final long serialVersionUID = 3689999353867189585L;
20
21
22
23 private List<WeixinAccount> components;
24
25
26
27
28
29
30
31
32
33
34 @JSONCreator
35 public WeixinMpAccount(@JSONField(name = "id") String appId, @JSONField(name = "secret") String appSecret,
36 @JSONField(name = "components") List<WeixinAccount> components) {
37 super(appId, appSecret);
38 this.components = components;
39 }
40
41 public List<WeixinAccount> getComponents() {
42 return components;
43 }
44
45 @Override
46 public String toString() {
47 return "WeixinMpAccount [" + super.toString() + ", components=" + components + "]";
48 }
49 }