|
|
|
@ -5,6 +5,7 @@ import com.jinritemai.cloud.base.api.BaseResponse;
|
|
|
|
|
import com.jinritemai.cloud.base.api.ExtensionService;
|
|
|
|
|
import com.jinritemai.cloud.base.api.ExtensionServiceHandler;
|
|
|
|
|
import com.ms.api.ItemDTO;
|
|
|
|
|
import com.ms.api.order.GetAuthShopMemberInfosRequestDTO;
|
|
|
|
|
import com.ms.api.spi.DsFormRequestTemplate;
|
|
|
|
|
import com.ms.api.util.UniqueKeyMultiValueMap;
|
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
@ -16,14 +17,20 @@ import org.springframework.util.MultiValueMap;
|
|
|
|
|
*/
|
|
|
|
|
@ExtensionService("order/getAuthShopMemberInfos")
|
|
|
|
|
@Slf4j
|
|
|
|
|
public class GetAuthShopMemberInfosService implements ExtensionServiceHandler<ItemDTO, String> {
|
|
|
|
|
public class GetAuthShopMemberInfosService implements ExtensionServiceHandler<GetAuthShopMemberInfosRequestDTO, String> {
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
|
private DsFormRequestTemplate dsFormRequestTemplate;
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public BaseResponse<String> handle(BaseRequest<ItemDTO> req) {
|
|
|
|
|
public BaseResponse<String> handle(BaseRequest<GetAuthShopMemberInfosRequestDTO> req) {
|
|
|
|
|
// ----参数校验----
|
|
|
|
|
MultiValueMap<String, String> params = new UniqueKeyMultiValueMap<>();
|
|
|
|
|
params.add("userId",req.getUserId());
|
|
|
|
|
|
|
|
|
|
// ----逻辑校验----
|
|
|
|
|
|
|
|
|
|
// ----业务处理----
|
|
|
|
|
String res = null;
|
|
|
|
|
try {
|
|
|
|
|
res = dsFormRequestTemplate.execute("/order/getAuthShopMemberInfos", params);
|
|
|
|
@ -32,11 +39,13 @@ public class GetAuthShopMemberInfosService implements ExtensionServiceHandler<It
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
log.error(e.getMessage());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ----结果返回----
|
|
|
|
|
return BaseResponse.<String>builder()
|
|
|
|
|
.success(true)
|
|
|
|
|
.message("success")
|
|
|
|
|
.data(res)
|
|
|
|
|
.code("10000")
|
|
|
|
|
.code("0")
|
|
|
|
|
.build();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|