Skip to content

Commit 591b2d8

Browse files
authored
🆕 #2163 【开放平台】增加查询小程序可回退版本的接口
1 parent 71289e4 commit 591b2d8

File tree

9 files changed

+432
-188
lines changed

9 files changed

+432
-188
lines changed

weixin-java-open/src/main/java/me/chanjar/weixin/open/api/WxOpenComponentService.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ public interface WxOpenComponentService {
148148
*
149149
* @param appid .
150150
* @return . wx fast ma service by appid
151+
* @deprecated 2021-06-23 本接口原有方法并非仅快速创建小程序的专用接口,普通小程序授权到第三方平台皆可使用,所以请使用 {@link WxOpenMaBasicService} 类替代。获取方法: WxOpenMaService.getBasicService()
151152
*/
153+
@Deprecated
152154
WxOpenFastMaService getWxFastMaServiceByAppid(String appid);
153155

154156
/**
Lines changed: 3 additions & 188 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
package me.chanjar.weixin.open.api;
22

33
import cn.binarywang.wx.miniapp.api.WxMaService;
4-
import me.chanjar.weixin.common.error.WxErrorException;
5-
import me.chanjar.weixin.open.bean.ma.WxFastMaCategory;
6-
import me.chanjar.weixin.open.bean.result.*;
7-
8-
import java.util.List;
94

105
/**
116
* <pre>
@@ -16,189 +11,9 @@
1611
*
1712
* @author Hipple
1813
* @date 2019/01/23
14+
* @deprecated 2021-06-23 本接口原有方法并非仅快速创建小程序的专用接口,普通小程序授权到第三方平台皆可使用,所以请使用 {@link WxOpenMaBasicService} 类替代。获取方法: WxOpenComponentService.getWxMaServiceByAppid(maApppId).getBasicService()
1915
*/
20-
public interface WxOpenFastMaService extends WxMaService {
21-
/**
22-
* 1 获取帐号基本信息.
23-
*/
24-
String OPEN_GET_ACCOUNT_BASIC_INFO = "https://api.weixin.qq.com/cgi-bin/account/getaccountbasicinfo";
25-
26-
/**
27-
* 2 小程序名称设置及改名.
28-
*/
29-
String OPEN_SET_NICKNAME = "https://api.weixin.qq.com/wxa/setnickname";
30-
31-
/**
32-
* 3 小程序改名审核状态查询.
33-
*/
34-
String OPEN_API_WXA_QUERYNICKNAME = "https://api.weixin.qq.com/wxa/api_wxa_querynickname";
35-
36-
/**
37-
* 4 微信认证名称检测.
38-
*/
39-
String OPEN_CHECK_WX_VERIFY_NICKNAME = "https://api.weixin.qq.com/cgi-bin/wxverify/checkwxverifynickname";
40-
41-
/**
42-
* 5 修改头像.
43-
*/
44-
String OPEN_MODIFY_HEADIMAGE = "https://api.weixin.qq.com/cgi-bin/account/modifyheadimage";
45-
46-
/**
47-
* 6修改功能介绍.
48-
*/
49-
String OPEN_MODIFY_SIGNATURE = "https://api.weixin.qq.com/cgi-bin/account/modifysignature";
50-
51-
/**
52-
* 7 换绑小程序管理员接口.
53-
*/
54-
String OPEN_COMPONENT_REBIND_ADMIN = "https://api.weixin.qq.com/cgi-bin/account/componentrebindadmin";
55-
56-
/**
57-
* 8.1 获取账号可以设置的所有类目
58-
*/
59-
String OPEN_GET_ALL_CATEGORIES = "https://api.weixin.qq.com/cgi-bin/wxopen/getallcategories";
60-
/**
61-
* 8.2 添加类目
62-
*/
63-
String OPEN_ADD_CATEGORY = "https://api.weixin.qq.com/cgi-bin/wxopen/addcategory";
64-
/**
65-
* 8.3 删除类目
66-
*/
67-
String OPEN_DELETE_CATEGORY = "https://api.weixin.qq.com/cgi-bin/wxopen/deletecategory";
68-
/**
69-
* 8.4 获取账号已经设置的所有类目
70-
*/
71-
String OPEN_GET_CATEGORY = "https://api.weixin.qq.com/cgi-bin/wxopen/getcategory";
72-
/**
73-
* 8.5 修改类目
74-
*/
75-
String OPEN_MODIFY_CATEGORY = "https://api.weixin.qq.com/cgi-bin/wxopen/modifycategory";
76-
77-
78-
/**
79-
* 1.获取小程序的信息
80-
*
81-
* @return .
82-
* @throws WxErrorException .
83-
*/
84-
WxFastMaAccountBasicInfoResult getAccountBasicInfo() throws WxErrorException;
85-
86-
/**
87-
* 2.小程序名称设置及改名
88-
* <pre>
89-
* 若接口未返回audit_id,说明名称已直接设置成功,无需审核;若返回audit_id则名称正在审核中。
90-
* </pre>
91-
*
92-
* @param nickname 昵称
93-
* @param idCard 身份证照片–临时素材mediaid(个人号必填)
94-
* @param license 组织机构代码证或营业执照–临时素材mediaid(组织号必填)
95-
* @param namingOtherStuff1 其他证明材料---临时素材 mediaid
96-
* @param namingOtherStuff2 其他证明材料---临时素材 mediaid
97-
* @return .
98-
* @throws WxErrorException .
99-
*/
100-
WxFastMaSetNickameResult setNickname(String nickname, String idCard, String license, String namingOtherStuff1,
101-
String namingOtherStuff2) throws WxErrorException;
102-
103-
/**
104-
* 3 小程序改名审核状态查询
105-
*
106-
* @param auditId 审核单id
107-
* @return .
108-
* @throws WxErrorException .
109-
*/
110-
WxFastMaQueryNicknameStatusResult querySetNicknameStatus(String auditId) throws WxErrorException;
111-
112-
/**
113-
* 4. 微信认证名称检测
114-
*
115-
* @param nickname 名称
116-
* @return .
117-
* @throws WxErrorException .
118-
*/
119-
WxFastMaCheckNickameResult checkWxVerifyNickname(String nickname) throws WxErrorException;
120-
121-
/**
122-
* 5.修改头像
123-
* <pre>
124-
* 图片格式只支持:BMP、JPEG、JPG、GIF、PNG,大小不超过2M
125-
* 注:实际头像始终为正方形
126-
* </pre>
127-
*
128-
* @param headImgMediaId 头像素材media_id
129-
* @param x1 裁剪框左上角x坐标(取值范围:[0, 1])
130-
* @param y1 裁剪框左上角y坐标(取值范围:[0, 1])
131-
* @param x2 裁剪框右下角x坐标(取值范围:[0, 1])
132-
* @param y2 裁剪框右下角y坐标(取值范围:[0, 1])
133-
* @return .
134-
* @throws WxErrorException .
135-
*/
136-
WxOpenResult modifyHeadImage(String headImgMediaId, float x1, float y1, float x2, float y2) throws WxErrorException;
137-
138-
/**
139-
* 6.修改功能介绍
140-
*
141-
* @param signature 简介:4-120字
142-
* @return .
143-
* @throws WxErrorException .
144-
*/
145-
WxOpenResult modifySignature(String signature) throws WxErrorException;
146-
147-
/**
148-
* 7.3 管理员换绑
149-
*
150-
* @param taskId 换绑管理员任务序列号(公众平台最终点击提交回跳到第三方平台时携带)
151-
* @return .
152-
* @throws WxErrorException .
153-
*/
154-
WxOpenResult componentRebindAdmin(String taskId) throws WxErrorException;
155-
156-
/**
157-
* 8.1 获取账号可以设置的所有类目
158-
* <pre>
159-
* 因为不同类目含有特定字段
160-
* 目前没有完整的类目信息数据
161-
* 为保证兼容性,放弃将response转换为实体
162-
* </pre>
163-
*
164-
* @return .
165-
* @throws WxErrorException .
166-
*/
167-
String getAllCategories() throws WxErrorException;
168-
169-
/**
170-
* 8.2添加类目
171-
*
172-
* @param categoryList 类目列表
173-
* @return .
174-
* @throws WxErrorException .
175-
*/
176-
WxOpenResult addCategory(List<WxFastMaCategory> categoryList) throws WxErrorException;
177-
178-
/**
179-
* 8.3删除类目
180-
*
181-
* @param first 一级类目ID
182-
* @param second 二级类目ID
183-
* @return .
184-
* @throws WxErrorException .
185-
*/
186-
WxOpenResult deleteCategory(int first, int second) throws WxErrorException;
187-
188-
/**
189-
* 8.4获取账号已经设置的所有类目
190-
*
191-
* @return .
192-
* @throws WxErrorException .
193-
*/
194-
WxFastMaBeenSetCategoryResult getCategory() throws WxErrorException;
16+
@Deprecated
17+
public interface WxOpenFastMaService extends WxOpenMaBasicService, WxMaService {
19518

196-
/**
197-
* 8.5修改类目
198-
*
199-
* @param category 实体
200-
* @return .
201-
* @throws WxErrorException .
202-
*/
203-
WxOpenResult modifyCategory(WxFastMaCategory category) throws WxErrorException;
20419
}

0 commit comments

Comments
 (0)