|
| 1 | +package me.chanjar.weixin.cp.bean; |
| 2 | + |
| 3 | +import com.google.gson.annotations.SerializedName; |
| 4 | +import lombok.Data; |
| 5 | +import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder; |
| 6 | + |
| 7 | +import java.io.Serializable; |
| 8 | +import java.util.List; |
| 9 | + |
| 10 | +/** |
| 11 | + * 代开发应用详情. |
| 12 | + * |
| 13 | + * @author <a href="https://github.com/binarywang">Binary Wang</a> |
| 14 | + * created on 2026-01-14 |
| 15 | + */ |
| 16 | +@Data |
| 17 | +public class WxCpTpCustomizedAppDetail extends WxCpBaseResp { |
| 18 | + |
| 19 | + /** |
| 20 | + * 授权方企业id |
| 21 | + */ |
| 22 | + @SerializedName("auth_corpid") |
| 23 | + private String authCorpId; |
| 24 | + |
| 25 | + /** |
| 26 | + * 授权方企业名称 |
| 27 | + */ |
| 28 | + @SerializedName("auth_corp_name") |
| 29 | + private String authCorpName; |
| 30 | + |
| 31 | + /** |
| 32 | + * 授权方企业方形头像 |
| 33 | + */ |
| 34 | + @SerializedName("auth_corp_square_logo_url") |
| 35 | + private String authCorpSquareLogoUrl; |
| 36 | + |
| 37 | + /** |
| 38 | + * 授权方企业圆形头像 |
| 39 | + */ |
| 40 | + @SerializedName("auth_corp_round_logo_url") |
| 41 | + private String authCorpRoundLogoUrl; |
| 42 | + |
| 43 | + /** |
| 44 | + * 授权方企业类型,1. 企业; 2. 政府以及事业单位; 3. 其他组织, 4.团队小型企业(原企业微信认证版用户) |
| 45 | + */ |
| 46 | + @SerializedName("auth_corp_type") |
| 47 | + private Integer authCorpType; |
| 48 | + |
| 49 | + /** |
| 50 | + * 授权方企业在微工作台(原企业号)的二维码,可用于关注微工作台 |
| 51 | + */ |
| 52 | + @SerializedName("auth_corp_qrcode_url") |
| 53 | + private String authCorpQrcodeUrl; |
| 54 | + |
| 55 | + /** |
| 56 | + * 授权方企业用户规模 |
| 57 | + */ |
| 58 | + @SerializedName("auth_corp_user_limit") |
| 59 | + private Integer authCorpUserLimit; |
| 60 | + |
| 61 | + /** |
| 62 | + * 授权方企业的主体名称(仅认证或验证过的企业有),即企业全称 |
| 63 | + */ |
| 64 | + @SerializedName("auth_corp_full_name") |
| 65 | + private String authCorpFullName; |
| 66 | + |
| 67 | + /** |
| 68 | + * 企业类型,1. 已验证企业;2. 已认证企业 |
| 69 | + */ |
| 70 | + @SerializedName("auth_corp_verified_type") |
| 71 | + private Integer authCorpVerifiedType; |
| 72 | + |
| 73 | + /** |
| 74 | + * 授权方企业所属行业 |
| 75 | + */ |
| 76 | + @SerializedName("auth_corp_industry") |
| 77 | + private String authCorpIndustry; |
| 78 | + |
| 79 | + /** |
| 80 | + * 授权方企业所属子行业 |
| 81 | + */ |
| 82 | + @SerializedName("auth_corp_sub_industry") |
| 83 | + private String authCorpSubIndustry; |
| 84 | + |
| 85 | + /** |
| 86 | + * 授权方企业所在地址 |
| 87 | + */ |
| 88 | + @SerializedName("auth_corp_location") |
| 89 | + private String authCorpLocation; |
| 90 | + |
| 91 | + /** |
| 92 | + * 代开发自建应用详情 |
| 93 | + */ |
| 94 | + @SerializedName("customized_app_list") |
| 95 | + private List<CustomizedApp> customizedAppList; |
| 96 | + |
| 97 | + /** |
| 98 | + * From json wx cp tp customized app detail. |
| 99 | + * |
| 100 | + * @param json the json |
| 101 | + * @return the wx cp tp customized app detail |
| 102 | + */ |
| 103 | + public static WxCpTpCustomizedAppDetail fromJson(String json) { |
| 104 | + return WxCpGsonBuilder.create().fromJson(json, WxCpTpCustomizedAppDetail.class); |
| 105 | + } |
| 106 | + |
| 107 | + @Override |
| 108 | + public String toJson() { |
| 109 | + return WxCpGsonBuilder.create().toJson(this); |
| 110 | + } |
| 111 | + |
| 112 | + /** |
| 113 | + * 代开发自建应用信息 |
| 114 | + */ |
| 115 | + @Data |
| 116 | + public static class CustomizedApp implements Serializable { |
| 117 | + private static final long serialVersionUID = 1L; |
| 118 | + |
| 119 | + /** |
| 120 | + * 代开发自建应用的agentid |
| 121 | + */ |
| 122 | + @SerializedName("agentid") |
| 123 | + private Integer agentId; |
| 124 | + |
| 125 | + /** |
| 126 | + * 代开发自建应用对应的模板id |
| 127 | + */ |
| 128 | + @SerializedName("template_id") |
| 129 | + private String templateId; |
| 130 | + |
| 131 | + /** |
| 132 | + * 代开发自建应用的name |
| 133 | + */ |
| 134 | + @SerializedName("name") |
| 135 | + private String name; |
| 136 | + |
| 137 | + /** |
| 138 | + * 代开发自建应用的description |
| 139 | + */ |
| 140 | + @SerializedName("description") |
| 141 | + private String description; |
| 142 | + |
| 143 | + /** |
| 144 | + * 代开发自建应用的logo url |
| 145 | + */ |
| 146 | + @SerializedName("logo_url") |
| 147 | + private String logoUrl; |
| 148 | + |
| 149 | + /** |
| 150 | + * 代开发自建应用的可见范围 |
| 151 | + */ |
| 152 | + @SerializedName("allow_userinfos") |
| 153 | + private AllowUserInfos allowUserInfos; |
| 154 | + |
| 155 | + /** |
| 156 | + * 代开发自建应用是否被禁用 |
| 157 | + */ |
| 158 | + @SerializedName("close") |
| 159 | + private Integer close; |
| 160 | + |
| 161 | + /** |
| 162 | + * 代开发自建应用主页url |
| 163 | + */ |
| 164 | + @SerializedName("home_url") |
| 165 | + private String homeUrl; |
| 166 | + |
| 167 | + /** |
| 168 | + * 代开发自建应用的模式,0 = 代开发自建应用;1 = 第三方应用代开发 |
| 169 | + */ |
| 170 | + @SerializedName("app_type") |
| 171 | + private Integer appType; |
| 172 | + } |
| 173 | + |
| 174 | + /** |
| 175 | + * 应用可见范围 |
| 176 | + */ |
| 177 | + @Data |
| 178 | + public static class AllowUserInfos implements Serializable { |
| 179 | + private static final long serialVersionUID = 1L; |
| 180 | + |
| 181 | + /** |
| 182 | + * 应用可见范围(成员) |
| 183 | + */ |
| 184 | + @SerializedName("user") |
| 185 | + private List<User> users; |
| 186 | + |
| 187 | + /** |
| 188 | + * 应用可见范围(部门) |
| 189 | + */ |
| 190 | + @SerializedName("department") |
| 191 | + private List<Department> departments; |
| 192 | + } |
| 193 | + |
| 194 | + /** |
| 195 | + * 成员信息 |
| 196 | + */ |
| 197 | + @Data |
| 198 | + public static class User implements Serializable { |
| 199 | + private static final long serialVersionUID = 1L; |
| 200 | + |
| 201 | + /** |
| 202 | + * 成员userid |
| 203 | + */ |
| 204 | + @SerializedName("userid") |
| 205 | + private String userId; |
| 206 | + } |
| 207 | + |
| 208 | + /** |
| 209 | + * 部门信息 |
| 210 | + */ |
| 211 | + @Data |
| 212 | + public static class Department implements Serializable { |
| 213 | + private static final long serialVersionUID = 1L; |
| 214 | + |
| 215 | + /** |
| 216 | + * 部门id |
| 217 | + */ |
| 218 | + @SerializedName("id") |
| 219 | + private Integer id; |
| 220 | + } |
| 221 | +} |
0 commit comments