mirror of
https://gitee.com/dromara/dy-java.git
synced 2024-12-01 19:47:44 +08:00
生活服务交易系统->核销->核销工具->查询商家配置文案
This commit is contained in:
parent
3125997328
commit
d53d375441
@ -2252,6 +2252,14 @@ public class DyAppletClient extends BaseClient {
|
||||
return new IndustryTransactionHandler(configuration().getAgentByTenantId(tenantId, clientKey)).updateMerchantConf(body);
|
||||
}
|
||||
|
||||
/**
|
||||
* 生活服务交易系统->核销->核销工具->查询商家配置文案
|
||||
* @param body
|
||||
*/
|
||||
public DySimpleResult<TradeToolkitQueryTextVo> tradeToolkitQueryText(TradeToolkitQueryTextQuery body) {
|
||||
return new IndustryTransactionHandler(configuration().getAgentByTenantId(tenantId, clientKey)).tradeToolkitQueryText(body);
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取抖音号绑定所需的资质模版列表
|
||||
*
|
||||
|
@ -8,7 +8,6 @@ import com.dyj.applet.domain.QueryCertificatesOrderInfo;
|
||||
import com.dyj.applet.domain.query.*;
|
||||
import com.dyj.applet.domain.vo.*;
|
||||
import com.dyj.common.domain.DataAndExtraVo;
|
||||
import com.dyj.common.domain.DyExtra;
|
||||
import com.dyj.common.domain.DySimpleResult;
|
||||
import com.dyj.common.domain.vo.BaseVo;
|
||||
import com.dyj.common.interceptor.ClientTokenInterceptor;
|
||||
@ -189,4 +188,13 @@ public interface IndustryTransactionClient {
|
||||
*/
|
||||
@Post(value = "updateMerchantConf", interceptor = ClientTokenInterceptor.class)
|
||||
DySimpleResult<Void> updateMerchantConf(@JSONBody UpdateMerchantConfQuery body);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 生活服务交易系统->核销->核销工具->查询商家配置文案
|
||||
* @param body
|
||||
*/
|
||||
@Post(value = "tradeToolkitQueryText", interceptor = ClientTokenInterceptor.class)
|
||||
DySimpleResult<TradeToolkitQueryTextVo> tradeToolkitQueryText(@JSONBody TradeToolkitQueryTextQuery body);
|
||||
}
|
||||
|
@ -0,0 +1,32 @@
|
||||
package com.dyj.applet.domain;
|
||||
|
||||
public class TradeToolkitTextContent {
|
||||
|
||||
/**
|
||||
* 文案Id:设置文案时传入该值
|
||||
*/
|
||||
private String text_id;
|
||||
|
||||
/**
|
||||
* 文案内容
|
||||
*/
|
||||
private String text_content;
|
||||
|
||||
public String getText_id() {
|
||||
return text_id;
|
||||
}
|
||||
|
||||
public TradeToolkitTextContent setText_id(String text_id) {
|
||||
this.text_id = text_id;
|
||||
return this;
|
||||
}
|
||||
|
||||
public String getText_content() {
|
||||
return text_content;
|
||||
}
|
||||
|
||||
public TradeToolkitTextContent setText_content(String text_content) {
|
||||
this.text_content = text_content;
|
||||
return this;
|
||||
}
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
package com.dyj.applet.domain;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class TradeToolkitTextInfo {
|
||||
|
||||
/**
|
||||
* 文案类型
|
||||
*/
|
||||
private Integer text_type;
|
||||
|
||||
/**
|
||||
* 该类型下,文案信息列表
|
||||
*/
|
||||
private List<TradeToolkitTextContent> text_content_list;
|
||||
|
||||
public Integer getText_type() {
|
||||
return text_type;
|
||||
}
|
||||
|
||||
public TradeToolkitTextInfo setText_type(Integer text_type) {
|
||||
this.text_type = text_type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public List<TradeToolkitTextContent> getText_content_list() {
|
||||
return text_content_list;
|
||||
}
|
||||
|
||||
public TradeToolkitTextInfo setText_content_list(List<TradeToolkitTextContent> text_content_list) {
|
||||
this.text_content_list = text_content_list;
|
||||
return this;
|
||||
}
|
||||
}
|
@ -0,0 +1,57 @@
|
||||
package com.dyj.applet.domain.query;
|
||||
|
||||
import com.dyj.common.domain.query.BaseQuery;
|
||||
|
||||
public class TradeToolkitQueryTextQuery extends BaseQuery {
|
||||
|
||||
/**
|
||||
* 文案类型,不传或传0会全部返回
|
||||
* 选填
|
||||
*/
|
||||
private Integer text_type;
|
||||
|
||||
public Integer getText_type() {
|
||||
return text_type;
|
||||
}
|
||||
|
||||
public TradeToolkitQueryTextQuery setText_type(Integer text_type) {
|
||||
this.text_type = text_type;
|
||||
return this;
|
||||
}
|
||||
|
||||
public static TradeToolkitQueryTextQueryBuilder builder() {
|
||||
return new TradeToolkitQueryTextQueryBuilder();
|
||||
}
|
||||
|
||||
public static final class TradeToolkitQueryTextQueryBuilder {
|
||||
private Integer text_type;
|
||||
private Integer tenantId;
|
||||
private String clientKey;
|
||||
|
||||
private TradeToolkitQueryTextQueryBuilder() {
|
||||
}
|
||||
|
||||
public TradeToolkitQueryTextQueryBuilder textType(Integer textType) {
|
||||
this.text_type = textType;
|
||||
return this;
|
||||
}
|
||||
|
||||
public TradeToolkitQueryTextQueryBuilder tenantId(Integer tenantId) {
|
||||
this.tenantId = tenantId;
|
||||
return this;
|
||||
}
|
||||
|
||||
public TradeToolkitQueryTextQueryBuilder clientKey(String clientKey) {
|
||||
this.clientKey = clientKey;
|
||||
return this;
|
||||
}
|
||||
|
||||
public TradeToolkitQueryTextQuery build() {
|
||||
TradeToolkitQueryTextQuery tradeToolkitQueryTextQuery = new TradeToolkitQueryTextQuery();
|
||||
tradeToolkitQueryTextQuery.setText_type(text_type);
|
||||
tradeToolkitQueryTextQuery.setTenantId(tenantId);
|
||||
tradeToolkitQueryTextQuery.setClientKey(clientKey);
|
||||
return tradeToolkitQueryTextQuery;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.dyj.applet.domain.vo;
|
||||
|
||||
import com.dyj.applet.domain.TradeToolkitTextInfo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class TradeToolkitQueryTextVo {
|
||||
|
||||
/**
|
||||
* 返回的文案信息列表
|
||||
*/
|
||||
private List<TradeToolkitTextInfo> text_list;
|
||||
|
||||
public List<TradeToolkitTextInfo> getText_list() {
|
||||
return text_list;
|
||||
}
|
||||
|
||||
public TradeToolkitQueryTextVo setText_list(List<TradeToolkitTextInfo> text_list) {
|
||||
this.text_list = text_list;
|
||||
return this;
|
||||
}
|
||||
}
|
@ -237,4 +237,13 @@ public class IndustryTransactionHandler extends AbstractAppletHandler{
|
||||
baseQuery(body);
|
||||
return getIndustryOpenTransactionClient().updateMerchantConf(body);
|
||||
}
|
||||
|
||||
/**
|
||||
* 生活服务交易系统->核销->核销工具->查询商家配置文案
|
||||
* @param body
|
||||
*/
|
||||
public DySimpleResult<TradeToolkitQueryTextVo> tradeToolkitQueryText(TradeToolkitQueryTextQuery body) {
|
||||
baseQuery(body);
|
||||
return getIndustryOpenTransactionClient().tradeToolkitQueryText(body);
|
||||
}
|
||||
}
|
||||
|
@ -577,6 +577,10 @@ public enum DyAppletUrlPathEnum {
|
||||
* 生活服务交易系统->核销->核销工具->设置商家展示信息
|
||||
*/
|
||||
UPDATE_MERCHANT_CONF("updateMerchantConf","/api/apps/trade/v2/toolkit/update_merchant_conf"),
|
||||
/**
|
||||
* 生活服务交易系统->核销->核销工具->查询商家配置文案
|
||||
*/
|
||||
TRADE_TOOLKIT_QUERY_TEXT("tradeToolkitQueryText","/api/apps/trade/v2/toolkit/query_text"),
|
||||
;
|
||||
|
||||
|
||||
|
@ -637,4 +637,17 @@ public class TransactionTest {
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 生活服务交易系统->核销->核销工具->查询商家配置文案
|
||||
*/
|
||||
@Test
|
||||
public void tradeToolkitQueryText(){
|
||||
DyAppletClient dyAppletClient = new DyAppletClient();
|
||||
System.out.println(
|
||||
JSON.toJSONString(
|
||||
dyAppletClient.tradeToolkitQueryText(TradeToolkitQueryTextQuery.builder().build())
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user