生活服务交易系统->核销->核销工具->设置小程序跳转path

This commit is contained in:
353259576 2024-09-26 15:33:01 +08:00
parent 0b13ab36a3
commit 04af87cf4d
7 changed files with 175 additions and 0 deletions

View File

@ -2268,6 +2268,14 @@ public class DyAppletClient extends BaseClient {
return new IndustryTransactionHandler(configuration().getAgentByTenantId(tenantId, clientKey)).buttonWhiteSetting(body);
}
/**
* 生活服务交易系统->核销->核销工具->设置小程序跳转path
* @param body
*/
public DySimpleResult<Void> updateMerchantPath(UpdateMerchantPathQuery body) {
return new IndustryTransactionHandler(configuration().getAgentByTenantId(tenantId, clientKey)).updateMerchantPath(body);
}
/**
* 获取抖音号绑定所需的资质模版列表
*

View File

@ -202,4 +202,11 @@ public interface IndustryTransactionClient {
*/
@Post(value = "buttonWhiteSetting", interceptor = ClientTokenInterceptor.class)
DySimpleResult<Void> buttonWhiteSetting(@JSONBody ButtonWhiteSettingQuery body);
/**
* 生活服务交易系统->核销->核销工具->设置小程序跳转path
* @param body
*/
@Post(value = "updateMerchantPath", interceptor = ClientTokenInterceptor.class)
DySimpleResult<Void> updateMerchantPath(@JSONBody UpdateMerchantPathQuery body);
}

View File

@ -0,0 +1,32 @@
package com.dyj.applet.domain;
public class PathData {
/**
* 跳转路径
*/
private String path;
/**
* path类型, 1-到店 2-到家 3-核销工具 4-详情页
*/
private Integer path_type;
public String getPath() {
return path;
}
public PathData setPath(String path) {
this.path = path;
return this;
}
public Integer getPath_type() {
return path_type;
}
public PathData setPath_type(Integer path_type) {
this.path_type = path_type;
return this;
}
}

View File

@ -0,0 +1,101 @@
package com.dyj.applet.domain.query;
import com.dyj.applet.domain.PathData;
import com.dyj.common.domain.query.BaseQuery;
import java.util.List;
public class UpdateMerchantPathQuery extends BaseQuery {
/**
* 商家绑定的小程序类型,0-核销工具1-混合双开
*/
private Integer bind_biz_type;
/**
* 商家Id
*/
private String account_id;
/**
* 要设置的跳转链接列表
*/
private List<PathData> path_data_list;
public Integer getBind_biz_type() {
return bind_biz_type;
}
public UpdateMerchantPathQuery setBind_biz_type(Integer bind_biz_type) {
this.bind_biz_type = bind_biz_type;
return this;
}
public String getAccount_id() {
return account_id;
}
public UpdateMerchantPathQuery setAccount_id(String account_id) {
this.account_id = account_id;
return this;
}
public List<PathData> getPath_data_list() {
return path_data_list;
}
public UpdateMerchantPathQuery setPath_data_list(List<PathData> path_data_list) {
this.path_data_list = path_data_list;
return this;
}
public static UpdateMerchantPathQueryBuilder builder() {
return new UpdateMerchantPathQueryBuilder();
}
public static final class UpdateMerchantPathQueryBuilder {
private Integer bind_biz_type;
private String account_id;
private List<PathData> path_data_list;
private Integer tenantId;
private String clientKey;
private UpdateMerchantPathQueryBuilder() {
}
public UpdateMerchantPathQueryBuilder bindBizType(Integer bindBizType) {
this.bind_biz_type = bindBizType;
return this;
}
public UpdateMerchantPathQueryBuilder accountId(String accountId) {
this.account_id = accountId;
return this;
}
public UpdateMerchantPathQueryBuilder pathDataList(List<PathData> pathDataList) {
this.path_data_list = pathDataList;
return this;
}
public UpdateMerchantPathQueryBuilder tenantId(Integer tenantId) {
this.tenantId = tenantId;
return this;
}
public UpdateMerchantPathQueryBuilder clientKey(String clientKey) {
this.clientKey = clientKey;
return this;
}
public UpdateMerchantPathQuery build() {
UpdateMerchantPathQuery updateMerchantPathQuery = new UpdateMerchantPathQuery();
updateMerchantPathQuery.setBind_biz_type(bind_biz_type);
updateMerchantPathQuery.setAccount_id(account_id);
updateMerchantPathQuery.setPath_data_list(path_data_list);
updateMerchantPathQuery.setTenantId(tenantId);
updateMerchantPathQuery.setClientKey(clientKey);
return updateMerchantPathQuery;
}
}
}

View File

@ -255,4 +255,13 @@ public class IndustryTransactionHandler extends AbstractAppletHandler{
baseQuery(body);
return getIndustryOpenTransactionClient().buttonWhiteSetting(body);
}
/**
* 生活服务交易系统->核销->核销工具->设置小程序跳转path
* @param body
*/
public DySimpleResult<Void> updateMerchantPath(UpdateMerchantPathQuery body) {
baseQuery(body);
return getIndustryOpenTransactionClient().updateMerchantPath(body);
}
}

View File

@ -586,6 +586,11 @@ public enum DyAppletUrlPathEnum {
* 生活服务交易系统->核销->核销工具->设置订单详情页按钮白名单接口
*/
BUTTON_WHITE_SETTING("buttonWhiteSetting","/api/apps/trade/v2/toolkit/button_white_setting"),
/**
* 生活服务交易系统->核销->核销工具->设置小程序跳转path
*/
UPDATE_MERCHANT_PATH("updateMerchantPath","/api/apps/trade/v2/toolkit/update_merchant_path"),
;

View File

@ -663,4 +663,17 @@ public class TransactionTest {
);
}
/**
* 生活服务交易系统->核销->核销工具->设置小程序跳转path
*/
@Test
public void updateMerchantPath(){
DyAppletClient dyAppletClient = new DyAppletClient();
System.out.println(
JSON.toJSONString(
dyAppletClient.updateMerchantPath(UpdateMerchantPathQuery.builder().build())
)
);
}
}