授权相关修改

20230922-ljl-fixBug
cxxxxxxx详 1 year ago
parent a10d64711a
commit 3899c58c6b

@ -23,4 +23,8 @@ public class MemberAuthCallBackRequestDTO {
*
*/
private String gmtMemberExpireTime;
private String url;
private String body;
}

@ -13,10 +13,10 @@ public class GetProductInfoRequestDTO {
/**
* ID
*/
private List<String> productId;
private String productId;
/**
* authCode
*/
private List<String> authCode;
private String authCode;
}

@ -1,5 +1,7 @@
package com.ms.api.spi.move;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.jinritemai.cloud.base.api.BaseRequest;
import com.jinritemai.cloud.base.api.BaseResponse;
import com.jinritemai.cloud.base.api.ExtensionService;
@ -24,13 +26,13 @@ import java.util.HashMap;
*/
@ExtensionService("getProductInfo")
@Slf4j
public class GetProductInfoService extends SPIBaseService implements ExtensionServiceHandler<GetProductInfoRequestDTO, String> {
public class GetProductInfoService extends SPIBaseService implements ExtensionServiceHandler<GetProductInfoRequestDTO, JSONObject> {
@Autowired
private DsJsonRequestTemplate dsJsonRequestTemplate;
@Override
public BaseResponse<String> handle(BaseRequest<GetProductInfoRequestDTO> req) {
public BaseResponse<JSONObject> handle(BaseRequest<GetProductInfoRequestDTO> req) {
initHandle(req);
// ----参数校验----
GetProductInfoRequestDTO fields = req.getData();
@ -52,6 +54,6 @@ public class GetProductInfoService extends SPIBaseService implements ExtensionSe
}
// ----结果返回----
return R.ok(res);
return R.ok(JSON.parseObject(res));
}
}

@ -2,6 +2,7 @@ package com.ms.api.spi.move;
import cn.hutool.core.util.ObjectUtil;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.jinritemai.cloud.base.api.BaseRequest;
import com.jinritemai.cloud.base.api.BaseResponse;
import com.jinritemai.cloud.base.api.ExtensionService;
@ -22,13 +23,13 @@ import java.util.HashMap;
*/
@ExtensionService("searchChoicenessSourceItem")
@Slf4j
public class SearchChoicenessSourceItemService extends SPIBaseService implements ExtensionServiceHandler<SearchChoicenessSourceItemRequestDTO, String> {
public class SearchChoicenessSourceItemService extends SPIBaseService implements ExtensionServiceHandler<SearchChoicenessSourceItemRequestDTO, JSONObject> {
@Autowired
private DsJsonRequestTemplate dsJsonRequestTemplate;
@Override
public BaseResponse<String> handle(BaseRequest<SearchChoicenessSourceItemRequestDTO> req) {
public BaseResponse<JSONObject> handle(BaseRequest<SearchChoicenessSourceItemRequestDTO> req) {
initHandle(req);
// ----参数校验----
SearchChoicenessSourceItemRequestDTO fields = req.getData();
@ -57,6 +58,6 @@ public class SearchChoicenessSourceItemService extends SPIBaseService implements
}
// ----结果返回----
return R.ok(res);
return R.ok(JSON.parseObject(res));
}
}

@ -1,5 +1,7 @@
package com.ms.api.spi.move;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.jinritemai.cloud.base.api.BaseRequest;
import com.jinritemai.cloud.base.api.BaseResponse;
import com.jinritemai.cloud.base.api.ExtensionService;
@ -22,14 +24,13 @@ import java.util.HashMap;
*/
@ExtensionService("searchDSProductCatTree")
@Slf4j
public class SearchDSProductCatTreeService extends SPIBaseService implements ExtensionServiceHandler<SearchDSProductCatTreeRequestDTO, String> {
public class SearchDSProductCatTreeService extends SPIBaseService implements ExtensionServiceHandler<SearchDSProductCatTreeRequestDTO, JSONObject> {
@Autowired
private DsJsonRequestTemplate dsJsonRequestTemplate;
@Override
public BaseResponse<String> handle(BaseRequest<SearchDSProductCatTreeRequestDTO> req) {
initHandle(req);
public BaseResponse<JSONObject> handle(BaseRequest<SearchDSProductCatTreeRequestDTO> req) {
// ----参数校验----
SearchDSProductCatTreeRequestDTO fields = req.getData();
@ -47,6 +48,6 @@ public class SearchDSProductCatTreeService extends SPIBaseService implements Ext
}
// ----结果返回----
return R.ok(res);
return R.ok(JSON.parseObject(res));
}
}

Loading…
Cancel
Save