diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/AliexpressCategoryController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/AliexpressCategoryController.java index 070d916..eebe180 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/AliexpressCategoryController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/AliexpressCategoryController.java @@ -9,9 +9,7 @@ import com.global.iop.util.ApiException; import com.global.iop.util.FileItem; import com.ruoyi.common.annotation.Log; import com.ruoyi.common.enums.BusinessType; -import com.ruoyi.web.controller.aliexpress.dto.CategoryGetPropValueFeatureDTO; -import com.ruoyi.web.controller.aliexpress.dto.CategoryQdUploadDTO; -import com.ruoyi.web.controller.aliexpress.dto.CategorySuggestionDTO; +import com.ruoyi.web.controller.aliexpress.dto.category.*; import com.ruoyi.web.core.config.AliexpressAuthClientConfig; import com.ruoyi.web.enumerate.AliexpressCategoryEnu; import io.swagger.annotations.Api; @@ -46,6 +44,7 @@ public class AliexpressCategoryController { System.out.println(response.getBody()); Thread.sleep(10); */ + /** * 获取AE属性的PropValueFeature */ @@ -59,7 +58,7 @@ public class AliexpressCategoryController { request.addApiParameter("propertyId", reqDto.getPropertyId()); request.addApiParameter("valueId", reqDto.getValueId()); request.addApiParameter("featureKey", reqDto.getFeatureKey()); - IopResponse response = client.execute(request); + IopResponse response = client.execute(request, Protocol.GOP); return response.getGopResponseBody(); } @@ -75,6 +74,7 @@ public class AliexpressCategoryController { System.out.println(response.getBody()); Thread.sleep(10); */ + /** * suggestion */ @@ -103,6 +103,7 @@ public class AliexpressCategoryController { System.out.println(response.getBody()); Thread.sleep(10); */ + /** * qdUpload */ @@ -112,7 +113,7 @@ public class AliexpressCategoryController { public String qdUpload(@RequestParam("file") MultipartFile file, @RequestBody CategoryQdUploadDTO reqDto) throws ApiException { IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); IopRequest request = new IopRequest(); - request.setApiName(AliexpressCategoryEnu.FILE_UPLOAD.getApiName()); + request.setApiName(AliexpressCategoryEnu.QD_FILE_UPLOAD.getApiName()); request.addApiParameter("upload_meta", reqDto.getUpload_meta()); try { request.addFileParameter("file_data", new FileItem(file.getOriginalFilename(), file.getInputStream(), file.getContentType())); @@ -134,6 +135,21 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 查询属于特定类别的sku属性信息 + */ + @Log(title = "查询属于特定类别的sku属性信息", businessType = BusinessType.SELECT) + @ApiOperation("查询属于特定类别的sku属性信息") + @PostMapping("/skuAttributeQuery") + public String skuAttributeQuery(@RequestBody CategorySkuAttributeQueryDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressCategoryEnu.SKU_ATTRIBUTE_QUERY.getApiName()); + request.addApiParameter("query_sku_attribute_info_request", reqDto.getQuery_sku_attribute_info_request()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + //API,用于卖家查询类别树。只支持显示卖家有权发布产品的类别。 /* IopClient client = new IopClient(url, appkey, appSecret); @@ -146,6 +162,22 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 用于卖家查询类别树 只支持显示卖家有权发布产品的类别 + */ + @Log(title = "用于卖家查询类别树 只支持显示卖家有权发布产品的类别", businessType = BusinessType.SELECT) + @ApiOperation("用于卖家查询类别树 只支持显示卖家有权发布产品的类别") + @PostMapping("/sellerCategoryTreeQuery") + public String sellerCategoryTreeQuery(@RequestBody CategorySellerCategoryTreeQueryDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressCategoryEnu.SELLER_CATEGORY_TREE_QUERY.getApiName()); + request.addApiParameter("category_id", reqDto.getCategory_id()); + request.addApiParameter("filter_no_permission", reqDto.getFilter_no_permission()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + //判断叶子类目是否必须尺码表 /* IopClient client = new IopClient(url, appkey, appSecret); @@ -157,6 +189,21 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 判断叶子类目是否必须尺码表 + */ + @Log(title = "判断叶子类目是否必须尺码表", businessType = BusinessType.SELECT) + @ApiOperation("判断叶子类目是否必须尺码表") + @PostMapping("/sizeModelsRequiredForPostCat") + public String sizeModelsRequiredForPostCat(@RequestBody CategorySizeModelsRequiredForPostCatDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressCategoryEnu.SIZE_MODELS_REQUIRED_FOR_POST_CAT.getApiName()); + request.addApiParameter("param0", reqDto.getParam0()); + IopResponse response = client.execute(request, Protocol.TOP); + return response.getGopResponseBody(); + } + //查询海外商家授权品牌 /* IopClient client = new IopClient(url, appkey, appSecret); @@ -167,6 +214,20 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 查询海外商家授权品牌 + */ + @Log(title = "查询海外商家授权品牌", businessType = BusinessType.SELECT) + @ApiOperation("查询海外商家授权品牌") + @PostMapping("/merchantOverseaBrandGet") + public String merchantOverseaBrandGet(@RequestBody CategorySizeModelsRequiredForPostCatDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressCategoryEnu.MERCHANT_OVERSEA_BRAND_GET.getApiName()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + //查询类目下欧盟责任人列表 /* IopClient client = new IopClient(url, appkey, appSecret); @@ -181,6 +242,24 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 查询类目下欧盟责任人列表 + */ + @Log(title = "查询类目下欧盟责任人列表", businessType = BusinessType.SELECT) + @ApiOperation("查询类目下欧盟责任人列表") + @PostMapping("/euResponsiblePersonsList") + public String euResponsiblePersonsList(@RequestBody CategoryEuResponsiblePersonsListDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressCategoryEnu.EU_RESPONSIBLE_PERSONS_LIST.getApiName()); + request.setHttpMethod("GET"); + request.addApiParameter("category_id", reqDto.getCategory_id()); + request.addApiParameter("channel", reqDto.getChannel()); + request.addApiParameter("channel_seller_id", reqDto.getChannel_seller_id()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + //根据发布类目id、父属性路径(可选)获取子属性信息,只返回有权限品牌 /* IopClient client = new IopClient(url, appkey, appSecret); @@ -197,6 +276,26 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 根据发布类目id、父属性路径(可选)获取子属性信息,只返回有权限品牌 + */ + @Log(title = "根据发布类目id、父属性路径(可选)获取子属性信息,只返回有权限品牌", businessType = BusinessType.SELECT) + @ApiOperation("根据发布类目id、父属性路径(可选)获取子属性信息,只返回有权限品牌") + @PostMapping("/getChildAttributesResultByPostCateIdAndPath") + public String getChildAttributesResultByPostCateIdAndPath(@RequestBody CategoryGetChildAttributesResultByPostCateIdAndPathDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressCategoryEnu.GET_CHILD_ATTRIBUTES_RESULT_BY_POST_CATE_ID_AND_PATH.getApiName()); + request.addApiParameter("channel", reqDto.getChannel()); + request.addApiParameter("locale", reqDto.getLocale()); + request.addApiParameter("product_type", reqDto.getProduct_type()); + request.addApiParameter("channel_seller_id", reqDto.getChannel_seller_id()); + request.addApiParameter("param1", reqDto.getParam1()); + request.addApiParameter("param2", reqDto.getParam2()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + //类目资质信息查询 /* IopClient client = new IopClient(url, appkey, appSecret); @@ -210,6 +309,23 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 类目资质信息查询 + */ + @Log(title = "类目资质信息查询", businessType = BusinessType.SELECT) + @ApiOperation("类目资质信息查询") + @PostMapping("/qualificationsList") + public String qualificationsList(@RequestBody CategoryQualificationsListDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressCategoryEnu.QUALIFICATIONS_LIST.getApiName()); + request.setHttpMethod("GET"); + request.addApiParameter("category_id", reqDto.getCategory_id()); + request.addApiParameter("local", reqDto.getLocal()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + //获取单个类目信息 /* IopClient client = new IopClient(url, appkey, appSecret); @@ -221,6 +337,21 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 获取单个类目信息 + */ + @Log(title = "获取单个类目信息", businessType = BusinessType.SELECT) + @ApiOperation("获取单个类目信息") + @PostMapping("/getPostCategoryById") + public String getPostCategoryById(@RequestBody CategoryGetPostCategoryByIdDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressCategoryEnu.GET_POST_CATEGORY_BY_ID.getApiName()); + request.addApiParameter("param0", reqDto.getParam0()); + IopResponse response = client.execute(request, Protocol.TOP); + return response.getGopResponseBody(); + } + //获取指定类目下子类目信息 /* IopClient client = new IopClient(url, appkey, appSecret); @@ -232,6 +363,21 @@ System.out.println(response.getBody()); Thread.sleep(10); */ + /** + * 获取指定类目下子类目信息 + */ + @Log(title = "获取指定类目下子类目信息", businessType = BusinessType.SELECT) + @ApiOperation("获取指定类目下子类目信息") + @PostMapping("/getChildrenPostCategoryById") + public String getChildrenPostCategoryById(@RequestBody CategoryGetChildrenPostCategoryByIdDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressCategoryEnu.GET_CHILDREN_POST_CATEGORY_BY_ID.getApiName()); + request.addApiParameter("param0", reqDto.getParam0()); + IopResponse response = client.execute(request, Protocol.TOP); + return response.getGopResponseBody(); + } + //获取指定类目下的子类目信息(可校验卖家权限) /* IopClient client = new IopClient(url, appkey, appSecret); @@ -246,4 +392,23 @@ IopResponse response = client.execute(request, accessToken, Protocol.TOP); System.out.println(response.getBody()); Thread.sleep(10); */ + + /** + * 获取指定类目下的子类目信息(可校验卖家权限) + */ + @Log(title = "获取指定类目下的子类目信息(可校验卖家权限)", businessType = BusinessType.SELECT) + @ApiOperation("获取指定类目下的子类目信息(可校验卖家权限)") + @PostMapping("/treeList") + public String treeList(@RequestBody CategoryTreeListDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressCategoryEnu.TREE_LIST.getApiName()); + request.setHttpMethod("GET"); + request.addApiParameter("channel_seller_id", reqDto.getChannel_seller_id()); + request.addApiParameter("only_with_permission", reqDto.getOnly_with_permission()); + request.addApiParameter("channel", reqDto.getChannel()); + request.addApiParameter("category_id", reqDto.getCategory_id()); + IopResponse response = client.execute(request, Protocol.TOP); + return response.getGopResponseBody(); + } } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/AliexpressFreightController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/AliexpressFreightController.java index edf64c1..768e5f2 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/AliexpressFreightController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/AliexpressFreightController.java @@ -8,9 +8,9 @@ import com.global.iop.domain.Protocol; import com.global.iop.util.ApiException; import com.ruoyi.common.annotation.Log; import com.ruoyi.common.enums.BusinessType; -import com.ruoyi.web.controller.aliexpress.dto.FreightCalculateFreightDTO; -import com.ruoyi.web.controller.aliexpress.dto.FreightGetFreightSettingByTemplateQueryDTO; -import com.ruoyi.web.controller.aliexpress.dto.FreightListFreightTemplateDTO; +import com.ruoyi.web.controller.aliexpress.dto.freight.FreightCalculateFreightDTO; +import com.ruoyi.web.controller.aliexpress.dto.freight.FreightGetFreightSettingByTemplateQueryDTO; +import com.ruoyi.web.controller.aliexpress.dto.freight.FreightListFreightTemplateDTO; import com.ruoyi.web.core.config.AliexpressAuthClientConfig; import com.ruoyi.web.enumerate.AliexpressFreightEnu; import io.swagger.annotations.Api; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/AliexpressImageController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/AliexpressImageController.java index 373ceb8..5ff3110 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/AliexpressImageController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/AliexpressImageController.java @@ -9,7 +9,7 @@ import com.global.iop.util.ApiException; import com.global.iop.util.FileItem; import com.ruoyi.common.annotation.Log; import com.ruoyi.common.enums.BusinessType; -import com.ruoyi.web.controller.aliexpress.dto.*; +import com.ruoyi.web.controller.aliexpress.dto.photobank.*; import com.ruoyi.web.core.config.AliexpressAuthClientConfig; import com.ruoyi.web.enumerate.AliexpressImageEnu; import io.swagger.annotations.Api; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/AliexpressMemberController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/AliexpressMemberController.java new file mode 100644 index 0000000..6711438 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/AliexpressMemberController.java @@ -0,0 +1,152 @@ +package com.ruoyi.web.controller.aliexpress; + +import com.global.iop.api.IopClient; +import com.global.iop.api.IopClientImpl; +import com.global.iop.api.IopRequest; +import com.global.iop.api.IopResponse; +import com.global.iop.domain.Protocol; +import com.global.iop.util.ApiException; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.web.controller.aliexpress.dto.member.MemberDsOrderDataSaveDTO; +import com.ruoyi.web.controller.aliexpress.dto.member.MemberOauthAuthorizeDTO; +import com.ruoyi.web.controller.aliexpress.dto.member.MemberQueryAccountLevelDTO; +import com.ruoyi.web.controller.aliexpress.dto.member.MemberUicQueryTbNickDTO; +import com.ruoyi.web.core.config.AliexpressAuthClientConfig; +import com.ruoyi.web.enumerate.AliexpressMemberEnu; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +/** + * @author ldj + * @date 2024/2/29 15:17 + * @Description: ... + * @Version 1.0 + */ +@RestController +@Api("对接速卖通 类目") +@RequestMapping("/aliexpress/member") +public class AliexpressMemberController { + + @Resource + private AliexpressAuthClientConfig AliexpressAuthClientConfig; + + //查询淘宝的nickName + //描述:通过AE的loginId查询淘宝的nickName + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.member.redefining.uicquerytbnick"); +request.addApiParameter("login_id", "cn1519431219gong"); +IopResponse response = client.execute(request, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 查询淘宝的nickName + */ + @Log(title = "查询淘宝的nickName", businessType = BusinessType.SELECT) + @ApiOperation("查询淘宝的nickName") + @PostMapping("/uicQueryTbNick") + public String uicQueryTbNick(@RequestBody MemberUicQueryTbNickDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressMemberEnu.UIC_QUERY_TB_NICK.getApiName()); + request.addApiParameter("login_id", reqDto.getLoginId()); + IopResponse response = client.execute(request, Protocol.TOP); + return response.getGopResponseBody(); + } + + //收集下单的用户和订单金额等信息 + //描述:收集dropshipper导购站点下单的用户和订单金额等信息 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.member.ds.orderdata.save"); +request.addApiParameter("dser_collect_data", "{\"ae_product_id\":\"1334345\",\"ae_sku_info\":\"200000182:193;200007763:201336100\",\"product_url\":\"https://www.yousite.com/item/32862631421.html\",\"order_amount\":\"35.33\",\"paytime\":\"20191122:150606\",\"ae_orderid\":\"1334345\",\"product_amount\":\"35.33\"}"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 收集下单的用户和订单金额等信息 + */ + @Log(title = "收集下单的用户和订单金额等信息", businessType = BusinessType.SELECT) + @ApiOperation("收集下单的用户和订单金额等信息") + @PostMapping("/dsOrderDataSave") + public String dsOrderDataSave(@RequestBody MemberDsOrderDataSaveDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressMemberEnu.DS_ORDER_DATA_SAVE.getApiName()); + request.addApiParameter("dser_collect_data", reqDto.getDserCollectData()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //oauth授权 + //描述:该开放接口使用OK的authCode 映射到AE账号上进行Top平台的授权操作 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.member.oauth.authorize"); +request.addApiParameter("response_type", "code"); +request.addApiParameter("sns_authorization_code", "afjaodfjaojdfoajdfioa"); +request.addApiParameter("sns_type", "ok"); +request.addApiParameter("auto_register", "true"); +IopResponse response = client.execute(request, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * oauth授权 + */ + @Log(title = "oauth授权", businessType = BusinessType.SELECT) + @ApiOperation("oauth授权") + @PostMapping("/oauthAuthorize") + public String oauthAuthorize(@RequestBody MemberOauthAuthorizeDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressMemberEnu.OAUTH_AUTHORIZE.getApiName()); + request.addApiParameter("response_type", reqDto.getResponseType()); + request.addApiParameter("sns_authorization_code", reqDto.getSnsAuthorizationCode()); + request.addApiParameter("sns_type", reqDto.getSnsType()); + request.addApiParameter("auto_register", reqDto.getAutoRegister()); + IopResponse response = client.execute(request, Protocol.TOP); + return response.getGopResponseBody(); + } + //查询会员账户等级 + //描述:根据买家登录ID查询会员等级。平台对买家层级的标识,以A0-A4五个等级进行标注,数字越高,等级越高,买家越活跃,购买力越强,卖家朋友可根据买家分层更好的服务于买家。 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.member.redefining.queryaccountlevel"); +request.addApiParameter("login_id", "jordenmail"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 查询会员账户等级 + */ + @Log(title = "查询会员账户等级", businessType = BusinessType.SELECT) + @ApiOperation("查询会员账户等级") + @PostMapping("/queryAccountLevel") + public String queryAccountLevel(@RequestBody MemberQueryAccountLevelDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressMemberEnu.QUERY_ACCOUNT_LEVEL.getApiName()); + request.addApiParameter("login_id", reqDto.getLoginId()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/AliexpressOrderController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/AliexpressOrderController.java index a54bd65..cd2cdc1 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/AliexpressOrderController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/AliexpressOrderController.java @@ -8,7 +8,7 @@ import com.global.iop.domain.Protocol; import com.global.iop.util.ApiException; import com.ruoyi.common.annotation.Log; import com.ruoyi.common.enums.BusinessType; -import com.ruoyi.web.controller.aliexpress.dto.*; +import com.ruoyi.web.controller.aliexpress.dto.order.*; import com.ruoyi.web.core.config.AliexpressAuthClientConfig; import com.ruoyi.web.enumerate.AliexpressOrderEnu; import io.swagger.annotations.Api; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/AliexpressProductController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/AliexpressProductController.java new file mode 100644 index 0000000..087fd64 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/AliexpressProductController.java @@ -0,0 +1,1977 @@ +package com.ruoyi.web.controller.aliexpress; + +import com.global.iop.api.IopClient; +import com.global.iop.api.IopClientImpl; +import com.global.iop.api.IopRequest; +import com.global.iop.api.IopResponse; +import com.global.iop.domain.Protocol; +import com.global.iop.util.ApiException; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.web.controller.aliexpress.dto.product.*; +import com.ruoyi.web.core.config.AliexpressAuthClientConfig; +import com.ruoyi.web.enumerate.AliexpressProductEnu; +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; + +import javax.annotation.Resource; + +/** + * @author ldj + * @date 2024/2/29 11:23 + * @Description: ... + * @Version 1.0 + */ +@RestController +@Api("对接速卖通 产品") +@RequestMapping("/aliexpress/product") +public class AliexpressProductController { + + @Resource + private AliexpressAuthClientConfig AliexpressAuthClientConfig; + + //批量产品价格更新 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.solution.batch.product.price.update"); +request.addApiParameter("mutiple_product_update_list", "[{\"product_id\":\"1000005237852\",\"multi_country_price_configuration\":{\"price_type\":\"absolute\",\"country_price_list\":[{\"sku_price_by_country_list\":[{\"price\":\"15\",\"discount_price\":\"13.99\",\"sku_code\":\"abc123\"},{\"price\":\"15\",\"discount_price\":\"13.99\",\"sku_code\":\"abc123\"}],\"ship_to_country\":\"FR\"},{\"sku_price_by_country_list\":[{\"price\":\"15\",\"discount_price\":\"13.99\",\"sku_code\":\"abc123\"},{\"price\":\"15\",\"discount_price\":\"13.99\",\"sku_code\":\"abc123\"}],\"ship_to_country\":\"FR\"}]},\"multiple_sku_update_list\":[{\"discount_price\":\"14.99\",\"price\":\"19.99\",\"sku_code\":\"123abc\"},{\"discount_price\":\"14.99\",\"price\":\"19.99\",\"sku_code\":\"123abc\"}]}]"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 批量产品价格更新 + */ + @Log(title = "批量产品价格更新", businessType = BusinessType.SELECT) + @ApiOperation("批量产品价格更新") + @PostMapping("/batchProductPriceUpdate") + public String batchProductPriceUpdate(@RequestBody ProductBatchProductPriceUpdateDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.BATCH_PRODUCT_PRICE_UPDATE.getApiName()); + request.addApiParameter("mutiple_product_update_list", reqDto.getMutiple_product_update_list()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //用于编辑产品 + //用于编辑产品的API,为海外商家定制。此 API 的大多数输入字段与 aliexpress.solution.product.post 类似。对于编辑,只需填写您要编辑的字段,其他字段留空即可 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.solution.product.edit"); +request.addApiParameter("edit_product_request", "{\"extra_params\":\"extra params\",\"inventory_deduction_strategy\":\"place_order_withhold or payment_success_deduct\",\"main_image_urls_list\":[\"[\\\"https://upload.wikimedia.org/wikipedia/commons/b/b5/Winnersh_Meadows_Trees.jpg\\\",\\\"https://ae01.alicdn.com/kf/UTB85xyVgnzIXKJkSafVq6yWgXXa0/Kingston-SDCS-16GB-MicroSD-Canvas-Select-16GB-velocidades-de-UHS-I-Clase-10-DE-hasta-80.jpg\\\"]\",\"[\\\"https://upload.wikimedia.org/wikipedia/commons/b/b5/Winnersh_Meadows_Trees.jpg\\\",\\\"https://ae01.alicdn.com/kf/UTB85xyVgnzIXKJkSafVq6yWgXXa0/Kingston-SDCS-16GB-MicroSD-Canvas-Select-16GB-velocidades-de-UHS-I-Clase-10-DE-hasta-80.jpg\\\"]\"],\"sku_info_list\":[{\"extra_params\":\"extra params\",\"price\":\"12.21\",\"discount_price\":\"9.92\",\"sku_attributes_list\":[{\"sku_attribute_value\":\"red\",\"sku_image\":\"https://upload.wikimedia.org/wikipedia/commons/b/b5/Winnersh_Meadows_Trees.jpg\",\"sku_attribute_name\":\"Color\",\"sku_attribute_name_id\":\"14\",\"sku_attribute_value_id\":\"10\"},{\"sku_attribute_value\":\"red\",\"sku_image\":\"https://upload.wikimedia.org/wikipedia/commons/b/b5/Winnersh_Meadows_Trees.jpg\",\"sku_attribute_name\":\"Color\",\"sku_attribute_name_id\":\"14\",\"sku_attribute_value_id\":\"10\"}],\"ean_code\":\"12345678\",\"inventory\":\"90\",\"sku_code\":\"123abc\"},{\"extra_params\":\"extra params\",\"price\":\"12.21\",\"discount_price\":\"9.92\",\"sku_attributes_list\":[{\"sku_attribute_value\":\"red\",\"sku_image\":\"https://upload.wikimedia.org/wikipedia/commons/b/b5/Winnersh_Meadows_Trees.jpg\",\"sku_attribute_name\":\"Color\",\"sku_attribute_name_id\":\"14\",\"sku_attribute_value_id\":\"10\"},{\"sku_attribute_value\":\"red\",\"sku_image\":\"https://upload.wikimedia.org/wikipedia/commons/b/b5/Winnersh_Meadows_Trees.jpg\",\"sku_attribute_name\":\"Color\",\"sku_attribute_name_id\":\"14\",\"sku_attribute_value_id\":\"10\"}],\"ean_code\":\"12345678\",\"inventory\":\"90\",\"sku_code\":\"123abc\"}],\"multi_language_description_list\":[{\"mobile_detail\":\"{\\\"moduleList\\\":[{\\\"texts\\\":{\\\"content\\\":\\\"test mobile description\\\",\\\"class\\\":\\\"body\\\"},\\\"type\\\":\\\"text\\\"}],\\\"version\\\":\\\"2.0.0\\\"}\",\"language\":\"es\",\"web_detail\":\"{\\\"moduleList\\\":[{\\\"html\\\":{\\\"content\\\":\\\"test web description\\\"},\\\"type\\\":\\\"html\\\"}],\\\"version\\\":\\\"2.0.0\\\"}\"},{\"mobile_detail\":\"{\\\"moduleList\\\":[{\\\"texts\\\":{\\\"content\\\":\\\"test mobile description\\\",\\\"class\\\":\\\"body\\\"},\\\"type\\\":\\\"text\\\"}],\\\"version\\\":\\\"2.0.0\\\"}\",\"language\":\"es\",\"web_detail\":\"{\\\"moduleList\\\":[{\\\"html\\\":{\\\"content\\\":\\\"test web description\\\"},\\\"type\\\":\\\"html\\\"}],\\\"version\\\":\\\"2.0.0\\\"}\"}],\"multi_language_subject_list\":[{\"subject\":\"Versi\u00F3n Global Xiaomi Redmi Note 5\",\"language\":\"es\"},{\"subject\":\"Versi\u00F3n Global Xiaomi Redmi Note 5\",\"language\":\"es\"}],\"weight\":\"3.2\",\"size_chart_id\":\"100\",\"brand_name\":\"Xiaomi\",\"package_width\":\"30\",\"package_height\":\"20\",\"category_id\":\"200105144\",\"attribute_list\":[{\"attribute_name\":\"Resolution\",\"attribute_value\":\"1920*1080\",\"aliexpress_attribute_value_id\":\"593\",\"aliexpress_attribute_name_id\":\"14\"},{\"attribute_name\":\"Resolution\",\"attribute_value\":\"1920*1080\",\"aliexpress_attribute_value_id\":\"593\",\"aliexpress_attribute_name_id\":\"14\"}],\"group_id\":\"262007001\",\"package_length\":\"10\",\"product_id\":\"1000005237852\",\"aliexpress_category_id\":\"200105144\",\"marketing_images\":[{\"image_url\":\"https://ae01.alicdn.com/kf/Hf5987123b00246699ac4f86795d59e636.jpg\",\"image_type\":\"1\"},{\"image_url\":\"https://ae01.alicdn.com/kf/Hf5987123b00246699ac4f86795d59e636.jpg\",\"image_type\":\"1\"}],\"service_policy_id\":\"0\",\"developer_features\":\"{\\\"source\\\":\\\"Lengow\\\"}\",\"shipping_lead_time\":\"3\",\"multi_country_price_configuration\":{\"price_type\":\"absolute\",\"country_price_list\":[{\"sku_price_by_country_list\":[{\"price\":\"15\",\"discount_price\":\"3.99\",\"value\":\"15\",\"sku_code\":\"123abc\"},{\"price\":\"15\",\"discount_price\":\"3.99\",\"value\":\"15\",\"sku_code\":\"123abc\"}],\"ship_to_country\":\"FR\"},{\"sku_price_by_country_list\":[{\"price\":\"15\",\"discount_price\":\"3.99\",\"value\":\"15\",\"sku_code\":\"123abc\"},{\"price\":\"15\",\"discount_price\":\"3.99\",\"value\":\"15\",\"sku_code\":\"123abc\"}],\"ship_to_country\":\"FR\"}]},\"freight_template_id\":\"703476858\"}"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 用于编辑产品 + */ + @Log(title = "用于编辑产品", businessType = BusinessType.SELECT) + @ApiOperation("用于编辑产品") + @PostMapping("/productEdit") + public String productEdit(@RequestBody ProductProductEditDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.PRODUCT_EDIT.getApiName()); + request.addApiParameter("edit_product_request", reqDto.getEdit_product_request()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //获取单一产品信息 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.solution.product.info.get"); +request.addApiParameter("product_id", "1307422965"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 获取单一产品信息 + */ + @Log(title = "获取单一产品信息", businessType = BusinessType.SELECT) + @ApiOperation("获取单一产品信息") + @PostMapping("/productInfoGet") + public String productInfoGet(@RequestBody ProductProductInfoGetDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.PRODUCT_INFO_GET.getApiName()); + request.addApiParameter("product_id", reqDto.getProduct_id()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + //获取产品列表 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.solution.product.list.get"); +request.addApiParameter("aeop_a_e_product_list_query", "{\"gmt_modified_start\":\"2012-01-01 12:13:14\",\"gmt_modified_end\":\"2012-01-01 12:13:14\",\"off_line_time\":\"7\",\"gmt_create_start\":\"2012-01-01 12:13:14\",\"subject\":\"knew odd\",\"have_national_quote\":\"n\",\"ws_display\":\"expire_offline\",\"product_status_type\":\"onSelling\",\"owner_member_id\":\"aliqatest01\",\"gmt_create_end\":\"2012-01-01 12:13:14\",\"group_id\":\"1234\",\"product_id\":\"123\",\"excepted_product_ids\":[\"[32962333569,32813963253]\",\"[32962333569,32813963253]\"],\"sku_code\":\"123ABC\",\"current_page\":\"2\",\"page_size\":\"30\"}"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 获取产品列表 + */ + @Log(title = "获取产品列表", businessType = BusinessType.SELECT) + @ApiOperation("获取产品列表") + @PostMapping("/productListGet") + public String productListGet(@RequestBody ProductProductListGetDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.PRODUCT_LIST_GET.getApiName()); + request.addApiParameter("aeop_a_e_product_list_query", reqDto.getAeop_a_e_product_list_query()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //特定 Feed 失效 + //用于根据作业 ID 使特定 Feed 失效的 API。请使用 (aliexpress.solution.feed.list.get) 来确定需要发送哪些作业 ID 进行失效。 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.solution.feed.invalidate"); +request.addApiParameter("job_id_list", "200000099310034475;200000099110014475;200000014009554475"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 特定 Feed 失效 + */ + @Log(title = "特定 Feed 失效", businessType = BusinessType.SELECT) + @ApiOperation("特定 Feed 失效") + @PostMapping("/feedInvalidate") + public String feedInvalidate(@RequestBody ProductFeedInvalidateDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.FEED_INVALIDATE.getApiName()); + request.addApiParameter("job_id_list", reqDto.getJob_id_list()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //产品发布 API + //面向海外商家的产品发布API,简化了卖家和商家面临的整合复杂性。例如,这些卖家可以使用自己的类别和属性,而不是映射 AE 中的类别和属性。 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.solution.product.post"); +request.addApiParameter("post_product_request", "{\"subject\":\"Huawei Mate 10\",\"multi_language_description_list\":[{\"mobile_detail\":\"{\\\"moduleList\\\":[{\\\"texts\\\":{\\\"content\\\":\\\"test mobile description\\\",\\\"class\\\":\\\"body\\\"},\\\"type\\\":\\\"text\\\"}],\\\"version\\\":\\\"2.0.0\\\"}\",\"language\":\"es\",\"web_detail\":\"{\\\"moduleList\\\":[{\\\"html\\\":{\\\"content\\\":\\\"test web description\\\"},\\\"type\\\":\\\"html\\\"}],\\\"version\\\":\\\"2.0.0\\\"}\"},{\"mobile_detail\":\"{\\\"moduleList\\\":[{\\\"texts\\\":{\\\"content\\\":\\\"test mobile description\\\",\\\"class\\\":\\\"body\\\"},\\\"type\\\":\\\"text\\\"}],\\\"version\\\":\\\"2.0.0\\\"}\",\"language\":\"es\",\"web_detail\":\"{\\\"moduleList\\\":[{\\\"html\\\":{\\\"content\\\":\\\"test web description\\\"},\\\"type\\\":\\\"html\\\"}],\\\"version\\\":\\\"2.0.0\\\"}\"}],\"description\":\"El Huawei Mate 10 Lite destaca principalmente por su pantalla FullView y sus cuatro c\u00E1maras. \\u003cimg alt\\u003d\\\"Huawei-Mate-10-Lite_02\\\" src\\u003d\\\"https://ae01.alicdn.com/kf/UTB8rju8uOaMiuJk43PTq6ySmXXa7.jpg\\\"\\u003e\",\"language\":\"es\",\"package_height\":\"20\",\"category_id\":\"200105144\",\"package_length\":\"10\",\"aliexpress_category_id\":\"200105144\",\"marketing_images\":[{\"image_url\":\"https://ae01.alicdn.com/kf/Hf5987123b00246699ac4f86795d59e636.jpg\",\"image_type\":\"1\"},{\"image_url\":\"https://ae01.alicdn.com/kf/Hf5987123b00246699ac4f86795d59e636.jpg\",\"image_type\":\"1\"}],\"multi_country_price_configuration\":{\"price_type\":\"absolute\",\"country_price_list\":[{\"sku_price_by_country_list\":[{\"price\":\"16\",\"discount_price\":\"3.99\",\"sku_code\":\"123abc\",\"value\":\"15\"},{\"price\":\"16\",\"discount_price\":\"3.99\",\"sku_code\":\"123abc\",\"value\":\"15\"}],\"ship_to_country\":\"FR\"},{\"sku_price_by_country_list\":[{\"price\":\"16\",\"discount_price\":\"3.99\",\"sku_code\":\"123abc\",\"value\":\"15\"},{\"price\":\"16\",\"discount_price\":\"3.99\",\"sku_code\":\"123abc\",\"value\":\"15\"}],\"ship_to_country\":\"FR\"}]},\"freight_template_id\":\"703476858\",\"extra_params\":\"extra params\",\"inventory_deduction_strategy\":\"payment_success_deduct\",\"main_image_urls_list\":[\"[\\\"https://upload.wikimedia.org/wikipedia/commons/b/b5/Winnersh_Meadows_Trees.jpg\\\",\\\"https://ae01.alicdn.com/kf/UTB85xyVgnzIXKJkSafVq6yWgXXa0/Kingston-SDCS-16GB-MicroSD-Canvas-Select-16GB-velocidades-de-UHS-I-Clase-10-DE-hasta-80.jpg\\\"]\",\"[\\\"https://upload.wikimedia.org/wikipedia/commons/b/b5/Winnersh_Meadows_Trees.jpg\\\",\\\"https://ae01.alicdn.com/kf/UTB85xyVgnzIXKJkSafVq6yWgXXa0/Kingston-SDCS-16GB-MicroSD-Canvas-Select-16GB-velocidades-de-UHS-I-Clase-10-DE-hasta-80.jpg\\\"]\"],\"sku_info_list\":[{\"extra_params\":\"extra params\",\"price\":\"12.21\",\"discount_price\":\"9.92\",\"bar_code\":\"2012331233258\",\"sku_attributes_list\":[{\"sku_attribute_value\":\"red\",\"sku_attribute_name\":\"Color\",\"sku_image_url\":\"https://upload.wikimedia.org/wikipedia/commons/b/b5/Winnersh_Meadows_Trees.jpg\",\"sku_attribute_name_id\":\"14\",\"sku_attribute_value_id\":\"10\"},{\"sku_attribute_value\":\"red\",\"sku_attribute_name\":\"Color\",\"sku_image_url\":\"https://upload.wikimedia.org/wikipedia/commons/b/b5/Winnersh_Meadows_Trees.jpg\",\"sku_attribute_name_id\":\"14\",\"sku_attribute_value_id\":\"10\"}],\"ean_code\":\"12345678\",\"inventory\":\"90\",\"sku_code\":\"123abc\"},{\"extra_params\":\"extra params\",\"price\":\"12.21\",\"discount_price\":\"9.92\",\"bar_code\":\"2012331233258\",\"sku_attributes_list\":[{\"sku_attribute_value\":\"red\",\"sku_attribute_name\":\"Color\",\"sku_image_url\":\"https://upload.wikimedia.org/wikipedia/commons/b/b5/Winnersh_Meadows_Trees.jpg\",\"sku_attribute_name_id\":\"14\",\"sku_attribute_value_id\":\"10\"},{\"sku_attribute_value\":\"red\",\"sku_attribute_name\":\"Color\",\"sku_image_url\":\"https://upload.wikimedia.org/wikipedia/commons/b/b5/Winnersh_Meadows_Trees.jpg\",\"sku_attribute_name_id\":\"14\",\"sku_attribute_value_id\":\"10\"}],\"ean_code\":\"12345678\",\"inventory\":\"90\",\"sku_code\":\"123abc\"}],\"multi_language_subject_list\":[{\"subject\":\"Versi\u00F3n Global Xiaomi Redmi Note 5\",\"language\":\"es\"},{\"subject\":\"Versi\u00F3n Global Xiaomi Redmi Note 5\",\"language\":\"es\"}],\"size_chart_id\":\"100\",\"weight\":\"3.2\",\"brand_name\":\"Xiaomi\",\"product_unit\":\"100000015\",\"package_width\":\"30\",\"attribute_list\":[{\"attribute_name\":\"Resolution\",\"attribute_value\":\"1920*1080\",\"aliexpress_attribute_value_id\":\"593\",\"aliexpress_attribute_name_id\":\"14\"},{\"attribute_name\":\"Resolution\",\"attribute_value\":\"1920*1080\",\"aliexpress_attribute_value_id\":\"593\",\"aliexpress_attribute_name_id\":\"14\"}],\"group_id\":\"262007001\",\"service_policy_id\":\"0\",\"developer_features\":\"{\\\"source\\\":\\\"Lengow\\\"}\",\"shipping_lead_time\":\"3\"}"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 产品发布 + */ + @Log(title = "产品发布", businessType = BusinessType.SELECT) + @ApiOperation("产品发布") + @PostMapping("/productPost") + public String productPost(@RequestBody ProductProductPostDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.PRODUCT_POST.getApiName()); + request.addApiParameter("post_product_request", reqDto.getPost_product_request()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //基于json schema实例上传产品 + //基于json schema实例上传产品。该接口的QPS(Invoke per s)每个appkey限制为100个,每个卖家限制为50个。 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.solution.schema.product.instance.post"); +request.addApiParameter("product_instance_request", "{ \"category_id\": 348, \"title_multi_language_list\": [ { \"locale\": \"es_ES\", \"title\": \"atestproducttesttest001\" } ], \"description_multi_language_list\": [ { \"locale\": \"es_ES\", \"module_list\": [ { \"type\": \"html\", \"html\": { \"content\": \"unotesttestdescription002\" } } ] } ], \"locale\": \"es_ES\", \"product_units_type\": \"100000015\", \"image_url_list\": [ \"https://upload.wikimedia.org/wikipedia/commons/b/ba/E-SENS_architecture.jpg\" ], \"category_attributes\": { \"Brand Name\": { \"value\": \"200010868\" }, \"ShirtsType\": { \"value\": \"200001208\" }, \"Material\": { \"value\": [ \"567\" ] }, \"SleeveLength(cm)\": { \"value\": \"200001500\" } }, \"sku_info_list\": [ { \"sku_code\": \"WEO19293829123\", \"inventory\": 3, \"price\": 9900, \"discount_price\": 9800, \"sku_attributes\": { \"Size\": { \"alias\": \"Uni\", \"value\": \"200003528\" } } } ], \"inventory_deduction_strategy\": \"payment_success_deduct\", \"package_weight\": 1.5, \"package_length\": 10, \"package_height\": 20, \"package_width\": 30, \"shipping_preparation_time\": 3, \"shipping_template_id\": \"714844311\", \"service_template_id\": \"0\" }"); +request.addApiParameter("developer_features", "{\"source\":\"Lengow\"}"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 基于json schema实例上传产品 + */ + @Log(title = "基于json schema实例上传产品", businessType = BusinessType.SELECT) + @ApiOperation("基于json schema实例上传产品") + @PostMapping("/schemaProductInstancePost") + public String schemaProductInstancePost(@RequestBody ProductSchemaProductInstancePostDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.SCHEMA_PRODUCT_INSTANCE_POST.getApiName()); + request.addApiParameter("product_instance_request", reqDto.getProduct_instance_request()); + request.addApiParameter("developer_features", reqDto.getDeveloper_features()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //查询草稿箱里的产品信息 + //描述:根据商品id查询单个商品的详细信息。 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.offer.draftproduct.get"); +request.addApiParameter("product_id", "1307422965"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 查询草稿箱里的产品信息 + */ + @Log(title = "查询草稿箱里的产品信息", businessType = BusinessType.SELECT) + @ApiOperation("查询草稿箱里的产品信息") + @PostMapping("/draftProductGet") + public String draftProductGet(@RequestBody ProductDraftProductGetDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.DRAFT_PRODUCT_GET.getApiName()); + request.addApiParameter("product_id", reqDto.getProduct_id()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //删除除草稿框外的在线产品 + //该接口用于删除除草稿框外的在线产品。请注意,没有相反的方法可以检索已删除的产品。谨慎使用此 API。 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.solution.batch.product.delete"); +request.addApiParameter("product_ids", "4000403362451,4000403362452"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 删除除草稿框外的在线产品 + */ + @Log(title = "删除除草稿框外的在线产品", businessType = BusinessType.SELECT) + @ApiOperation("删除除草稿框外的在线产品") + @PostMapping("/batchProductDelete") + public String batchProductDelete(@RequestBody ProductBatchProductDeleteDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.BATCH_PRODUCT_DELETE.getApiName()); + request.addApiParameter("product_ids", reqDto.getProduct_ids()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //面向海外卖家的批量产品库存更新 API。卖家可以在一次通话中更新多个产品中的多个 SKU。最多可以同时更新 20 个产品,一个产品最多可以更新 200 个 SKU。 + //批量产品库存更新 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.solution.batch.product.inventory.update"); +request.addApiParameter("mutiple_product_update_list", "[{\"product_id\":\"1000005237852\",\"multiple_sku_update_list\":[{\"inventory\":\"99\",\"sku_code\":\"123abc\"},{\"inventory\":\"99\",\"sku_code\":\"123abc\"}]}]"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 批量产品库存更新 + */ + @Log(title = "批量产品库存更新", businessType = BusinessType.SELECT) + @ApiOperation("批量产品库存更新") + @PostMapping("/batchProductInventoryUpdate") + public String batchProductInventoryUpdate(@RequestBody ProductBatchProductInventoryUpdateDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.BATCH_PRODUCT_INVENTORY_UPDATE.getApiName()); + request.addApiParameter("mutiple_product_update_list", reqDto.getMutiple_product_update_list()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //查询属于卖家的 Feed 列表 + //描述:查询属于卖家的 Feed 列表的 API + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.solution.feed.list.get"); +request.addApiParameter("current_page", "2"); +request.addApiParameter("feed_type", "PRODUCT_CREATE"); +request.addApiParameter("page_size", "50"); +request.addApiParameter("status", "FINISH"); +request.addApiParameter("submitted_time_end", "2020-11-12 06:00:00"); +request.addApiParameter("submitted_time_start", "2020-11-01 02:00:00"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 查询属于卖家的 Feed 列表 + */ + @Log(title = "查询属于卖家的 Feed 列表", businessType = BusinessType.SELECT) + @ApiOperation("查询属于卖家的 Feed 列表") + @PostMapping("/feedListGet") + public String feedListGet(@RequestBody ProductFeedListGetDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.FEED_LIST_GET.getApiName()); + request.addApiParameter("current_page", reqDto.getCurrent_page()); + request.addApiParameter("feed_type", reqDto.getFeed_type()); + request.addApiParameter("page_size", reqDto.getPage_size()); + request.addApiParameter("status", reqDto.getStatus()); + request.addApiParameter("submitted_time_end", reqDto.getSubmitted_time_end()); + request.addApiParameter("submitted_time_start", reqDto.getSubmitted_time_start()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //查询Feed执行结果 + //用于查询Feed执行结果的API + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.solution.feed.query"); +request.addApiParameter("job_id", "200000000060054475"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 查询Feed执行结果 + */ + @Log(title = "查询Feed执行结果", businessType = BusinessType.SELECT) + @ApiOperation("查询Feed执行结果") + @PostMapping("/feedQuery") + public String feedQuery(@RequestBody ProductFeedQueryDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.FEED_QUERY.getApiName()); + request.addApiParameter("job_id", reqDto.getJob_id()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //供商家提交 Feed 数据 + //供商家提交 Feed 数据的 API。请注意,对于每个卖家,每 24 小时为每operation_type提交的 Feed 建议数量应大于 150 条,否则处理 Feed 可能会遇到明显的延迟。 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.solution.feed.submit"); +request.addApiParameter("operation_type", "PRODUCT_CREATE"); +request.addApiParameter("item_list", "[{\"item_content_id\":\"A00000000Y1\",\"item_content\":\"{\\\"category_id\\\":200000346,\\\"title_multi_language_list\\\":[{\\\"locale\\\":\\\"es_ES\\\",\\\"title\\\":\\\"test\\\"}],\\\"description_multi_language_list\\\":[{\\\"locale\\\":\\\"es_ES\\\",\\\"module_list\\\":[{\\\"type\\\":\\\"html\\\",\\\"html\\\":{\\\"content\\\":\\\"test\\\"}}]}],\\\"locale\\\":\\\"es_ES\\\",\\\"product_units_type\\\":\\\"100000000\\\",\\\"image_url_list\\\":[\\\"https://ae01.alicdn.com/kf/HTB1TZJRVkvoK1RjSZFwq6AiCFXa0.jpg_350x350.jpg\\\"],\\\"category_attributes\\\":{\\\"Brand Name\\\":{\\\"value\\\":\\\"200010868\\\"},\\\"Material\\\":{\\\"value\\\":[\\\"47\\\",\\\"49\\\"]},\\\"Clothing Length\\\":{\\\"value\\\":\\\"1876\\\"}},\\\"sku_info_list\\\":[{\\\"sku_code\\\":\\\"234\\\",\\\"inventory\\\":234,\\\"price\\\":23,\\\"discount_price\\\":12,\\\"sku_attributes\\\":{\\\"Size\\\":{\\\"value\\\":\\\"200000989\\\"},\\\"Color\\\":{\\\"alias\\\":\\\"32\\\",\\\"sku_image_url\\\":\\\"https://ae01.alicdn.com/kf/HTB1TZJRVkvoK1RjSZFwq6AiCFXa0.jpg_350x350.jpg\\\",\\\"value\\\":\\\"771\\\"}}}],\\\"inventory_deduction_strategy\\\":\\\"place_order_withhold\\\",\\\"package_weight\\\":234,\\\"package_length\\\":234,\\\"package_height\\\":234,\\\"package_width\\\":234,\\\"shipping_preparation_time\\\":3,\\\"shipping_template_id\\\":\\\"1000\\\",\\\"service_template_id\\\":\\\"0\\\"}\"}]"); +request.addApiParameter("developer_features", "{\"source\":\"Lengow\"}"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 供商家提交 Feed 数据 + */ + @Log(title = "供商家提交 Feed 数据", businessType = BusinessType.SELECT) + @ApiOperation("供商家提交 Feed 数据") + @PostMapping("/feedSubmit") + public String feedSubmit(@RequestBody ProductFeedSubmitDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.FEED_SUBMIT.getApiName()); + request.addApiParameter("operation_type", reqDto.getOperation_type()); + request.addApiParameter("item_list", reqDto.getItem_list()); + request.addApiParameter("developer_features", reqDto.getDeveloper_features()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //物流ISV的API,用于根据产品类别获取hscode。 + //用于根据产品类别获取hscode + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.solution.hscode.query"); +request.addApiParameter("country_code", "TR"); +request.addApiParameter("category_id", "5090301"); +IopResponse response = client.execute(request, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 用于根据产品类别获取hscode + */ + @Log(title = "用于根据产品类别获取hscode", businessType = BusinessType.SELECT) + @ApiOperation("用于根据产品类别获取hscode") + @PostMapping("/hsCodeQuery") + public String hsCodeQuery(@RequestBody ProductHsCodeQueryDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.HS_CODE_QUERY.getApiName()); + request.addApiParameter("country_code", reqDto.getCountry_code()); + request.addApiParameter("category_id", reqDto.getCategory_id()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //海外卖家获取正常信息 + //描述:API为海外卖家获取正常信息,如店铺ID、注册国家代码等。 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.solution.merchant.profile.get"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 海外卖家获取正常信息 + */ + @Log(title = "海外卖家获取正常信息", businessType = BusinessType.SELECT) + @ApiOperation("海外卖家获取正常信息") + @PostMapping("/merchantProfileGet") + public String merchantProfileGet(@RequestBody ProductMerchantProfileGetDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.MERCHANT_PROFILE_GET.getApiName()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //产品全量更新 + //产品全量更新的架构接口。该接口的QPS(Invoke per s)每个appkey限制为100个,每个卖家限制为50个。 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.solution.schema.product.full.update"); +request.addApiParameter("schema_full_update_request", "{\"category_id\":200000346,\"title_multi_language_list\":[{\"locale\":\"es_ES\",\"title\":\"test\"}],\"description_multi_language_list\":[{\"locale\":\"es_ES\",\"module_list\":[{\"type\":\"html\",\"html\":{\"content\":\"test\"}}]}],\"locale\":\"es_ES\",\"product_units_type\":\"100000000\",\"image_url_list\":[\"https://ae01.alicdn.com/kf/HTB1TZJRVkvoK1RjSZFwq6AiCFXa0.jpg_350x350.jpg\"],\"category_attributes\":{\"Brand Name\":{\"value\":\"200010868\"},\"Material\":{\"value\":[\"47\",\"49\"]},\"Clothing Length\":{\"value\":\"1876\"}},\"sku_info_list\":[{\"sku_code\":\"234\",\"inventory\":234,\"price\":23,\"discount_price\":12,\"sku_attributes\":{\"Size\":{\"value\":\"200000989\"},\"Color\":{\"alias\":\"32\",\"sku_image_url\":\"https://ae01.alicdn.com/kf/HTB1TZJRVkvoK1RjSZFwq6AiCFXa0.jpg_350x350.jpg\",\"value\":\"771\"}}}],\"inventory_deduction_strategy\":\"place_order_withhold\",\"package_weight\":234,\"package_length\":234,\"package_height\":234,\"package_width\":234,\"shipping_preparation_time\":3,\"shipping_template_id\":\"1000\",\"service_template_id\":\"0\",\"aliexpress_product_id\":32985684727}"); +request.addApiParameter("developer_features", "{\"source\":\"Lengow\"}"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 产品全量更新 + */ + @Log(title = "产品全量更新", businessType = BusinessType.SELECT) + @ApiOperation("产品全量更新") + @PostMapping("/schemaProductFullUpdate") + public String schemaProductFullUpdate(@RequestBody ProductSchemaProductFullUpdateDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.SCHEMA_PRODUCT_FULL_UPDATE.getApiName()); + request.addApiParameter("schema_full_update_request", reqDto.getSchema_full_update_request()); + request.addApiParameter("developer_features", reqDto.getDeveloper_features()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //获取产品架构 + //提供一种新的模式方式来发布产品。使用一对 API,一个用于获取架构,一个用于发布实例 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.solution.product.schema.get"); +request.addApiParameter("aliexpress_category_id", "200000346"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 获取产品架构 + */ + @Log(title = "获取产品架构", businessType = BusinessType.SELECT) + @ApiOperation("获取产品架构") + @PostMapping("/productSchemaGet") + public String productSchemaGet(@RequestBody ProductProductSchemaGetDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.PRODUCT_SCHEMA_GET.getApiName()); + request.addApiParameter("aliexpress_category_id", reqDto.getAliexpress_category_id()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //修改商品所引用的尺码模板 + //描述:修改商品所引用的尺码模板 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.postproduct.redefining.setsizechart"); +request.addApiParameter("channel_seller_id", "2671514005"); +request.addApiParameter("channel", "AE_GLOBAL"); +request.addApiParameter("product_id", "1005005100110934"); +request.addApiParameter("sizechart_id", "1000001533573010"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 修改商品所引用的尺码模板 + */ + @Log(title = "修改商品所引用的尺码模板", businessType = BusinessType.SELECT) + @ApiOperation("修改商品所引用的尺码模板") + @PostMapping("/postProductRedefiningSetSizeChart") + public String postProductRedefiningSetSizeChart(@RequestBody ProductPostProductRedefiningSetSizeChartDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.POST_PRODUCT_REDEFINING_SET_SIZE_CHART.getApiName()); + request.addApiParameter("channel_seller_id", reqDto.getChannel_seller_id()); + request.addApiParameter("channel", reqDto.getChannel()); + request.addApiParameter("product_id", reqDto.getProduct_id()); + request.addApiParameter("sizechart_id", reqDto.getSizechart_id()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //修改编辑商品信息 + //描述:商品编辑接口(修改任何一个商品信息时,必须将其他所有信息进行填写全面后再提交,否则会出现报错或数据丢失问题) + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.postproduct.redefining.editaeproduct"); +request.addApiParameter("ext_param", "{ \"custom_image\": { \"image\": { \"RU\": \"http://g01.a.alicdn.com/kf/HTB13GKLJXXXXXbYaXXXq6xXFXXXi.jpg;http://g02.a.alicdn.com/kf/HTB1DkaWJXXXXXb6XFXXq6xXFXXXp.jpg;http://g02.a.alicdn.com/kf/HTB1pMCQJXXXXXcvXVXXq6xXFXXXm.jpg;http://g03.a.alicdn.com/kf/HTB1QhORJXXXXXbiXVXXq6xXFXXXx.jpg;http://g02.a.alicdn.com/kf/HTB1q1aLJXXXXXcfaXXXq6xXFXXXv.jpg\", \"BR\": \"http://g01.a.alicdn.com/kf/HTB13GKLJXXXXXbYaXXXq6xXFXXXi.jpg;http://g02.a.alicdn.com/kf/HTB1DkaWJXXXXXb6XFXXq6xXFXXXp.jpg;http://g02.a.alicdn.com/kf/HTB1pMCQJXXXXXcvXVXXq6xXFXXXm.jpg;http://g03.a.alicdn.com/kf/HTB1QhORJXXXXXbiXVXXq6xXFXXXx.jpg;http://g02.a.alicdn.com/kf/HTB1q1aLJXXXXXcfaXXXq6xXFXXXv.jpg\", \"ES\": \"\" }, \"process_customized_image\": true }, \"vat_tags\": [{ \"sku_id\": \"200007763:201336100\", \"is_sku_vat_tag\": true }] }"); +request.addApiParameter("aeop_a_e_product", "{\"lot_num\":\"1\",\"aeop_ae_product_propertys\":[{\"attr_name_id\":\"200000043\",\"attr_name\":\"size\",\"attr_value_id\":\"493\",\"attr_value_unit\":\"0\",\"attr_value\":\"2 - 5 kg\",\"attr_value_end\":\"0\",\"attr_value_start\":\"0\"},{\"attr_name_id\":\"200000043\",\"attr_name\":\"size\",\"attr_value_id\":\"493\",\"attr_value_unit\":\"0\",\"attr_value\":\"2 - 5 kg\",\"attr_value_end\":\"0\",\"attr_value_start\":\"0\"}],\"coupon_end_date\":\"2017-06-28 20:22:01\",\"mobile_detail\":\"mobile Detail html block\",\"mode_size_chart_list\":[{\"mode_size\":\"2\",\"hips\":\"2.1\",\"waist\":\"2\",\"bust\":\"2\",\"height\":\"2\"},{\"mode_size\":\"2\",\"hips\":\"2.1\",\"waist\":\"2\",\"bust\":\"2\",\"height\":\"2\"}],\"subject\":\"knew odd\",\"ws_display\":\"expire_offline\",\"ws_valid_num\":\"30\",\"product_price\":\"10.11\",\"product_status_type\":\"onSelling\",\"aeop_national_quote_configuration\":{\"configuration_data\":\"[{\\\"shiptoCountry\\\":\\\"US\\\",\\\"percentage\\\":\\\"5\\\"},{\\\"shiptoCountry\\\":\\\"RU\\\",\\\"percentage\\\":\\\"-2\\\"}]\",\"configuration_type\":\"percentage\"},\"delivery_time\":\"3\",\"package_type\":\"false\",\"owner_member_seq\":\"1006680305\",\"base_unit\":\"1\",\"currency_code\":\"USD\",\"is_pack_sell\":\"false\",\"add_weight\":\"30.11\",\"coupon_start_date\":\"2017-06-28 20:22:01\",\"package_height\":\"40\",\"aeop_ae_product_s_k_us\":[{\"sku_discount_price\":\"12.05\",\"sku_price\":\"200.07\",\"ipm_sku_stock\":\"1111\",\"sku_stock\":\"false\",\"aeop_s_k_u_national_discount_price\":[{\"discount_price\":\"10.01\",\"shipto_country\":\"RU\"},{\"discount_price\":\"10.01\",\"shipto_country\":\"RU\"}],\"id\":\"\\\"200000182:193;200007763:201336100\\\"\",\"ean_code\":\"12345678\",\"aeop_s_k_u_property\":[{\"sku_image\":\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"property_value_definition_name\":\"pink\",\"property_value_id\":\"366\",\"sku_property_id\":\"14\",\"image_url_list\":[\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\"]},{\"sku_image\":\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"property_value_definition_name\":\"pink\",\"property_value_id\":\"366\",\"sku_property_id\":\"14\",\"image_url_list\":[\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\"]}],\"sku_code\":\"cfas00978\",\"currency_code\":\"USD;RUB\"},{\"sku_discount_price\":\"12.05\",\"sku_price\":\"200.07\",\"ipm_sku_stock\":\"1111\",\"sku_stock\":\"false\",\"aeop_s_k_u_national_discount_price\":[{\"discount_price\":\"10.01\",\"shipto_country\":\"RU\"},{\"discount_price\":\"10.01\",\"shipto_country\":\"RU\"}],\"id\":\"\\\"200000182:193;200007763:201336100\\\"\",\"ean_code\":\"12345678\",\"aeop_s_k_u_property\":[{\"sku_image\":\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"property_value_definition_name\":\"pink\",\"property_value_id\":\"366\",\"sku_property_id\":\"14\",\"image_url_list\":[\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\"]},{\"sku_image\":\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"property_value_definition_name\":\"pink\",\"property_value_id\":\"366\",\"sku_property_id\":\"14\",\"image_url_list\":[\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\"]}],\"sku_code\":\"cfas00978\",\"currency_code\":\"USD;RUB\"}],\"category_id\":\"200002101\",\"image_u_r_ls\":\"http://g01.a.alicdn.com/kf/HTB13GKLJXXXXXbYaXXXq6xXFXXXi.jpg;http://g02.a.alicdn.com/kf/HTB1DkaWJXXXXXb6XFXXq6xXFXXXp.jpg;http://g02.a.alicdn.com/kf/HTB1pMCQJXXXXXcvXVXXq6xXFXXXm.jpg;http://g03.a.alicdn.com/kf/HTB1QhORJXXXXXbiXVXXq6xXFXXXx.jpg;http://g02.a.alicdn.com/kf/HTB1q1aLJXXXXXcfaXXXq6xXFXXXv.jpg\",\"package_length\":\"20\",\"product_id\":\"1239273\",\"product_more_keywords2\":\"0\",\"reduce_strategy\":\"place_order_withhold\",\"product_more_keywords1\":\"0\",\"gross_weight\":\"50\",\"keyword\":\"0\",\"freight_template_id\":\"1\",\"ws_offline_date\":\"2017-06-28 20:22:01\",\"promise_template_id\":\"100\",\"summary\":\"0\",\"sizechart_id\":\"123\",\"aeop_a_e_multimedia\":{\"aeop_a_e_videos\":[{\"media_status\":\"approved\",\"media_type\":\"video\",\"ali_member_id\":\"1006680305\",\"media_id\":\"12345678\",\"poster_url\":\"http://img01.taobaocdn.com/bao/uploaded/TB1rNdGIVXXXXbTXFXXXXXXXXXX.jpg\"},{\"media_status\":\"approved\",\"media_type\":\"video\",\"ali_member_id\":\"1006680305\",\"media_id\":\"12345678\",\"poster_url\":\"http://img01.taobaocdn.com/bao/uploaded/TB1rNdGIVXXXXbTXFXXXXXXXXXX.jpg\"}]},\"src\":\"isv\",\"bulk_order\":\"5\",\"owner_member_id\":\"aliqatest01\",\"product_unit\":\"100000000\",\"package_width\":\"30\",\"add_unit\":\"2\",\"group_id\":\"123\",\"bulk_discount\":\"90\",\"is_image_dynamic\":\"false\",\"detail\":\"detail html block\"}"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 修改编辑商品信息 + */ + @Log(title = "修改编辑商品信息", businessType = BusinessType.SELECT) + @ApiOperation("修改编辑商品信息") + @PostMapping("/postProductRedefiningEditAeProduct") + public String postProductRedefiningEditAeProduct(@RequestBody ProductPostProductRedefiningEditAeProductDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.POST_PRODUCT_REDEFINING_EDIT_AE_PRODUCT.getApiName()); + request.addApiParameter("ext_param", reqDto.getExt_param()); + request.addApiParameter("aeop_a_e_product", reqDto.getAeop_a_e_product()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //分页查询待优化商品列表 + //描述:分页查询待优化商品列表 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.product.diagnosis.pageQueryProblem"); +request.addApiParameter("operate_status", "0"); +request.addApiParameter("problem_type_list", "repeat_repost, lack_white_image"); +request.addApiParameter("page_size", "10"); +request.addApiParameter("current_page", "1"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 分页查询待优化商品列表 + */ + @Log(title = "分页查询待优化商品列表", businessType = BusinessType.SELECT) + @ApiOperation("分页查询待优化商品列表") + @PostMapping("/productDiagnosisPageQueryProblem") + public String productDiagnosisPageQueryProblem(@RequestBody ProductProductDiagnosisPageQueryProblemDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.PRODUCT_DIAGNOSIS_PAGE_QUERY_PROBLEM.getApiName()); + request.addApiParameter("operate_status", reqDto.getOperate_status()); + request.addApiParameter("problem_type_list", reqDto.getProblem_type_list()); + request.addApiParameter("page_size", reqDto.getPage_size()); + request.addApiParameter("current_page", reqDto.getCurrent_page()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //创建产品分组 + //描述:创建一个新的产品分组.一个用户的一级分组最多有10个,二级分组最多有10个。 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.postproduct.redefining.createproductgroup"); +request.addApiParameter("name", "foo"); +request.addApiParameter("parent_id", "100"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 创建产品分组 + */ + @Log(title = "创建产品分组", businessType = BusinessType.SELECT) + @ApiOperation("创建产品分组") + @PostMapping("/postProductRedefiningCreateProductGroup") + public String postProductRedefiningCreateProductGroup(@RequestBody ProductPostProductRedefiningCreateProductGroupDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.POST_PRODUCT_REDEFINING_CREATE_PRODUCT_GROUP.getApiName()); + request.addApiParameter("name", reqDto.getName()); + request.addApiParameter("parent_id", reqDto.getParent_id()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //发布产品信息 + //描述:post产品并且返回post成功后的产品的id + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.postproduct.redefining.postaeproduct"); +request.addApiParameter("ext_param", "{ \"custom_image\": { \"image\": { \"RU\": \"http://g01.a.alicdn.com/kf/HTB13GKLJXXXXXbYaXXXq6xXFXXXi.jpg;http://g02.a.alicdn.com/kf/HTB1DkaWJXXXXXb6XFXXq6xXFXXXp.jpg;http://g02.a.alicdn.com/kf/HTB1pMCQJXXXXXcvXVXXq6xXFXXXm.jpg;http://g03.a.alicdn.com/kf/HTB1QhORJXXXXXbiXVXXq6xXFXXXx.jpg;http://g02.a.alicdn.com/kf/HTB1q1aLJXXXXXcfaXXXq6xXFXXXv.jpg\", \"BR\": \"http://g01.a.alicdn.com/kf/HTB13GKLJXXXXXbYaXXXq6xXFXXXi.jpg;http://g02.a.alicdn.com/kf/HTB1DkaWJXXXXXb6XFXXq6xXFXXXp.jpg;http://g02.a.alicdn.com/kf/HTB1pMCQJXXXXXcvXVXXq6xXFXXXm.jpg;http://g03.a.alicdn.com/kf/HTB1QhORJXXXXXbiXVXXq6xXFXXXx.jpg;http://g02.a.alicdn.com/kf/HTB1q1aLJXXXXXcfaXXXq6xXFXXXv.jpg\", \"ES\": \"\" }, \"process_customized_image\": true }, \"vat_tags\": [{ \"sku_id\": \"200007763:201336100\", \"is_sku_vat_tag\": true }] }"); +request.addApiParameter("aeop_a_e_product", "{\"lot_num\":\"1\",\"aeop_ae_product_propertys\":[{\"attr_name_id\":\"0\",\"attr_name\":\"0\",\"attr_value_id\":\"0\",\"attr_value_unit\":\"0\",\"attr_value\":\"0\",\"attr_value_end\":\"0\",\"attr_value_start\":\"0\"},{\"attr_name_id\":\"0\",\"attr_name\":\"0\",\"attr_value_id\":\"0\",\"attr_value_unit\":\"0\",\"attr_value\":\"0\",\"attr_value_end\":\"0\",\"attr_value_start\":\"0\"}],\"coupon_end_date\":\"2017-06-28 20:22:01\",\"mobile_detail\":\"mobile Detail html block\",\"mode_size_chart_list\":[{\"mode_size\":\"R\",\"hips\":\"2.3\",\"waist\":\"2\",\"bust\":\"2\",\"height\":\"2\"},{\"mode_size\":\"R\",\"hips\":\"2.3\",\"waist\":\"2\",\"bust\":\"2\",\"height\":\"2\"}],\"subject\":\"knew odd of test\",\"ws_display\":\"0\",\"ws_valid_num\":\"30\",\"aeop_national_quote_configuration\":{\"configuration_data\":\"[{\\\"shiptoCountry\\\":\\\"US\\\",\\\"percentage\\\":\\\"5\\\"},{\\\"shiptoCountry\\\":\\\"RU\\\",\\\"percentage\\\":\\\"-2\\\"}]\",\"configuration_type\":\"percentage, relative\"},\"delivery_time\":\"7\",\"product_price\":\"11.00\",\"product_status_type\":\"0\",\"owner_member_seq\":\"0\",\"package_type\":\"false\",\"base_unit\":\"1\",\"currency_code\":\"USD;RUB\",\"is_pack_sell\":\"false\",\"coupon_start_date\":\"2017-06-28 20:22:01\",\"package_height\":\"40\",\"add_weight\":\"3.03\",\"category_id\":\"200002101\",\"aeop_ae_product_s_k_us\":[{\"sku_discount_price\":\"10.01\",\"sku_price\":\"0\",\"ipm_sku_stock\":\"0\",\"sku_stock\":\"true\",\"aeop_s_k_u_national_discount_price\":[{\"discount_price\":\"9.09\",\"shipto_country\":\"RU\"},{\"discount_price\":\"9.09\",\"shipto_country\":\"RU\"}],\"id\":\"0\",\"ean_code\":\"12345678\",\"aeop_s_k_u_property\":[{\"sku_image\":\"0\",\"property_value_definition_name\":\"0\",\"property_value_id\":\"0\",\"sku_property_id\":\"0\",\"image_url_list\":[\"http://dda/a.jpg\",\"http://dda/a.jpg\"]},{\"sku_image\":\"0\",\"property_value_definition_name\":\"0\",\"property_value_id\":\"0\",\"sku_property_id\":\"0\",\"image_url_list\":[\"http://dda/a.jpg\",\"http://dda/a.jpg\"]}],\"sku_code\":\"0\",\"currency_code\":\"USD;RUB\"},{\"sku_discount_price\":\"10.01\",\"sku_price\":\"0\",\"ipm_sku_stock\":\"0\",\"sku_stock\":\"true\",\"aeop_s_k_u_national_discount_price\":[{\"discount_price\":\"9.09\",\"shipto_country\":\"RU\"},{\"discount_price\":\"9.09\",\"shipto_country\":\"RU\"}],\"id\":\"0\",\"ean_code\":\"12345678\",\"aeop_s_k_u_property\":[{\"sku_image\":\"0\",\"property_value_definition_name\":\"0\",\"property_value_id\":\"0\",\"sku_property_id\":\"0\",\"image_url_list\":[\"http://dda/a.jpg\",\"http://dda/a.jpg\"]},{\"sku_image\":\"0\",\"property_value_definition_name\":\"0\",\"property_value_id\":\"0\",\"sku_property_id\":\"0\",\"image_url_list\":[\"http://dda/a.jpg\",\"http://dda/a.jpg\"]}],\"sku_code\":\"0\",\"currency_code\":\"USD;RUB\"}],\"image_u_r_ls\":\"http://g01.a.alicdn.com/kf/HTB13GKLJXXXXXbYaXXXq6xXFXXXi.jpg;http://g02.a.alicdn.com/kf/HTB1DkaWJXXXXXb6XFXXq6xXFXXXp.jpg;http://g02.a.alicdn.com/kf/HTB1pMCQJXXXXXcvXVXXq6xXFXXXm.jpg;http://g03.a.alicdn.com/kf/HTB1QhORJXXXXXbiXVXXq6xXFXXXx.jpg;http://g02.a.alicdn.com/kf/HTB1q1aLJXXXXXcfaXXXq6xXFXXXv.jpg\",\"package_length\":\"20\",\"product_id\":\"0\",\"product_more_keywords2\":\"0\",\"reduce_strategy\":\"place_order_withhold\u6216payment_success_deduct\",\"product_more_keywords1\":\"0\",\"gross_weight\":\"10.020\",\"keyword\":\"0\",\"freight_template_id\":\"1\",\"ws_offline_date\":\"2017-06-28 20:22:01\",\"promise_template_id\":\"100\",\"summary\":\"0\",\"sizechart_id\":\"100\",\"aeop_a_e_multimedia\":{\"aeop_a_e_videos\":[{\"media_status\":\"0\",\"media_type\":\"0\",\"ali_member_id\":\"0\",\"media_id\":\"0\",\"poster_url\":\"0\"},{\"media_status\":\"0\",\"media_type\":\"0\",\"ali_member_id\":\"0\",\"media_id\":\"0\",\"poster_url\":\"0\"}]},\"src\":\"0\",\"bulk_order\":\"5\",\"owner_member_id\":\"0\",\"product_unit\":\"100000000\",\"package_width\":\"30\",\"group_id\":\"124\",\"add_unit\":\"2\",\"bulk_discount\":\"90\",\"is_image_dynamic\":\"false\",\"detail\":\"detail stuff here\"}"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 发布产品信息 + */ + @Log(title = "发布产品信息", businessType = BusinessType.SELECT) + @ApiOperation("发布产品信息") + @PostMapping("/postProductRedefiningPostAeProduct") + public String postProductRedefiningPostAeProduct(@RequestBody ProductPostProductRedefiningPostAeProductDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.POST_PRODUCT_REDEFINING_POST_AE_PRODUCT.getApiName()); + request.addApiParameter("ext_param", reqDto.getExt_param()); + request.addApiParameter("aeop_a_e_product", reqDto.getAeop_a_e_product()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //发布多语言产品(试用) + //描述:多语言原发接口。卖家可以通过这个接口发布一个多语言商品。一次只能发布一种多语言商品,例如:俄文。 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.postproduct.redefining.postmultilanguageaeproduct"); +request.addApiParameter("ext_param", "{ \"custom_image\": { \"image\": { \"RU\": \"http://g01.a.alicdn.com/kf/HTB13GKLJXXXXXbYaXXXq6xXFXXXi.jpg;http://g02.a.alicdn.com/kf/HTB1DkaWJXXXXXb6XFXXq6xXFXXXp.jpg;http://g02.a.alicdn.com/kf/HTB1pMCQJXXXXXcvXVXXq6xXFXXXm.jpg;http://g03.a.alicdn.com/kf/HTB1QhORJXXXXXbiXVXXq6xXFXXXx.jpg;http://g02.a.alicdn.com/kf/HTB1q1aLJXXXXXcfaXXXq6xXFXXXv.jpg\", \"BR\": \"http://g01.a.alicdn.com/kf/HTB13GKLJXXXXXbYaXXXq6xXFXXXi.jpg;http://g02.a.alicdn.com/kf/HTB1DkaWJXXXXXb6XFXXq6xXFXXXp.jpg;http://g02.a.alicdn.com/kf/HTB1pMCQJXXXXXcvXVXXq6xXFXXXm.jpg;http://g03.a.alicdn.com/kf/HTB1QhORJXXXXXbiXVXXq6xXFXXXx.jpg;http://g02.a.alicdn.com/kf/HTB1q1aLJXXXXXcfaXXXq6xXFXXXv.jpg\", \"ES\": \"\" }, \"process_customized_image\": true }, \"vat_tags\": [{ \"sku_id\": \"200007763:201336100\", \"is_sku_vat_tag\": true }] }"); +request.addApiParameter("product", "{\"lot_num\":\"10\",\"coupon_end_date\":\"2017-06-28 20:22:01\",\"mobile_detail\":\"0\",\"subject\":\"knew odd of test\",\"use_auto_trans\":\"true\",\"delivery_time\":\"7\",\"product_price\":\"11.00\",\"owner_member_seq\":\"1006680305\",\"package_type\":\"false\",\"base_unit\":\"1\",\"package_height\":\"40\",\"add_weight\":\"3.03\",\"image_u_r_ls\":\"http://g01.a.alicdn.com/kf/HTB13GKLJXXXXXbYaXXXq6xXFXXXi.jpg;http://g02.a.alicdn.com/kf/HTB1DkaWJXXXXXb6XFXXq6xXFXXXp.jpg;http://g02.a.alicdn.com/kf/HTB1pMCQJXXXXXcvXVXXq6xXFXXXm.jpg;http://g03.a.alicdn.com/kf/HTB1QhORJXXXXXbiXVXXq6xXFXXXx.jpg;http://g02.a.alicdn.com/kf/HTB1q1aLJXXXXXcfaXXXq6xXFXXXv.jpg\",\"product_id\":\"1234\",\"product_more_keywords2\":\"0\",\"product_more_keywords1\":\"0\",\"gross_weight\":\"10.020\",\"keyword\":\"0\",\"ws_offline_date\":\"2017-06-28 20:22:01\",\"promise_template_id\":\"100\",\"sizechart_id\":\"100\",\"aeop_a_e_multimedia\":{\"aeop_a_e_videos\":[{\"media_status\":\"approved\",\"media_type\":\"video\",\"ali_member_id\":\"1006680305\",\"media_id\":\"12345678\",\"poster_url\":\"http://img01.taobaocdn.com/bao/uploaded/TB1rNdGIVXXXXbTXFXXXXXXXXXX.jpg\"},{\"media_status\":\"approved\",\"media_type\":\"video\",\"ali_member_id\":\"1006680305\",\"media_id\":\"12345678\",\"poster_url\":\"http://img01.taobaocdn.com/bao/uploaded/TB1rNdGIVXXXXbTXFXXXXXXXXXX.jpg\"}]},\"multilanguage_detail\":\"\u041C\u043D\u043E\u0433\u043E\u044F\u0437\u044B\u0447\u043D\u044B\u0439 \u043F\u043E\u0434\u0440\u043E\u0431\u043D\u043E\u0435 \u043E\u043F\u0438\u0441\u0430\u043D\u0438\u0435\",\"product_unit\":\"100000000\",\"add_unit\":\"2\",\"detail\":\"\\u003cul\\u003e \\u003c/ul\\u003e\",\"aeop_ae_product_propertys\":[{\"attr_name_id\":\"0\",\"attr_name\":\"0\",\"attr_value_id\":\"0\",\"attr_value_unit\":\"0\",\"attr_value\":\"2 - 5 kg\",\"attr_value_end\":\"0\",\"attr_value_start\":\"0\"},{\"attr_name_id\":\"0\",\"attr_name\":\"0\",\"attr_value_id\":\"0\",\"attr_value_unit\":\"0\",\"attr_value\":\"2 - 5 kg\",\"attr_value_end\":\"0\",\"attr_value_start\":\"0\"}],\"ws_display\":\"expire_offline\",\"ws_valid_num\":\"30\",\"aeop_national_quote_configuration\":{\"configuration_data\":\"[{\\\"shiptoCountry\\\":\\\"US\\\",\\\"percentage\\\":\\\"5\\\"},{\\\"shiptoCountry\\\":\\\"RU\\\",\\\"percentage\\\":\\\"-2\\\"}]\",\"configuration_type\":\"percentage\"},\"product_status_type\":\"onSelling\",\"currency_code\":\"USD;RUB\",\"is_pack_sell\":\"false\",\"coupon_start_date\":\"2017-06-28 20:22:01\",\"category_id\":\"200002101\",\"aeop_ae_product_s_k_us\":[{\"sku_discount_price\":\"10.01\",\"sku_price\":\"11.11\",\"ipm_sku_stock\":\"1234\",\"sku_stock\":\"false\",\"aeop_s_k_u_national_discount_price\":[{\"discount_price\":\"9.05\",\"shipto_country\":\"RU\"},{\"discount_price\":\"9.05\",\"shipto_country\":\"RU\"}],\"id\":\"\\\"200000182:193;200007763:201336100\\\"\",\"aeop_s_k_u_property\":[{\"sku_image\":\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"property_value_definition_name\":\"pink\",\"sku_property_id\":\"14\",\"property_value_id\":\"366\"},{\"sku_image\":\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"property_value_definition_name\":\"pink\",\"sku_property_id\":\"14\",\"property_value_id\":\"366\"}],\"sku_code\":\"cfas00978\",\"barcode\":\"0\",\"currency_code\":\"USD\"},{\"sku_discount_price\":\"10.01\",\"sku_price\":\"11.11\",\"ipm_sku_stock\":\"1234\",\"sku_stock\":\"false\",\"aeop_s_k_u_national_discount_price\":[{\"discount_price\":\"9.05\",\"shipto_country\":\"RU\"},{\"discount_price\":\"9.05\",\"shipto_country\":\"RU\"}],\"id\":\"\\\"200000182:193;200007763:201336100\\\"\",\"aeop_s_k_u_property\":[{\"sku_image\":\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"property_value_definition_name\":\"pink\",\"sku_property_id\":\"14\",\"property_value_id\":\"366\"},{\"sku_image\":\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"property_value_definition_name\":\"pink\",\"sku_property_id\":\"14\",\"property_value_id\":\"366\"}],\"sku_code\":\"cfas00978\",\"barcode\":\"0\",\"currency_code\":\"USD\"}],\"locale_name\":\"ru_RU\",\"package_length\":\"20\",\"reduce_strategy\":\"place_order_withhold\u6216payment_success_deduct\",\"freight_template_id\":\"1\",\"summary\":\"0\",\"src\":\"isv\",\"bulk_order\":\"5\",\"owner_member_id\":\"aliqatest01\",\"multilanguage_subject\":\"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u0438\u0445 \u044F\u0437\u044B\u043A\u043E\u0432\",\"package_width\":\"30\",\"group_id\":\"124\",\"bulk_discount\":\"90\",\"is_image_dynamic\":\"false\"}"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 发布多语言产品(试用) + */ + @Log(title = "发布多语言产品(试用)", businessType = BusinessType.SELECT) + @ApiOperation("发布多语言产品(试用)") + @PostMapping("/postProductRedefiningPostMultiLanguageAeProduct") + public String postProductRedefiningPostMultiLanguageAeProduct(@RequestBody ProductPostProductRedefiningPostMultiLanguageAeProductDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.POST_PRODUCT_REDEFINING_POST_MULTI_LANGUAGE_AE_PRODUCT.getApiName()); + request.addApiParameter("ext_param", reqDto.getExt_param()); + request.addApiParameter("product", reqDto.getProduct()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //商品上架 + //述:上架一个或者多个商品,待上架的产品ID通过参数productIds指定,产品ID之间使用英文分号(;)隔开, 最多一次只能上架50个商品 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.postproduct.redefining.onlineaeproduct"); +request.addApiParameter("product_ids", "109827;109828"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 商品上架 + */ + @Log(title = "商品上架", businessType = BusinessType.SELECT) + @ApiOperation("商品上架") + @PostMapping("/postProductRedefiningOnlineAeProduct") + public String postProductRedefiningOnlineAeProduct(@RequestBody ProductPostProductRedefiningOnlineAeProductDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.POST_PRODUCT_REDEFINING_ONLINE_AE_PRODUCT.getApiName()); + request.addApiParameter("product_ids", reqDto.getProduct_ids()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //商品下架 + //描述:商品下架接口。需要下架的商品的通过productIds参数指定,多个商品之间用英文分号隔开。 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.postproduct.redefining.offlineaeproduct"); +request.addApiParameter("edit_reason", "product_diagnosis"); +request.addApiParameter("product_ids", "109827;109828"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 商品下架 + */ + @Log(title = "商品下架", businessType = BusinessType.SELECT) + @ApiOperation("商品下架") + @PostMapping("/postProductRedefiningOfflineAeProduct") + public String postProductRedefiningOfflineAeProduct(@RequestBody ProductPostProductRedefiningOfflineAeProductDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.POST_PRODUCT_REDEFINING_OFFLINE_AE_PRODUCT.getApiName()); + request.addApiParameter("edit_reason", reqDto.getEdit_reason()); + request.addApiParameter("product_ids", reqDto.getProduct_ids()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //商品分组设置 + //描述:设置单个产品的产品分组信息,最多设置三十个分组。 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.postproduct.redefining.setgroups"); +request.addApiParameter("product_id", "1005005270241178"); +request.addApiParameter("group_ids", "254562048"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 商品分组设置 + */ + @Log(title = "商品分组设置", businessType = BusinessType.SELECT) + @ApiOperation("商品分组设置") + @PostMapping("/postProductRedefiningSetGroups") + public String postProductRedefiningSetGroups(@RequestBody ProductPostProductRedefiningSetGroupsDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.POST_PRODUCT_REDEFINING_SET_GROUPS.getApiName()); + request.addApiParameter("product_id", reqDto.getProduct_id()); + request.addApiParameter("group_ids", reqDto.getGroup_ids()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //商品列表查询接口 + //描述:商品列表查询接口。主账号可查询所有商品,子账号只可查询自身所属商品。 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.postproduct.redefining.findproductinfolistquery"); +request.addApiParameter("aeop_a_e_product_list_query", "{\"gmt_modified_start\":\"2012-01-01 12:13:14\",\"gmt_modified_end\":\"2012-01-01 12:13:14\",\"off_line_time\":\"7\",\"gmt_create_start\":\"2012-01-01 12:13:14\",\"subject\":\"knew odd\",\"have_national_quote\":\"n\",\"ws_display\":\"expire_offline\",\"product_status_type\":\"onSelling\",\"owner_member_id\":\"123\",\"gmt_create_end\":\"2012-01-01 12:13:14\",\"group_id\":\"1234\",\"product_id\":\"123\",\"excepted_product_ids\":[\"[32962333569,32813963253]\",\"[32962333569,32813963253]\"],\"current_page\":\"2\",\"page_size\":\"30\"}"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 商品列表查询接口 + */ + @Log(title = "商品列表查询接口", businessType = BusinessType.SELECT) + @ApiOperation("商品列表查询接口") + @PostMapping("/postProductRedefiningFindProductInfoListQuery") + public String postProductRedefiningFindProductInfoListQuery(@RequestBody ProductPostProductRedefiningFindProductInfoListQueryDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.POST_PRODUCT_REDEFINING_FIND_PRODUCT_INFO_LIST_QUERY.getApiName()); + request.addApiParameter("aeop_a_e_product_list_query", reqDto.getAeop_a_e_product_list_query()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //商品删除接口 + //描述:商品删除接口,注意:删除的商品不能恢复,请慎重删除 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.offer.product.delete"); +request.addApiParameter("product_id", "1005004617892753"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 商品删除接口 + */ + @Log(title = "商品删除接口", businessType = BusinessType.SELECT) + @ApiOperation("商品删除接口") + @PostMapping("/productDelete") + public String productDelete(@RequestBody ProductProductDeleteDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.PRODUCT_DELETE.getApiName()); + request.addApiParameter("product_id", reqDto.getProduct_id()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + //商品发布新接口 + //描述:post产品并且返回post成功后的产品的id + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.offer.product.post"); +request.addApiParameter("aeop_a_e_product", "{\"lot_num\":\"1\",\"aeop_ae_product_propertys\":[{\"attr_name_id\":\"14\",\"attr_name\":\"color\",\"attr_value_id\":\"12343444\",\"attr_value_unit\":\"0\",\"attr_value\":\"white\",\"attr_value_end\":\"2000561\",\"attr_value_start\":\"2000568\"},{\"attr_name_id\":\"14\",\"attr_name\":\"color\",\"attr_value_id\":\"12343444\",\"attr_value_unit\":\"0\",\"attr_value\":\"white\",\"attr_value_end\":\"2000561\",\"attr_value_start\":\"2000568\"}],\"mode_size_chart_list\":[{\"mode_size\":\"R\",\"hips\":\"2.1\",\"waist\":\"2\",\"bust\":\"2\",\"height\":\"2\"},{\"mode_size\":\"R\",\"hips\":\"2.1\",\"waist\":\"2\",\"bust\":\"2\",\"height\":\"2\"}],\"ws_valid_num\":\"30\",\"aeop_national_quote_configuration\":{\"configuration_data\":\"[{\\\"absoluteQuoteMap\\\":{\\\"\\\":1.0},\\\"shiptoCountry\\\":\\\"RU\\\"},{\\\"absoluteQuoteMap\\\":{\\\"\\\":2.0},\\\"shiptoCountry\\\":\\\"US\\\"}]\",\"configuration_type\":\"absolute\"},\"delivery_time\":\"3\",\"product_price\":\"11.00\",\"detail_source_list\":[{\"mobile_detail\":\"detail stuff here\",\"locale\":\"en_US\",\"web_detail\":\"detail stuff here\"},{\"mobile_detail\":\"detail stuff here\",\"locale\":\"en_US\",\"web_detail\":\"detail stuff here\"}],\"locale\":\"en_US\",\"package_type\":\"false\",\"base_unit\":\"1\",\"currency_code\":\"USD;RUB\",\"is_pack_sell\":\"false\",\"add_weight\":\"3.03\",\"package_height\":\"40\",\"aeop_ae_product_s_k_us\":[{\"sku_discount_price\":\"10.01\",\"ipm_sku_stock\":\"10\",\"aeop_s_k_u_national_discount_price\":[{\"discount_price\":\"9.09\",\"shipto_country\":\"RU\"},{\"discount_price\":\"9.09\",\"shipto_country\":\"RU\"}],\"ean_code\":\"12345678\",\"currency_code\":\"USD;RUB\",\"package_width\":\"3\",\"package_height\":\"2\",\"sku_price\":\"9.05\",\"package_length\":\"4\",\"aeop_s_k_u_property\":[{\"sku_image\":\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"property_value_definition_name\":\"\u6807\u51C6\u5957\u9910\",\"property_value_id\":\"23123444\",\"sku_property_id\":\"120001\",\"image_url_list\":[\"[http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg]\",\"[http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg]\"]},{\"sku_image\":\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"property_value_definition_name\":\"\u6807\u51C6\u5957\u9910\",\"property_value_id\":\"23123444\",\"sku_property_id\":\"120001\",\"image_url_list\":[\"[http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg]\",\"[http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg]\"]}],\"gross_weight\":\"1\",\"barcode\":\"AEfgsdg334\",\"sku_code\":\"AE235de2\"},{\"sku_discount_price\":\"10.01\",\"ipm_sku_stock\":\"10\",\"aeop_s_k_u_national_discount_price\":[{\"discount_price\":\"9.09\",\"shipto_country\":\"RU\"},{\"discount_price\":\"9.09\",\"shipto_country\":\"RU\"}],\"ean_code\":\"12345678\",\"currency_code\":\"USD;RUB\",\"package_width\":\"3\",\"package_height\":\"2\",\"sku_price\":\"9.05\",\"package_length\":\"4\",\"aeop_s_k_u_property\":[{\"sku_image\":\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"property_value_definition_name\":\"\u6807\u51C6\u5957\u9910\",\"property_value_id\":\"23123444\",\"sku_property_id\":\"120001\",\"image_url_list\":[\"[http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg]\",\"[http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg]\"]},{\"sku_image\":\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"property_value_definition_name\":\"\u6807\u51C6\u5957\u9910\",\"property_value_id\":\"23123444\",\"sku_property_id\":\"120001\",\"image_url_list\":[\"[http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg]\",\"[http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg]\"]}],\"gross_weight\":\"1\",\"barcode\":\"AEfgsdg334\",\"sku_code\":\"AE235de2\"}],\"category_id\":\"200002101\",\"subject_list\":[{\"locale\":\"en_US\",\"value\":\"title content here\"},{\"locale\":\"en_US\",\"value\":\"title content here\"}],\"image_u_r_ls\":\"http://g01.a.alicdn.com/kf/HTB13GKLJXXXXXbYaXXXq6xXFXXXi.jpg;http://g02.a.alicdn.com/kf/HTB1DkaWJXXXXXb6XFXXq6xXFXXXp.jpg;http://g02.a.alicdn.com/kf/HTB1pMCQJXXXXXcvXVXXq6xXFXXXm.jpg;http://g03.a.alicdn.com/kf/HTB1QhORJXXXXXbiXVXXq6xXFXXXx.jpg;http://g02.a.alicdn.com/kf/HTB1q1aLJXXXXXcfaXXXq6xXFXXXv.jpg\",\"package_length\":\"20\",\"reduce_strategy\":\"place_order_withhold\u6216payment_success_deduct\",\"gross_weight\":\"10.020\",\"freight_template_id\":\"1000\",\"promise_template_id\":\"100\",\"msr_eu_id\":\"12\",\"aeop_a_e_multimedia\":{\"aeop_a_e_videos\":[{\"media_type\":\"video\",\"media_id\":\"23423423\",\"poster_url\":\"http://img01.taobaocdn.com/bao/uploaded/TB1rNdGIVXXXXbTXFXXXXXXXXXX.jpg\"},{\"media_type\":\"video\",\"media_id\":\"23423423\",\"poster_url\":\"http://img01.taobaocdn.com/bao/uploaded/TB1rNdGIVXXXXbTXFXXXXXXXXXX.jpg\"}]},\"sizechart_id\":\"100\",\"aeop_qualification_struct_list\":[{\"type\":\"image\",\"value\":\"https://ae01.alicdn.com/kf/S23b9cb05c8e844648d48324f23f0c123T.jpeg\",\"key\":\"item_EU_CE_certificate\"},{\"type\":\"image\",\"value\":\"https://ae01.alicdn.com/kf/S23b9cb05c8e844648d48324f23f0c123T.jpeg\",\"key\":\"item_EU_CE_certificate\"}],\"bulk_order\":\"5\",\"product_unit\":\"100000000\",\"market_images\":[{\"url\":\"https://ae01.alicdn.com/kf/HTB1C72NbcvrXXX.jpg\",\"image_type\":\"1\"},{\"url\":\"https://ae01.alicdn.com/kf/HTB1C72NbcvrXXX.jpg\",\"image_type\":\"1\"}],\"package_width\":\"30\",\"add_unit\":\"2\",\"group_id\":\"124\",\"bulk_discount\":\"90\",\"ext_param\":\"{ \\\"category_forecast\\\":\\\"100000015;100000014;100000013;100000012;100000011;100000010\\\" }\"}"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 商品发布新接口 + */ + @Log(title = "商品发布新接口", businessType = BusinessType.SELECT) + @ApiOperation("商品发布新接口") + @PostMapping("/productPostNew") + public String productPostNew(@RequestBody ProductProductPostNewDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.PRODUCT_POST_NEW.getApiName()); + request.addApiParameter("aeop_a_e_product", reqDto.getAeop_a_e_product()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //商品新的编辑接口 + //描述:商品编辑接口(修改任何一个商品信息时,必须将其他所有信息进行填写全面后再提交,否则会出现报错情况出现。)营销图功能上线,增加字段 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.offer.product.edit"); +request.addApiParameter("aeop_a_e_product", "{\"lot_num\":\"1\",\"aeop_ae_product_propertys\":[{\"attr_name_id\":\"200000043\",\"attr_name\":\"size\",\"attr_value_id\":\"493\",\"attr_value_unit\":\"0\",\"attr_value\":\"2 - 5 kg\",\"attr_value_end\":\"0\",\"attr_value_start\":\"0\"},{\"attr_name_id\":\"200000043\",\"attr_name\":\"size\",\"attr_value_id\":\"493\",\"attr_value_unit\":\"0\",\"attr_value\":\"2 - 5 kg\",\"attr_value_end\":\"0\",\"attr_value_start\":\"0\"}],\"mode_size_chart_list\":[{\"mode_size\":\"2\",\"hips\":\"2\",\"bust\":\"2\",\"waist\":\"2\",\"height\":\"2\"},{\"mode_size\":\"2\",\"hips\":\"2\",\"bust\":\"2\",\"waist\":\"2\",\"height\":\"2\"}],\"ws_valid_num\":\"30\",\"delivery_time\":\"3\",\"product_price\":\"10.11\",\"aeop_national_quote_configuration\":{\"configuration_data\":\"[{\\\"absoluteQuoteMap\\\":{\\\"\\\":1.0},\\\"shiptoCountry\\\":\\\"RU\\\"},{\\\"absoluteQuoteMap\\\":{\\\"\\\":2.0},\\\"shiptoCountry\\\":\\\"US\\\"}]\",\"configuration_type\":\"absolute\"},\"package_type\":\"false\",\"locale\":\"en_US\",\"detail_source_list\":[{\"mobile_detail\":\"{\\\\\\\"version\\\\\\\":\\\\\\\"2.0.0\\\\\\\",\\\\\\\"moduleList\\\\\\\":[{\\\\\\\"type\\\\\\\":\\\\\\\"text\\\\\\\",\\\\\\\"texts\\\\\\\":[{\\\\\\\"content\\\\\\\":\\\\\\\"Thisistitle\\\\\\\",\\\\\\\"class\\\\\\\":\\\\\\\"title\\\\\\\"},{\\\\\\\"content\\\\\\\":\\\\\\\"Thisisdescription\\\\\\\",\\\\\\\"class\\\\\\\":\\\\\\\"body\\\\\\\"}]}]}\",\"web_detail\":\"{\\\\\\\"version\\\\\\\":\\\\\\\"2.0.0\\\\\\\",\\\\\\\"moduleList\\\\\\\":[{\\\\\\\"type\\\\\\\":\\\\\\\"text\\\\\\\",\\\\\\\"texts\\\\\\\":[{\\\\\\\"content\\\\\\\":\\\\\\\"Thisistitle\\\\\\\",\\\\\\\"class\\\\\\\":\\\\\\\"title\\\\\\\"},{\\\\\\\"content\\\\\\\":\\\\\\\"Thisisdescription\\\\\\\",\\\\\\\"class\\\\\\\":\\\\\\\"body\\\\\\\"}]}]}\",\"locale\":\"en_US\"},{\"mobile_detail\":\"{\\\\\\\"version\\\\\\\":\\\\\\\"2.0.0\\\\\\\",\\\\\\\"moduleList\\\\\\\":[{\\\\\\\"type\\\\\\\":\\\\\\\"text\\\\\\\",\\\\\\\"texts\\\\\\\":[{\\\\\\\"content\\\\\\\":\\\\\\\"Thisistitle\\\\\\\",\\\\\\\"class\\\\\\\":\\\\\\\"title\\\\\\\"},{\\\\\\\"content\\\\\\\":\\\\\\\"Thisisdescription\\\\\\\",\\\\\\\"class\\\\\\\":\\\\\\\"body\\\\\\\"}]}]}\",\"web_detail\":\"{\\\\\\\"version\\\\\\\":\\\\\\\"2.0.0\\\\\\\",\\\\\\\"moduleList\\\\\\\":[{\\\\\\\"type\\\\\\\":\\\\\\\"text\\\\\\\",\\\\\\\"texts\\\\\\\":[{\\\\\\\"content\\\\\\\":\\\\\\\"Thisistitle\\\\\\\",\\\\\\\"class\\\\\\\":\\\\\\\"title\\\\\\\"},{\\\\\\\"content\\\\\\\":\\\\\\\"Thisisdescription\\\\\\\",\\\\\\\"class\\\\\\\":\\\\\\\"body\\\\\\\"}]}]}\",\"locale\":\"en_US\"}],\"currency_code\":\"USD;RUB\",\"base_unit\":\"1\",\"is_pack_sell\":\"false\",\"package_height\":\"40\",\"add_weight\":\"30.11\",\"aeop_ae_product_s_k_us\":[{\"sku_discount_price\":\"12.05\",\"ipm_sku_stock\":\"1111\",\"aeop_s_k_u_national_discount_price\":[{\"discount_price\":\"10.01\",\"shipto_country\":\"RU\"},{\"discount_price\":\"10.01\",\"shipto_country\":\"RU\"}],\"ean_code\":\"12345678\",\"currency_code\":\"USD;RUB\",\"package_width\":\"3\",\"package_height\":\"2\",\"sku_price\":\"200.07\",\"package_length\":\"4\",\"id\":\"\\\"200000182:193;200007763:201336100\\\"\",\"aeop_s_k_u_property\":[{\"sku_image\":\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"property_value_definition_name\":\"pink\",\"property_value_id\":\"366\",\"sku_property_id\":\"14\",\"image_url_list\":[\"[http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg]\",\"[http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg]\"]},{\"sku_image\":\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"property_value_definition_name\":\"pink\",\"property_value_id\":\"366\",\"sku_property_id\":\"14\",\"image_url_list\":[\"[http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg]\",\"[http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg]\"]}],\"gross_weight\":\"1\",\"sku_code\":\"cfas00978\"},{\"sku_discount_price\":\"12.05\",\"ipm_sku_stock\":\"1111\",\"aeop_s_k_u_national_discount_price\":[{\"discount_price\":\"10.01\",\"shipto_country\":\"RU\"},{\"discount_price\":\"10.01\",\"shipto_country\":\"RU\"}],\"ean_code\":\"12345678\",\"currency_code\":\"USD;RUB\",\"package_width\":\"3\",\"package_height\":\"2\",\"sku_price\":\"200.07\",\"package_length\":\"4\",\"id\":\"\\\"200000182:193;200007763:201336100\\\"\",\"aeop_s_k_u_property\":[{\"sku_image\":\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"property_value_definition_name\":\"pink\",\"property_value_id\":\"366\",\"sku_property_id\":\"14\",\"image_url_list\":[\"[http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg]\",\"[http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg]\"]},{\"sku_image\":\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"property_value_definition_name\":\"pink\",\"property_value_id\":\"366\",\"sku_property_id\":\"14\",\"image_url_list\":[\"[http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg]\",\"[http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg]\"]}],\"gross_weight\":\"1\",\"sku_code\":\"cfas00978\"}],\"category_id\":\"200002101\",\"subject_list\":[{\"locale\":\"en_US\",\"value\":\"product subject\"},{\"locale\":\"en_US\",\"value\":\"product subject\"}],\"image_u_r_ls\":\"http://g01.a.alicdn.com/kf/HTB13GKLJXXXXXbYaXXXq6xXFXXXi.jpg;http://g02.a.alicdn.com/kf/HTB1DkaWJXXXXXb6XFXXq6xXFXXXp.jpg;http://g02.a.alicdn.com/kf/HTB1pMCQJXXXXXcvXVXXq6xXFXXXm.jpg;http://g03.a.alicdn.com/kf/HTB1QhORJXXXXXbiXVXXq6xXFXXXx.jpg;http://g02.a.alicdn.com/kf/HTB1q1aLJXXXXXcfaXXXq6xXFXXXv.jpg\",\"package_length\":\"20\",\"product_id\":\"1239273\",\"reduce_strategy\":\"place_order_withhold\",\"gross_weight\":\"50\",\"freight_template_id\":\"1000\",\"promise_template_id\":\"100\",\"msr_eu_id\":\"12\",\"sizechart_id\":\"123\",\"aeop_a_e_multimedia\":{\"aeop_a_e_videos\":[{\"media_type\":\"video\",\"media_id\":\"12345678\",\"poster_url\":\"http://img01.taobaocdn.com/bao/uploaded/TB1rNdGIVXXXXbTXFXXXXXXXXXX.jpg\"},{\"media_type\":\"video\",\"media_id\":\"12345678\",\"poster_url\":\"http://img01.taobaocdn.com/bao/uploaded/TB1rNdGIVXXXXbTXFXXXXXXXXXX.jpg\"}]},\"aeop_qualification_struct_list\":[{\"type\":\"image\",\"value\":\"https://ae01.alicdn.com/kf/S23b9cb05c8e844648d48324f23f0c123T.jpeg\",\"key\":\"item_EU_CE_certificate\"},{\"type\":\"image\",\"value\":\"https://ae01.alicdn.com/kf/S23b9cb05c8e844648d48324f23f0c123T.jpeg\",\"key\":\"item_EU_CE_certificate\"}],\"bulk_order\":\"5\",\"product_unit\":\"100000000\",\"market_images\":[{\"url\":\"https://ae01.alicdn.com/kf/HTB1C72NbcvrXXX.jpg\",\"image_type\":\"1\"},{\"url\":\"https://ae01.alicdn.com/kf/HTB1C72NbcvrXXX.jpg\",\"image_type\":\"1\"}],\"package_width\":\"30\",\"add_unit\":\"2\",\"bulk_discount\":\"90\",\"ext_param\":\"{ \\\"deleteMarketImageFlag\\\":\\\"false\\\", \\\"deleteQualificationFlag\\\":\\\"false\\\", \\\"edit_reason\\\":\\\"product_diagnosis\\\"}\"}"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 商品新的编辑接口 + */ + @Log(title = "商品新的编辑接口", businessType = BusinessType.SELECT) + @ApiOperation("商品新的编辑接口") + @PostMapping("/productEditNew") + public String productEditNew(@RequestBody ProductProductEditNewDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.PRODUCT_EDIT_NEW.getApiName()); + request.addApiParameter("aeop_a_e_product", reqDto.getAeop_a_e_product()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //商品查询新接口 + //描述:根据商品id查询单个商品的详细信息。 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.offer.product.query"); +request.addApiParameter("product_id", "1005004616872521"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 商品查询新接口 + */ + @Log(title = "商品查询新接口", businessType = BusinessType.SELECT) + @ApiOperation("商品查询新接口") + @PostMapping("/productQueryNew") + public String productQueryNew(@RequestBody ProductProductQueryNewDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.PRODUCT_QUERY_NEW.getApiName()); + request.addApiParameter("product_id", reqDto.getProduct_id()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //商品橱窗设置 + //描述:商品橱窗设置 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.postproduct.redefining.setshopwindowproduct"); +request.addApiParameter("product_id_list", "1351344486;1351344487"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 商品橱窗设置 + */ + @Log(title = "商品橱窗设置", businessType = BusinessType.SELECT) + @ApiOperation("商品橱窗设置") + @PostMapping("/setShopWindowProduct") + public String setShopWindowProduct(@RequestBody ProductSetShopWindowProductDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.SET_SHOP_WINDOW_PRODUCT.getApiName()); + request.addApiParameter("product_id_list", reqDto.getProduct_id_list()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //商品违禁词查询(暂停维护,返回空集合) + //描述:“调用发布商品接口api.postaeproduct前,针对商品标题等信息做违禁词相关信息查询接口。 当前支持的违禁词查询范围包括:1.商品的标题,2.商品的关键字, 3.商品的类目属性, 4.商品的详细描述。用户提供以上四个参数以及商品的类目ID来查询标题、关键字、类目属性、详细描述中是否包含了当前类目的违禁词。 发布产品时平台提供的违禁词查询只供参考和引导的作用,同时由于是系统检测并不能判断实际词语应用的场景,所以还需请您不断仔细检查相关词语的应用情况,可点此进入知识产权的相关学习:http://seller.aliexpress.com/education/rules/ipr31.html?tracelog=ipr01zscqzq” + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.postproduct.redefining.findaeproductprohibitedwords"); +request.addApiParameter("category_id", "322"); +request.addApiParameter("title", "nike"); +request.addApiParameter("keywords", "0"); +request.addApiParameter("product_properties", "0"); +request.addApiParameter("detail", "This is a test for the product."); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 商品违禁词查询 + */ + @Log(title = "商品违禁词查询", businessType = BusinessType.SELECT) + @ApiOperation("商品违禁词查询") + @PostMapping("/findAeProductProhibitedWords") + public String findAeProductProhibitedWords(@RequestBody ProductFindAeProductProhibitedWordsDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.FIND_AE_PRODUCT_PROHIBITED_WORDS.getApiName()); + request.addApiParameter("category_id", reqDto.getCategory_id()); + request.addApiParameter("title", reqDto.getTitle()); + request.addApiParameter("keywords", reqDto.getKeywords()); + request.addApiParameter("product_properties", reqDto.getProduct_properties()); + request.addApiParameter("detail", reqDto.getDetail()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //将指定的尺码模版信息复制到具有相同的模型的目标叶子类目下面 + //描述:复制所有尺码模版的所有信息 尺码模版与目标叶子类目具有相同的模型 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.offer.redefining.copysizetemplate"); +request.addApiParameter("size_template_id", "1"); +request.addApiParameter("target_leaf_id", "364"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 将指定的尺码模版信息复制到具有相同的模型的目标叶子类目下面 + */ + @Log(title = "将指定的尺码模版信息复制到具有相同的模型的目标叶子类目下面", businessType = BusinessType.SELECT) + @ApiOperation("将指定的尺码模版信息复制到具有相同的模型的目标叶子类目下面") + @PostMapping("/copySizeTemplate") + public String copySizeTemplate(@RequestBody ProductCopySizeTemplateDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.COPY_SIZE_TEMPLATE.getApiName()); + request.addApiParameter("size_template_id", reqDto.getSize_template_id()); + request.addApiParameter("target_leaf_id", reqDto.getTarget_leaf_id()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //延长商品有效期 + //描述:“卖家post商品时可选择商品有效期。 每次延长的有效期=post商品时卖家选择的商品有效期” + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.postproduct.redefining.renewexpire"); +request.addApiParameter("product_id", "32960861801"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 延长商品有效期 + */ + @Log(title = "延长商品有效期", businessType = BusinessType.SELECT) + @ApiOperation("延长商品有效期") + @PostMapping("/renewExpire") + public String renewExpire(@RequestBody ProductRenewExpireDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.RENEW_EXPIRE.getApiName()); + request.addApiParameter("product_id", reqDto.getProduct_id()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //批量更新商品绑定车型信息 + //描述:批量更新商品绑定车型信息 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.carmodel.update.product.carInfo"); +request.addApiParameter("param0", "{\"delete_af_ids\":[\"[\\\"US323221\\\"]\",\"[\\\"US323221\\\"]\"],\"product_id\":\"\\\"1005005113643414\\\"\",\"channel_seller_id\":\"2671514005\",\"channel\":\"AE_GLOBAL\",\"add_af_ids\":[\"[\\\"US122121\\\"]\",\"[\\\"US122121\\\"]\"]}"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 批量更新商品绑定车型信息 + */ + @Log(title = "批量更新商品绑定车型信息", businessType = BusinessType.SELECT) + @ApiOperation("批量更新商品绑定车型信息") + @PostMapping("/carModelUpdateProductCarInfo") + public String carModelUpdateProductCarInfo(@RequestBody ProductCarModelUpdateProductCarInfoDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.CAR_MODEL_UPDATE_PRODUCT_CAR_INFO.getApiName()); + request.addApiParameter("param0", reqDto.getParam0()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //批量查询车型库数据 + //描述:根据条件批量查询车型库数据 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.carmodel.findByTecIds"); +request.setHttpMethod("GET"); +request.addApiParameter("param", "{\"link_target_id_list\":[\"[]\",\"[]\"],\"current\":\"1\",\"year_id\":\"1\",\"model_id\":\"1\",\"country_id\":\"1\",\"brand_id\":\"1\",\"page_size\":\"10\"}"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 批量查询车型库数据 + */ + @Log(title = "批量查询车型库数据", businessType = BusinessType.SELECT) + @ApiOperation("批量查询车型库数据") + @PostMapping("/carModelFindByTecIds") + public String carModelFindByTecIds(@RequestBody ProductCarModelFindByTecIdsDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.CAR_MODEL_FIND_BY_TEC_IDS.getApiName()); + request.setHttpMethod("GET"); + request.addApiParameter("param", reqDto.getParam()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //新增商品主图短视频 + //描述:根据商品id和视频url完成商品头图视频的更新 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.ugc.product.video.upload"); +request.addApiParameter("product_id", "123554348908"); +request.addApiParameter("media_type", "video"); +request.addApiParameter("video_file_url", "http://ae-cn.alicdn.com/kddd6bep.mp4"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 新增商品主图短视频 + */ + @Log(title = "新增商品主图短视频", businessType = BusinessType.SELECT) + @ApiOperation("新增商品主图短视频") + @PostMapping("/ugcProductVideoUpload") + public String ugcProductVideoUpload(@RequestBody ProductUgcProductVideoUploadDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.UGC_PRODUCT_VIDEO_UPLOAD.getApiName()); + request.addApiParameter("product_id", reqDto.getProduct_id()); + request.addApiParameter("media_type", reqDto.getMedia_type()); + request.addApiParameter("video_file_url", reqDto.getVideo_file_url()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //服务模板查询 + //描述:服务模板查询API + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.postproduct.redefining.querypromisetemplatebyid"); +request.addApiParameter("template_id", "-1"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 服务模板查询 + */ + @Log(title = "服务模板查询", businessType = BusinessType.SELECT) + @ApiOperation("服务模板查询") + @PostMapping("/queryPromiseTemplateById") + public String queryPromiseTemplateById(@RequestBody ProductQueryPromiseTemplateByIdDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.QUERY_PROMISE_TEMPLATE_BY_ID.getApiName()); + request.addApiParameter("template_id", reqDto.getTemplate_id()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //查询主商品搭配列表 + //描述:查询商品搭配列表,这个接口是以主商品来作为查询的统计维度的?比如要查10条记录,其实是查10个主商品,这10个主商品的所有搭配记录都会查出来,所以实际上查出来的搭配数量实际上要比10大,由于每个主商品最多可以有三个搭配,所以如果查询10个主商品,一次最多可能会查询出30条搭配记录 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.offer.redefining.querybundle"); +request.addApiParameter("param_aeop_offer_bundle_query_condition", "{\"item_subject\":\"test-product\",\"item_id\":\"32840310226\",\"current_page\":\"1\",\"page_size\":\"10\"}"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 查询主商品搭配列表 + */ + @Log(title = "查询主商品搭配列表", businessType = BusinessType.SELECT) + @ApiOperation("查询主商品搭配列表") + @PostMapping("/queryBundle") + public String queryBundle(@RequestBody ProductQueryBundleDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.QUERY_BUNDLE.getApiName()); + request.addApiParameter("param_aeop_offer_bundle_query_condition", reqDto.getParam_aeop_offer_bundle_query_condition()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //查询信息模板列表 + //描述:查询信息模板列表 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.postproduct.redefining.findaeproductdetailmodulelistbyqurey"); +request.addApiParameter("module_status", "approved"); +request.addApiParameter("type", "custom"); +request.addApiParameter("page_index", "1"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 查询信息模板列表 + */ + @Log(title = "查询信息模板列表", businessType = BusinessType.SELECT) + @ApiOperation("查询信息模板列表") + @PostMapping("/findAeProductDetailModuleListByQuery") + public String findAeProductDetailModuleListByQuery(@RequestBody ProductFindAeProductDetailModuleListByQueryDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.FIND_AE_PRODUCT_DETAIL_MODULE_LIST_BY_QUREY.getApiName()); + request.addApiParameter("module_status", reqDto.getModule_status()); + request.addApiParameter("type", reqDto.getType()); + request.addApiParameter("page_index", reqDto.getPage_index()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //查询单个信息模板详情 + //描述:“根据模块id查询模块,模块在detail详情中显示格式: 标签属性id=“”1004“”对应返回值中的id,标签属性type=“”relation“”对应返回值中的type, 标签属性title=“”Specification “”对应返回值中的name.” + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.postproduct.redefining.findaeproductmodulebyid"); +request.addApiParameter("module_id", "0"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 查询单个信息模板详情 + */ + @Log(title = "查询单个信息模板详情", businessType = BusinessType.SELECT) + @ApiOperation("查询单个信息模板详情") + @PostMapping("/findAeProductModuleById") + public String findAeProductModuleById(@RequestBody ProductFindAeProductModuleByIdDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.FIND_AE_PRODUCT_MODULE_BY_ID.getApiName()); + request.addApiParameter("module_id", reqDto.getModule_id()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //查询商品状态 + //描述:查询商品状态,商品供三种状态。审核通过:approved;审核中:auditing;审核不通过:refuse + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.postproduct.redefining.findaeproductstatusbyid"); +request.addApiParameter("product_id", "32462942083"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 查询商品状态 + */ + @Log(title = "查询商品状态", businessType = BusinessType.SELECT) + @ApiOperation("查询商品状态") + @PostMapping("/findAeProductStatusById") + public String findAeProductStatusById(@RequestBody ProductFindAeProductStatusByIdDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.FIND_AE_PRODUCT_STATUS_BY_ID.getApiName()); + request.addApiParameter("product_id", reqDto.getProduct_id()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //查询商品绑定的车型信息 + //描述:查询商品绑定的车型库信息 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.carmodel.findListByProductId"); +request.setHttpMethod("GET"); +request.addApiParameter("param0", "{\"product_id\":\"\\\"1005004513947684\\\"\",\"channel\":\"AE_GLOBAL\",\"channel_seller_id\":\"2671514005\"}"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 查询商品绑定的车型信息 + */ + @Log(title = "查询商品绑定的车型信息", businessType = BusinessType.SELECT) + @ApiOperation("查询商品绑定的车型信息") + @PostMapping("/carModelFindListByProductId") + public String carModelFindListByProductId(@RequestBody ProductCarModelFindListByProductIdDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.CAR_MODEL_FIND_LIST_BY_PRODUCT_ID.getApiName()); + request.setHttpMethod("GET"); + request.addApiParameter("param0", reqDto.getParam0()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //查询商家下已优化商品 + //描述:查询商家下已优化商品,包括优化时间和优化来源 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.product.diagnosis.result.list"); +request.addApiParameter("current", "1"); +request.addApiParameter("page_size", "10"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 查询商家下已优化商品 + */ + @Log(title = "查询商家下已优化商品", businessType = BusinessType.SELECT) + @ApiOperation("查询商家下已优化商品") + @PostMapping("/productDiagnosisResultList") + public String productDiagnosisResultList(@RequestBody ProductProductDiagnosisResultListDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.PRODUCT_DIAGNOSIS_RESULT_LIST.getApiName()); + request.addApiParameter("current", reqDto.getCurrent()); + request.addApiParameter("page_size", reqDto.getPage_size()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //查询商家下待优化的商品问题类型列表 + //描述:查询商家下待优化的商品问题类型列表 包含问题类型和问题描述 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.product.diagnosis.queryProblem"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 查询商家下待优化的商品问题类型列表 + */ + @Log(title = "查询商家下待优化的商品问题类型列表", businessType = BusinessType.SELECT) + @ApiOperation("查询商家下待优化的商品问题类型列表") + @PostMapping("/productDiagnosisQueryProblem") + public String productDiagnosisQueryProblem(@RequestBody ProductProductDiagnosisQueryProblemDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.PRODUCT_DIAGNOSIS_QUERY_PROBLEM.getApiName()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //查询指定商品ID所在产品分组 + //描述:查询指定商品id所在产品分组 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.postproduct.redefining.queryproductgroupidbyproductid"); +request.addApiParameter("product_id", "1629872654"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 查询指定商品ID所在产品分组 + */ + @Log(title = "查询指定商品ID所在产品分组", businessType = BusinessType.SELECT) + @ApiOperation("查询指定商品ID所在产品分组") + @PostMapping("/queryProductGroupIdByProductId") + public String queryProductGroupIdByProductId(@RequestBody ProductQueryProductGroupIdByProductIdDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.QUERY_PRODUCT_GROUP_ID_BY_PRODUCT_ID.getApiName()); + request.addApiParameter("product_id", reqDto.getProduct_id()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + //查询草稿箱里的产品信息 + //描述:根据商品id查询单个商品的详细信息。 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.offer.draftproduct.get"); +request.addApiParameter("product_id", "1307422965"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 查询草稿箱里的产品信息 + */ + @Log(title = "查询草稿箱里的产品信息", businessType = BusinessType.SELECT) + @ApiOperation("查询草稿箱里的产品信息") + @PostMapping("/draftProductGetNew") + public String draftProductGetNew(@RequestBody ProductDraftProductGetNewDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.DRAFT_PRODUCT_GET_NEW.getApiName()); + request.addApiParameter("product_id", reqDto.getProduct_id()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //查询草稿箱里的商品列表 + //描述:草稿箱商品列表查询接口。主账号可查询所有商品,子账号只可查询自身所属商品。 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.offer.draftproducts.get"); +request.addApiParameter("aeop_a_e_product_list_query", "{\"current_page\":\"2\",\"page_size\":\"30\"}"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 查询草稿箱里的商品列表 + */ + @Log(title = "查询草稿箱里的商品列表", businessType = BusinessType.SELECT) + @ApiOperation("查询草稿箱里的商品列表") + @PostMapping("/draftProductsGet") + public String draftProductsGet(@RequestBody ProductDraftProductsGetDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.DRAFT_PRODUCTS_GET.getApiName()); + request.addApiParameter("aeop_a_e_product_list_query", reqDto.getAeop_a_e_product_list_query()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //查询车型库支持的品牌 + //描述:查询车型库支持的品牌 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.carmodel.get.brand"); +request.addApiParameter("param0", "{\"lang\":\"zh\"}"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 查询车型库支持的品牌 + */ + @Log(title = "查询车型库支持的品牌", businessType = BusinessType.SELECT) + @ApiOperation("查询车型库支持的品牌") + @PostMapping("/carModelGetBrand") + public String carModelGetBrand(@RequestBody ProductCarModelGetBrandDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.CAR_MODEL_GET_BRAND.getApiName()); + request.addApiParameter("param0", reqDto.getParam0()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //查询车型库支持的国家 + //描述:查询车型库支持的所有国家列表 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.carmodel.get.country"); +request.addApiParameter("param0", "{\"lang\":\"zh\"}"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 查询车型库支持的国家 + */ + @Log(title = "查询车型库支持的国家", businessType = BusinessType.SELECT) + @ApiOperation("查询车型库支持的国家") + @PostMapping("/carModelGetCountry") + public String carModelGetCountry(@RequestBody ProductCarModelGetCountryDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.CAR_MODEL_GET_COUNTRY.getApiName()); + request.addApiParameter("param0", reqDto.getParam0()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //查询零配件关联的TEC车型ID + //描述:查询零配件关联的车型信息 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.carmodel.get.linktarget"); +request.addApiParameter("param0", "{\"article_id_list\":[\"[\\\"1222211\\\",\\\"221\\\"]\",\"[\\\"1222211\\\",\\\"221\\\"]\"],\"linking_target_type\":\"V\",\"lang\":\"zh\"}"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 查询零配件关联的TEC车型ID + */ + @Log(title = "查询零配件关联的TEC车型ID", businessType = BusinessType.SELECT) + @ApiOperation("查询零配件关联的TEC车型ID") + @PostMapping("/carModelGetLinkTarget") + public String carModelGetLinkTarget(@RequestBody ProductCarModelGetLinkTargetDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.CAR_MODEL_GET_LINK_TARGET.getApiName()); + request.addApiParameter("param0", reqDto.getParam0()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //根据OE号查询零配件信息 + //描述:根据OE号等条件查询零配件信息 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.carmodel.get.article"); +request.addApiParameter("param0", "{\"current\":\"1\",\"language\":\"zh\",\"search_query\":\"4233244\",\"search_type\":\"1\",\"page_size\":\"10\"}"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 根据OE号查询零配件信息 + */ + @Log(title = "根据OE号查询零配件信息", businessType = BusinessType.SELECT) + @ApiOperation("根据OE号查询零配件信息") + @PostMapping("/carModelGetArticle") + public String carModelGetArticle(@RequestBody ProductCarModelGetArticleDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.CAR_MODEL_GET_ARTICLE.getApiName()); + request.addApiParameter("param0", reqDto.getParam0()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //根据tecId查询车型库数据 + //描述:根据TEC ID查询车型库数据 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.carmodel.findByTecId"); +request.addApiParameter("tec_id", "22548"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 根据tecId查询车型库数据 + */ + @Log(title = "根据tecId查询车型库数据", businessType = BusinessType.SELECT) + @ApiOperation("根据tecId查询车型库数据") + @PostMapping("/carModelFindByTecId") + public String carModelFindByTecId(@RequestBody ProductCarModelFindByTecIdDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.CAR_MODEL_FIND_BY_TEC_ID.getApiName()); + request.addApiParameter("tec_id", reqDto.getTec_id()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //根据类目id获得适用的尺码表信息列表(不推荐使用) + //描述:查询当前用户在指定类目下可用的尺码模版信息。不推荐使用,请使用aliexpress.offer.redefining.getsizetemplatesbycategoryid + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.postproduct.redefining.getsizechartinfobycategoryid"); +request.addApiParameter("channel", "AE_GLOBAL"); +request.addApiParameter("channel_seller_id", "2671514005"); +request.addApiParameter("category_id", "348"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 根据类目id获得适用的尺码表信息列表(不推荐使用) + */ + @Log(title = "根据类目id获得适用的尺码表信息列表(不推荐使用)", businessType = BusinessType.SELECT) + @ApiOperation("根据类目id获得适用的尺码表信息列表(不推荐使用)") + @PostMapping("/getSizeChartInfoByCategoryId") + public String getSizeChartInfoByCategoryId(@RequestBody ProductGetSizeChartInfoByCategoryIdDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.GET_SIZE_CHART_INFO_BY_CATEGORY_ID.getApiName()); + request.addApiParameter("channel", reqDto.getChannel()); + request.addApiParameter("channel_seller_id", reqDto.getChannel_seller_id()); + request.addApiParameter("category_id", reqDto.getCategory_id()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //类目预测,可以筛选卖家已经通过准入申请的类目 + //描述:类目预测,根据商品标题和图片预测商品的叶子类目,可以筛选已经通过准入申请的类目 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.postproduct.redefining.categoryforecast"); +request.addApiParameter("image_url", "https://ae01.alicdn.com/kf/S1f7eae683d124854973b72563474e170V.jpg"); +request.addApiParameter("subject", "elle+sport+sujetador+deportivo+gunn+rosa"); +request.addApiParameter("locale", "es"); +request.addApiParameter("is_filter_by_permission", "N"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 类目预测 + */ + @Log(title = "类目预测", businessType = BusinessType.SELECT) + @ApiOperation("类目预测") + @PostMapping("/categoryForecast") + public String categoryForecast(@RequestBody ProductCategoryForecastDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.CATEGORY_FORECAST.getApiName()); + request.addApiParameter("image_url", reqDto.getImage_url()); + request.addApiParameter("subject", reqDto.getSubject()); + request.addApiParameter("locale", reqDto.getLocale()); + request.addApiParameter("is_filter_by_permission", reqDto.getIs_filter_by_permission()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //编辑单商品多sku价格 + //描述:编辑单商品多sku价格 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.offer.product.skuprices.edit"); +request.addApiParameter("product_id", "32985788417"); +request.addApiParameter("sku_id_price_map", "{ \"14:193\": \"0.6\",\"14:175\": \"0.9\"}"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 编辑单商品多sku价格 + */ + @Log(title = "编辑单商品多sku价格", businessType = BusinessType.SELECT) + @ApiOperation("编辑单商品多sku价格") + @PostMapping("/productSkuPricesEdit") + public String productSkuPricesEdit(@RequestBody ProductProductSkuPricesEditDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.PRODUCT_SKU_PRICES_EDIT.getApiName()); + request.addApiParameter("product_id", reqDto.getProduct_id()); + request.addApiParameter("sku_id_price_map", reqDto.getSku_id_price_map()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + + //编辑单商品多个SKU的库存 + //描述:编辑单个商品的一个或者多个SKU可售库存。将要修改的SKU的库存值保存在skuStocks参数中(Map类型数据),其中key为SKU ID(字符串), value为对应的库存值(Longtype)。 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.postproduct.redefining.editmutilpleskustocks"); +request.addApiParameter("product_id", "32297192242"); +request.addApiParameter("sku_stocks", "{\"14:200003699;5:100014064\":240, \"14:200003699;5:361386\": 220}"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 编辑单商品多个SKU的库存 + */ + @Log(title = "编辑单商品多个SKU的库存", businessType = BusinessType.SELECT) + @ApiOperation("编辑单商品多个SKU的库存") + @PostMapping("/editMultipleSkuStocks") + public String editMultipleSkuStocks(@RequestBody ProductEditMultipleSkuStocksDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.EDIT_MULTIPLE_SKU_STOCKS.getApiName()); + request.addApiParameter("product_id", reqDto.getProduct_id()); + request.addApiParameter("sku_stocks", reqDto.getSku_stocks()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + + //编辑商品单个SKU价格 + //描述:编辑商品的单个SKU价格信息。 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.postproduct.redefining.editsingleskuprice"); +request.addApiParameter("product_id", "123456789"); +request.addApiParameter("sku_id", "14:771;5:100014066"); +request.addApiParameter("sku_price", "999"); +request.addApiParameter("sale_price", "999"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 编辑商品单个SKU价格 + */ + @Log(title = "编辑商品单个SKU价格", businessType = BusinessType.SELECT) + @ApiOperation("编辑商品单个SKU价格") + @PostMapping("/editSingleSkuPrice") + public String editSingleSkuPrice(@RequestBody ProductEditSingleSkuPriceDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.EDIT_SINGLE_SKU_PRICE.getApiName()); + request.addApiParameter("product_id", reqDto.getProduct_id()); + request.addApiParameter("sku_id", reqDto.getSku_id()); + request.addApiParameter("sku_price", reqDto.getSku_price()); + request.addApiParameter("sale_price", reqDto.getSale_price()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + + //编辑商品单个SKU库存 + //描述:编辑商品单个SKU的库存信息. + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.postproduct.redefining.editsingleskustock"); +request.addApiParameter("product_id", "32297192242"); +request.addApiParameter("sku_id", "14:200003699;5:100014065"); +request.addApiParameter("ipm_sku_stock", "299"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 编辑商品单个SKU库存 + */ + @Log(title = "编辑商品单个SKU库存", businessType = BusinessType.SELECT) + @ApiOperation("编辑商品单个SKU库存") + @PostMapping("/editSingleSkuStock") + public String editSingleSkuStock(@RequestBody ProductEditSingleSkuStockDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.EDIT_SINGLE_SKU_STOCK.getApiName()); + request.addApiParameter("product_id", reqDto.getProduct_id()); + request.addApiParameter("sku_id", reqDto.getSku_id()); + request.addApiParameter("ipm_sku_stock", reqDto.getIpm_sku_stock()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + + //编辑商品的单个字段 + //描述:编辑商品的单个字段(目前使用api.editSimpleProductFiled这个接口 暂不支持商品分组、商品属性、SKU、服务模板的修改。请注意!) + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.postproduct.redefining.editsimpleproductfiled"); +request.addApiParameter("product_id", "1234"); +request.addApiParameter("fied_name", "deliveryTime"); +request.addApiParameter("fiedvalue", "{ \"mobileDetail\": [ { \"type\": \"text\", \"content\": \" POSTAGE<>: We provide free express shipping via UPS / DHL / FEDEX / EMS / TNT / ARAMEX / for most of country when your orders around US$200 (please contact us if you have qustions). Delivery time around 4-7 days (business days).NOTE<>: We have only one store called 'TWOTWINSTYLE' on aliexpress. The products selling in other stores with same designs or photos are not from us. 'TWOTWINSTYLE' have their own separate production lines, all merchandise sold are exclusive and high quality.\" } ], \"version\": \"1.0\", \"versionNum\": 1}"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 编辑商品的单个字段 + */ + @Log(title = "编辑商品的单个字段", businessType = BusinessType.SELECT) + @ApiOperation("编辑商品的单个字段") + @PostMapping("/editSimpleProductFiled") + public String editSimpleProductFiled(@RequestBody ProductEditSimpleProductFiledDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.EDIT_SIMPLE_PRODUCT_FILED.getApiName()); + request.addApiParameter("product_id", reqDto.getProduct_id()); + request.addApiParameter("fied_name", reqDto.getFied_name()); + request.addApiParameter("fiedvalue", reqDto.getFiedvalue()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + //编辑商品的多语言标题或详描 + //描述:原发编辑商品多语言标题或详描描述(英文版本除外)。试用 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.postproduct.redefining.editmultilanguageproduct"); +request.addApiParameter("product_id", "32234411234"); +request.addApiParameter("aeop_a_e_product_multilanguage_info", "{\"mobile_detail\":\"{ \\\"mobileDetail\\\": [ { \\\"content\\\": \\\"context1\\\", \\\"type\\\": \\\"text\\\" }, { \\\"col\\\": 1, \\\"images\\\": [ { \\\"height\\\":500, \\\"imgUrl\\\": \\\"https://ae01.alicdn.com/kf/HTB1WQ.MKpXXXXXhXVXXq6xXFXXX6.jpg\\\", \\\"width\\\":500, \\\"targetUrl\\\":\\\"https://ae01.alicdn.com/kf/HTB1WQ.MKpXXXXXhXVXXq6xXFXXX6.jpg\\\" }, { \\\"imgUrl\\\": \\\"https://ae01.alicdn.com/kf/HTB1WQ.MKpXXXXXhXVXXq6xXFXXX6.jpg\\\", \\\"targetUrl\\\":\\\"https://ae01.alicdn.com/kf/HTB1WQ.MKpXXXXXhXVXXq6xXFXXX6.jpg\\\" } ], \\\"type\\\": \\\"image\\\" }, { \\\"content\\\": \\\"context3\\\", \\\"type\\\": \\\"text\\\" } ], \\\"version\\\": \\\"1.0\\\", \\\"versionNum\\\": 1}\",\"subject\":\"foo\",\"detail\":\"bar\",\"locale\":\"ru_RU\"}"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 编辑商品的多语言标题或详描 + */ + @Log(title = "编辑商品的多语言标题或详描", businessType = BusinessType.SELECT) + @ApiOperation("编辑商品的多语言标题或详描") + @PostMapping("/editMultiLanguageProduct") + public String editMultiLanguageProduct(@RequestBody ProductEditMultiLanguageProductDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.EDIT_MULTI_LANGUAGE_PRODUCT.getApiName()); + request.addApiParameter("product_id", reqDto.getProduct_id()); + request.addApiParameter("aeop_a_e_product_multilanguage_info", reqDto.getAeop_a_e_product_multilanguage_info()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + + //编辑商品类目属性 + //描述:编辑商品的类目属性,用给定的类目属性覆盖原有的类目属性。(试用) + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.postproduct.redefining.editproductcategoryattributes"); +request.addApiParameter("product_id", "1706468951"); +request.addApiParameter("product_category_attributes", "[{\"attr_name_id\":\"0\",\"attr_name\":\"0\",\"attr_value_id\":\"0\",\"attr_value_unit\":\"0\",\"attr_value\":\"0\",\"attr_value_end\":\"0\",\"attr_value_start\":\"0\"}]"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 编辑商品类目属性 + */ + @Log(title = "编辑商品类目属性", businessType = BusinessType.SELECT) + @ApiOperation("编辑商品类目属性") + @PostMapping("/editProductCategoryAttributes") + public String editProductCategoryAttributes(@RequestBody ProductEditProductCategoryAttributesDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.EDIT_PRODUCT_CATEGORY_ATTRIBUTES.getApiName()); + request.addApiParameter("product_id", reqDto.getProduct_id()); + request.addApiParameter("product_category_attributes", reqDto.getProduct_category_attributes()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + + //获取单个产品信息 + //描述:根据商品id查询单个商品的详细信息。 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.postproduct.redefining.findaeproductbyid"); +request.addApiParameter("product_id", "1307422965"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 获取单个产品信息 + */ + @Log(title = "获取单个产品信息", businessType = BusinessType.SELECT) + @ApiOperation("获取单个产品信息") + @PostMapping("/findAeProductById") + public String findAeProductById(@RequestBody ProductFindAeProductByIdDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.FIND_AE_PRODUCT_BY_ID.getApiName()); + request.addApiParameter("product_id", reqDto.getProduct_id()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + + //获取叶子类目下尺码模版列表 + //描述:获取当前用户下入驻叶子类目尺码模版列表,分页,每页最多20条记录。 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.offer.redefining.getsizetemplatesbycategoryid"); +request.addApiParameter("channel_seller_id", "2671514005"); +request.addApiParameter("channel", "AE_GLOBAL"); +request.addApiParameter("leaf_category_id", "348"); +request.addApiParameter("current_page", "1"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 获取叶子类目下尺码模版列表 + */ + @Log(title = "获取叶子类目下尺码模版列表", businessType = BusinessType.SELECT) + @ApiOperation("获取叶子类目下尺码模版列表") + @PostMapping("/getSizeTemplatesByCategoryId") + public String getSizeTemplatesByCategoryId(@RequestBody ProductGetSizeTemplatesByCategoryIdDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.GET_SIZE_TEMPLATES_BY_CATEGORY_ID.getApiName()); + request.addApiParameter("channel_seller_id", reqDto.getChannel_seller_id()); + request.addApiParameter("channel", reqDto.getChannel()); + request.addApiParameter("leaf_category_id", reqDto.getLeaf_category_id()); + request.addApiParameter("current_page", reqDto.getCurrent_page()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + + //获取当前会员的产品分组(不推荐使用) + //描述:获取当前会员的产品分组。该接口存在问题导致SDK无法使用,自己解析json的方式目前仍可以使用,但后期会下线掉。建议使用新API:aliexpress.product.productgroups.get,https://developers.aliexpress.com/doc.htm#?docType=2&docId=35300。 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.postproduct.redefining.getproductgrouplist"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 获取当前会员的产品分组(不推荐使用) + */ + @Log(title = "获取当前会员的产品分组(不推荐使用)", businessType = BusinessType.SELECT) + @ApiOperation("获取当前会员的产品分组(不推荐使用)") + @PostMapping("/getProductGroupList") + public String getProductGroupList(@RequestBody ProductGetProductGroupListDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.GET_PRODUCT_GROUP_LIST.getApiName()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + + //获取当前会员的产品分组(新) + //描述:获取当前会员的产品分组 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.product.productgroups.get"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 获取当前会员的产品分组(新) + */ + @Log(title = "获取当前会员的产品分组(新)", businessType = BusinessType.SELECT) + @ApiOperation("获取当前会员的产品分组(新)") + @PostMapping("/productGroupsGet") + public String productGroupsGet(@RequestBody ProductProductGroupsGetDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.PRODUCT_GROUPS_GET.getApiName()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + + + //通过商品ID初始化商品搭配 + //描述:通过商品ID初始化商品搭配,这个接口初始化的搭配信息不回保存到数据库,只有调用了aliexpress.offer.redefining.createbundle接口后才会保存 + /* +IopClient client = new IopClient(url, appkey, appSecret); +IopRequest request = new IopRequest(); +request.setApiName("aliexpress.offer.redefining.initialnewbundle"); +request.addApiParameter("main_item_id", "32840310226"); +request.addApiParameter("sub_item_list", "[32829102949]"); +IopResponse response = client.execute(request, accessToken, Protocol.TOP); +System.out.println(response.getBody()); +Thread.sleep(10); + */ + + /** + * 通过商品ID初始化商品搭配 + */ + @Log(title = "通过商品ID初始化商品搭配", businessType = BusinessType.SELECT) + @ApiOperation("通过商品ID初始化商品搭配") + @PostMapping("/initialNewBundle") + public String initialNewBundle(@RequestBody ProductInitialNewBundleDTO reqDto) throws ApiException { + IopClient client = new IopClientImpl(AliexpressAuthClientConfig.getUrl(), AliexpressAuthClientConfig.getAppKey(), AliexpressAuthClientConfig.getAppSecret()); + IopRequest request = new IopRequest(); + request.setApiName(AliexpressProductEnu.INITIAL_NEW_BUNDLE.getApiName()); + request.addApiParameter("main_item_id", reqDto.getMain_item_id()); + request.addApiParameter("sub_item_list", reqDto.getSub_item_list()); + IopResponse response = client.execute(request, reqDto.getAccessToken(), Protocol.TOP); + return response.getGopResponseBody(); + } + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategoryEuResponsiblePersonsListDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategoryEuResponsiblePersonsListDTO.java new file mode 100644 index 0000000..f8d0f0f --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategoryEuResponsiblePersonsListDTO.java @@ -0,0 +1,22 @@ +package com.ruoyi.web.controller.aliexpress.dto.category; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 10:07 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class CategoryEuResponsiblePersonsListDTO extends AliexpressAuth { +// request.addApiParameter("category_id", "39050508"); + private String category_id; +// request.addApiParameter("channel", "AE_GLOBAL"); + private String channel; +// request.addApiParameter("channel_seller_id", "2671514005"); + private String channel_seller_id; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategoryGetChildAttributesResultByPostCateIdAndPathDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategoryGetChildAttributesResultByPostCateIdAndPathDTO.java new file mode 100644 index 0000000..b8449bf --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategoryGetChildAttributesResultByPostCateIdAndPathDTO.java @@ -0,0 +1,28 @@ +package com.ruoyi.web.controller.aliexpress.dto.category; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 10:09 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class CategoryGetChildAttributesResultByPostCateIdAndPathDTO extends AliexpressAuth { + // request.addApiParameter("channel", "AE_GLOBAL"); + private String channel; + // request.addApiParameter("locale", "en_US"); + private String locale; + // request.addApiParameter("product_type", "2"); + private String product_type; + // request.addApiParameter("channel_seller_id", "2671514005"); + private String channel_seller_id; + // request.addApiParameter("param1", "349"); + private String param1; + // request.addApiParameter("param2", "219=9441741844"); + private String param2; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategoryGetChildrenPostCategoryByIdDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategoryGetChildrenPostCategoryByIdDTO.java new file mode 100644 index 0000000..6f4fb4e --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategoryGetChildrenPostCategoryByIdDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.category; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 10:15 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class CategoryGetChildrenPostCategoryByIdDTO extends AliexpressAuth { + //request.addApiParameter("param0", "509"); + private String param0; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategoryGetPostCategoryByIdDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategoryGetPostCategoryByIdDTO.java new file mode 100644 index 0000000..b5406c1 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategoryGetPostCategoryByIdDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.category; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 10:14 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class CategoryGetPostCategoryByIdDTO extends AliexpressAuth { + // request.addApiParameter("param0", "5090301"); + private String param0; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/CategoryGetPropValueFeatureDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategoryGetPropValueFeatureDTO.java similarity index 83% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/CategoryGetPropValueFeatureDTO.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategoryGetPropValueFeatureDTO.java index f36bae0..1f310a0 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/CategoryGetPropValueFeatureDTO.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategoryGetPropValueFeatureDTO.java @@ -1,4 +1,4 @@ -package com.ruoyi.web.controller.aliexpress.dto; +package com.ruoyi.web.controller.aliexpress.dto.category; import lombok.Getter; import lombok.Setter; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/CategoryQdUploadDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategoryQdUploadDTO.java similarity index 80% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/CategoryQdUploadDTO.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategoryQdUploadDTO.java index 0bff70e..0158e6a 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/CategoryQdUploadDTO.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategoryQdUploadDTO.java @@ -1,4 +1,4 @@ -package com.ruoyi.web.controller.aliexpress.dto; +package com.ruoyi.web.controller.aliexpress.dto.category; import lombok.Getter; import lombok.Setter; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategoryQualificationsListDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategoryQualificationsListDTO.java new file mode 100644 index 0000000..4343dac --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategoryQualificationsListDTO.java @@ -0,0 +1,20 @@ +package com.ruoyi.web.controller.aliexpress.dto.category; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 10:12 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class CategoryQualificationsListDTO extends AliexpressAuth { +// request.addApiParameter("category_id", "200001426"); + private String category_id; +// request.addApiParameter("local", "zh_CN"); + private String local; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategorySellerCategoryTreeQueryDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategorySellerCategoryTreeQueryDTO.java new file mode 100644 index 0000000..22feac6 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategorySellerCategoryTreeQueryDTO.java @@ -0,0 +1,20 @@ +package com.ruoyi.web.controller.aliexpress.dto.category; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 9:49 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class CategorySellerCategoryTreeQueryDTO extends AliexpressAuth { +// request.addApiParameter("category_id", "509"); + private String category_id; +// request.addApiParameter("filter_no_permission", "true");\ + private String filter_no_permission; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategorySizeModelsRequiredForPostCatDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategorySizeModelsRequiredForPostCatDTO.java new file mode 100644 index 0000000..f94064e --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategorySizeModelsRequiredForPostCatDTO.java @@ -0,0 +1,19 @@ +package com.ruoyi.web.controller.aliexpress.dto.category; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 10:02 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class CategorySizeModelsRequiredForPostCatDTO extends AliexpressAuth { + // request.addApiParameter("param0", "200000386"); + private String param0; + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategorySkuAttributeQueryDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategorySkuAttributeQueryDTO.java new file mode 100644 index 0000000..5a92bf2 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategorySkuAttributeQueryDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.category; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 9:41 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class CategorySkuAttributeQueryDTO extends AliexpressAuth{ + // request.addApiParameter("query_sku_attribute_info_request", "{\"category_id\":\"11112222\",\"aliexpress_category_id\":\"200000801\"}"); + private String query_sku_attribute_info_request; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/CategorySuggestionDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategorySuggestionDTO.java similarity index 85% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/CategorySuggestionDTO.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategorySuggestionDTO.java index 5cd1706..294f42d 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/CategorySuggestionDTO.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategorySuggestionDTO.java @@ -1,4 +1,4 @@ -package com.ruoyi.web.controller.aliexpress.dto; +package com.ruoyi.web.controller.aliexpress.dto.category; import com.ruoyi.web.core.config.AliexpressAuth; import lombok.Getter; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategoryTreeListDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategoryTreeListDTO.java new file mode 100644 index 0000000..6f3027b --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/category/CategoryTreeListDTO.java @@ -0,0 +1,24 @@ +package com.ruoyi.web.controller.aliexpress.dto.category; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 11:10 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class CategoryTreeListDTO extends AliexpressAuth { +// request.addApiParameter("channel_seller_id", "2671514005"); + private String channel_seller_id; +// request.addApiParameter("only_with_permission", "true"); + private String only_with_permission; +// request.addApiParameter("channel", "AE_GLOBAL"); + private String channel; +// request.addApiParameter("category_id", "0"); + private String category_id; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/FreightCalculateFreightDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/freight/FreightCalculateFreightDTO.java similarity index 95% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/FreightCalculateFreightDTO.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/freight/FreightCalculateFreightDTO.java index f03d25b..986225c 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/FreightCalculateFreightDTO.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/freight/FreightCalculateFreightDTO.java @@ -1,4 +1,4 @@ -package com.ruoyi.web.controller.aliexpress.dto; +package com.ruoyi.web.controller.aliexpress.dto.freight; import com.ruoyi.web.core.config.AliexpressAuth; import lombok.Getter; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/FreightGetFreightSettingByTemplateQueryDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/freight/FreightGetFreightSettingByTemplateQueryDTO.java similarity index 86% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/FreightGetFreightSettingByTemplateQueryDTO.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/freight/FreightGetFreightSettingByTemplateQueryDTO.java index aa3bd1c..fbfb494 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/FreightGetFreightSettingByTemplateQueryDTO.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/freight/FreightGetFreightSettingByTemplateQueryDTO.java @@ -1,4 +1,4 @@ -package com.ruoyi.web.controller.aliexpress.dto; +package com.ruoyi.web.controller.aliexpress.dto.freight; import com.ruoyi.web.core.config.AliexpressAuth; import lombok.Getter; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/FreightListFreightTemplateDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/freight/FreightListFreightTemplateDTO.java similarity index 82% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/FreightListFreightTemplateDTO.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/freight/FreightListFreightTemplateDTO.java index 3bd251b..3a763e9 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/FreightListFreightTemplateDTO.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/freight/FreightListFreightTemplateDTO.java @@ -1,4 +1,4 @@ -package com.ruoyi.web.controller.aliexpress.dto; +package com.ruoyi.web.controller.aliexpress.dto.freight; import com.ruoyi.web.core.config.AliexpressAuth; import lombok.Getter; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/member/MemberDsOrderDataSaveDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/member/MemberDsOrderDataSaveDTO.java new file mode 100644 index 0000000..195729d --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/member/MemberDsOrderDataSaveDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.member; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 15:25 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class MemberDsOrderDataSaveDTO extends AliexpressAuth { + //request.addApiParameter("dser_collect_data", "{\"ae_product_id\":\"1334345\",\"ae_sku_info\":\"200000182:193;200007763:201336100\",\"product_url\":\"https://www.yousite.com/item/32862631421.html\",\"order_amount\":\"35.33\",\"paytime\":\"20191122:150606\",\"ae_orderid\":\"1334345\",\"product_amount\":\"35.33\"}"); + private String dserCollectData; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/member/MemberOauthAuthorizeDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/member/MemberOauthAuthorizeDTO.java new file mode 100644 index 0000000..49a3bac --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/member/MemberOauthAuthorizeDTO.java @@ -0,0 +1,24 @@ +package com.ruoyi.web.controller.aliexpress.dto.member; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 15:27 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class MemberOauthAuthorizeDTO extends AliexpressAuth { + //request.addApiParameter("response_type", "code"); + private String responseType; + //request.addApiParameter("sns_authorization_code", "afjaodfjaojdfoajdfioa"); + private String snsAuthorizationCode; + //request.addApiParameter("sns_type", "ok"); + private String snsType; + //request.addApiParameter("auto_register", "true"); + private String autoRegister; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/member/MemberQueryAccountLevelDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/member/MemberQueryAccountLevelDTO.java new file mode 100644 index 0000000..b063b60 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/member/MemberQueryAccountLevelDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.member; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 15:29 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class MemberQueryAccountLevelDTO extends AliexpressAuth { + //request.addApiParameter("login_id", "jordenmail"); + private String loginId; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/member/MemberUicQueryTbNickDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/member/MemberUicQueryTbNickDTO.java new file mode 100644 index 0000000..0209189 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/member/MemberUicQueryTbNickDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.member; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 15:22 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class MemberUicQueryTbNickDTO extends AliexpressAuth { + //request.addApiParameter("login_id", "cn1519431219gong"); + private String loginId; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderAcceptCancelOrderDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderAcceptCancelOrderDTO.java similarity index 88% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderAcceptCancelOrderDTO.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderAcceptCancelOrderDTO.java index 0f2ca6b..f838a90 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderAcceptCancelOrderDTO.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderAcceptCancelOrderDTO.java @@ -1,4 +1,4 @@ -package com.ruoyi.web.controller.aliexpress.dto; +package com.ruoyi.web.controller.aliexpress.dto.order; import com.ruoyi.web.core.config.AliexpressAuth; import lombok.Getter; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderDecryptOrderDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderDecryptOrderDTO.java similarity index 89% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderDecryptOrderDTO.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderDecryptOrderDTO.java index b89b02b..d93a063 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderDecryptOrderDTO.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderDecryptOrderDTO.java @@ -1,4 +1,4 @@ -package com.ruoyi.web.controller.aliexpress.dto; +package com.ruoyi.web.controller.aliexpress.dto.order; import com.ruoyi.web.core.config.AliexpressAuth; import lombok.Getter; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderExtendsBuyerAcceptGoodsTimeDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderExtendsBuyerAcceptGoodsTimeDTO.java similarity index 88% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderExtendsBuyerAcceptGoodsTimeDTO.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderExtendsBuyerAcceptGoodsTimeDTO.java index fbb25c4..88bae65 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderExtendsBuyerAcceptGoodsTimeDTO.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderExtendsBuyerAcceptGoodsTimeDTO.java @@ -1,4 +1,4 @@ -package com.ruoyi.web.controller.aliexpress.dto; +package com.ruoyi.web.controller.aliexpress.dto.order; import com.ruoyi.web.core.config.AliexpressAuth; import lombok.Getter; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderFindLoanListQueryDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderFindLoanListQueryDTO.java similarity index 90% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderFindLoanListQueryDTO.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderFindLoanListQueryDTO.java index 7f3a747..86690ab 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderFindLoanListQueryDTO.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderFindLoanListQueryDTO.java @@ -1,4 +1,4 @@ -package com.ruoyi.web.controller.aliexpress.dto; +package com.ruoyi.web.controller.aliexpress.dto.order; import com.ruoyi.web.core.config.AliexpressAuth; import lombok.Getter; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderFindOrderBaseInfoDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderFindOrderBaseInfoDTO.java similarity index 90% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderFindOrderBaseInfoDTO.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderFindOrderBaseInfoDTO.java index eb06b24..83bd038 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderFindOrderBaseInfoDTO.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderFindOrderBaseInfoDTO.java @@ -1,4 +1,4 @@ -package com.ruoyi.web.controller.aliexpress.dto; +package com.ruoyi.web.controller.aliexpress.dto.order; import com.ruoyi.web.core.config.AliexpressAuth; import lombok.Getter; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderFindOrderByIdDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderFindOrderByIdDTO.java similarity index 88% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderFindOrderByIdDTO.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderFindOrderByIdDTO.java index 63f1f36..12d24f8 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderFindOrderByIdDTO.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderFindOrderByIdDTO.java @@ -1,4 +1,4 @@ -package com.ruoyi.web.controller.aliexpress.dto; +package com.ruoyi.web.controller.aliexpress.dto.order; import com.ruoyi.web.core.config.AliexpressAuth; import lombok.Getter; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderFindOrderListSimpleQueryDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderFindOrderListSimpleQueryDTO.java similarity index 91% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderFindOrderListSimpleQueryDTO.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderFindOrderListSimpleQueryDTO.java index 41bf060..0540074 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderFindOrderListSimpleQueryDTO.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderFindOrderListSimpleQueryDTO.java @@ -1,4 +1,4 @@ -package com.ruoyi.web.controller.aliexpress.dto; +package com.ruoyi.web.controller.aliexpress.dto.order; import com.ruoyi.web.core.config.AliexpressAuth; import lombok.Getter; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderFindOrderReceiptInfoDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderFindOrderReceiptInfoDTO.java similarity index 90% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderFindOrderReceiptInfoDTO.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderFindOrderReceiptInfoDTO.java index 8b94c80..15fbd74 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderFindOrderReceiptInfoDTO.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderFindOrderReceiptInfoDTO.java @@ -1,4 +1,4 @@ -package com.ruoyi.web.controller.aliexpress.dto; +package com.ruoyi.web.controller.aliexpress.dto.order; import com.ruoyi.web.core.config.AliexpressAuth; import lombok.Getter; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderFindOrderTradeInfoDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderFindOrderTradeInfoDTO.java similarity index 90% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderFindOrderTradeInfoDTO.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderFindOrderTradeInfoDTO.java index 6fee03f..3a03ede 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderFindOrderTradeInfoDTO.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderFindOrderTradeInfoDTO.java @@ -1,4 +1,4 @@ -package com.ruoyi.web.controller.aliexpress.dto; +package com.ruoyi.web.controller.aliexpress.dto.order; import com.ruoyi.web.core.config.AliexpressAuth; import lombok.Getter; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderFulfillSolutionOrderDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderFulfillSolutionOrderDTO.java similarity index 93% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderFulfillSolutionOrderDTO.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderFulfillSolutionOrderDTO.java index 1a6c513..a11cf63 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderFulfillSolutionOrderDTO.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderFulfillSolutionOrderDTO.java @@ -1,4 +1,4 @@ -package com.ruoyi.web.controller.aliexpress.dto; +package com.ruoyi.web.controller.aliexpress.dto.order; import com.ruoyi.web.core.config.AliexpressAuth; import lombok.Getter; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderGetReceiptInfoDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderGetReceiptInfoDTO.java similarity index 86% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderGetReceiptInfoDTO.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderGetReceiptInfoDTO.java index 0be6f4a..ba2c0fa 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderGetReceiptInfoDTO.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderGetReceiptInfoDTO.java @@ -1,4 +1,4 @@ -package com.ruoyi.web.controller.aliexpress.dto; +package com.ruoyi.web.controller.aliexpress.dto.order; import com.ruoyi.web.core.config.AliexpressAuth; import lombok.Getter; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderGetSolutionOrderListDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderGetSolutionOrderListDTO.java similarity index 95% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderGetSolutionOrderListDTO.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderGetSolutionOrderListDTO.java index ba22ff8..039dc9e 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderGetSolutionOrderListDTO.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderGetSolutionOrderListDTO.java @@ -1,4 +1,4 @@ -package com.ruoyi.web.controller.aliexpress.dto; +package com.ruoyi.web.controller.aliexpress.dto.order; import com.ruoyi.web.core.config.AliexpressAuth; import lombok.Getter; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderGetTaxationPlatformDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderGetTaxationPlatformDTO.java similarity index 82% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderGetTaxationPlatformDTO.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderGetTaxationPlatformDTO.java index cc75566..6f7ff23 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderGetTaxationPlatformDTO.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderGetTaxationPlatformDTO.java @@ -1,4 +1,4 @@ -package com.ruoyi.web.controller.aliexpress.dto; +package com.ruoyi.web.controller.aliexpress.dto.order; import com.ruoyi.web.core.config.AliexpressAuth; import lombok.Getter; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderOrderListGetDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderOrderListGetDTO.java similarity index 93% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderOrderListGetDTO.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderOrderListGetDTO.java index c09c5d2..ba05a94 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderOrderListGetDTO.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderOrderListGetDTO.java @@ -1,4 +1,4 @@ -package com.ruoyi.web.controller.aliexpress.dto; +package com.ruoyi.web.controller.aliexpress.dto.order; import com.ruoyi.web.core.config.AliexpressAuth; import lombok.Getter; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderQueryRemarkDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderQueryRemarkDTO.java similarity index 88% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderQueryRemarkDTO.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderQueryRemarkDTO.java index dc9035b..8066b0b 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderQueryRemarkDTO.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderQueryRemarkDTO.java @@ -1,4 +1,4 @@ -package com.ruoyi.web.controller.aliexpress.dto; +package com.ruoyi.web.controller.aliexpress.dto.order; import com.ruoyi.web.core.config.AliexpressAuth; import lombok.Getter; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderQueryRemarksDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderQueryRemarksDTO.java similarity index 88% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderQueryRemarksDTO.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderQueryRemarksDTO.java index f96f596..1092c98 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderQueryRemarksDTO.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderQueryRemarksDTO.java @@ -1,4 +1,4 @@ -package com.ruoyi.web.controller.aliexpress.dto; +package com.ruoyi.web.controller.aliexpress.dto.order; import com.ruoyi.web.core.config.AliexpressAuth; import lombok.Getter; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderRefuseCancelOrderDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderRefuseCancelOrderDTO.java similarity index 89% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderRefuseCancelOrderDTO.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderRefuseCancelOrderDTO.java index 8cbc8b7..ea3d3a1 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderRefuseCancelOrderDTO.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderRefuseCancelOrderDTO.java @@ -1,4 +1,4 @@ -package com.ruoyi.web.controller.aliexpress.dto; +package com.ruoyi.web.controller.aliexpress.dto.order; import com.ruoyi.web.core.config.AliexpressAuth; import lombok.Getter; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderSaveRemarkDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderSaveRemarkDTO.java similarity index 90% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderSaveRemarkDTO.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderSaveRemarkDTO.java index 6ced54b..80f26e6 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/OrderSaveRemarkDTO.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/order/OrderSaveRemarkDTO.java @@ -1,4 +1,4 @@ -package com.ruoyi.web.controller.aliexpress.dto; +package com.ruoyi.web.controller.aliexpress.dto.order; import com.ruoyi.web.core.config.AliexpressAuth; import lombok.Getter; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/PhotoBankDeleteUnUsePhotoDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/photobank/PhotoBankDeleteUnUsePhotoDTO.java similarity index 87% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/PhotoBankDeleteUnUsePhotoDTO.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/photobank/PhotoBankDeleteUnUsePhotoDTO.java index b41390a..20434bb 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/PhotoBankDeleteUnUsePhotoDTO.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/photobank/PhotoBankDeleteUnUsePhotoDTO.java @@ -1,4 +1,4 @@ -package com.ruoyi.web.controller.aliexpress.dto; +package com.ruoyi.web.controller.aliexpress.dto.photobank; import com.ruoyi.web.core.config.AliexpressAuth; import lombok.Getter; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/PhotoBankGetPhotoBankInfoDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/photobank/PhotoBankGetPhotoBankInfoDTO.java similarity index 81% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/PhotoBankGetPhotoBankInfoDTO.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/photobank/PhotoBankGetPhotoBankInfoDTO.java index b8b957f..c123e95 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/PhotoBankGetPhotoBankInfoDTO.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/photobank/PhotoBankGetPhotoBankInfoDTO.java @@ -1,4 +1,4 @@ -package com.ruoyi.web.controller.aliexpress.dto; +package com.ruoyi.web.controller.aliexpress.dto.photobank; import com.ruoyi.web.core.config.AliexpressAuth; import lombok.Getter; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/PhotoBankGetWbImageDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/photobank/PhotoBankGetWbImageDTO.java similarity index 88% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/PhotoBankGetWbImageDTO.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/photobank/PhotoBankGetWbImageDTO.java index f6180b9..e507f01 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/PhotoBankGetWbImageDTO.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/photobank/PhotoBankGetWbImageDTO.java @@ -1,4 +1,4 @@ -package com.ruoyi.web.controller.aliexpress.dto; +package com.ruoyi.web.controller.aliexpress.dto.photobank; import com.ruoyi.web.core.config.AliexpressAuth; import lombok.Getter; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/PhotoBankListGroupDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/photobank/PhotoBankListGroupDTO.java similarity index 85% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/PhotoBankListGroupDTO.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/photobank/PhotoBankListGroupDTO.java index 22be700..e8c5759 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/PhotoBankListGroupDTO.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/photobank/PhotoBankListGroupDTO.java @@ -1,4 +1,4 @@ -package com.ruoyi.web.controller.aliexpress.dto; +package com.ruoyi.web.controller.aliexpress.dto.photobank; import com.ruoyi.web.core.config.AliexpressAuth; import lombok.Getter; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/PhotoBankListImagePaginationDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/photobank/PhotoBankListImagePaginationDTO.java similarity index 88% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/PhotoBankListImagePaginationDTO.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/photobank/PhotoBankListImagePaginationDTO.java index 7f2e442..39a07f4 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/PhotoBankListImagePaginationDTO.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/photobank/PhotoBankListImagePaginationDTO.java @@ -1,4 +1,4 @@ -package com.ruoyi.web.controller.aliexpress.dto; +package com.ruoyi.web.controller.aliexpress.dto.photobank; import com.ruoyi.web.core.config.AliexpressAuth; import lombok.Getter; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/PhotoBankQueryPhotoBankImageByPathsDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/photobank/PhotoBankQueryPhotoBankImageByPathsDTO.java similarity index 87% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/PhotoBankQueryPhotoBankImageByPathsDTO.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/photobank/PhotoBankQueryPhotoBankImageByPathsDTO.java index 2a53f26..00d9362 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/PhotoBankQueryPhotoBankImageByPathsDTO.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/photobank/PhotoBankQueryPhotoBankImageByPathsDTO.java @@ -1,4 +1,4 @@ -package com.ruoyi.web.controller.aliexpress.dto; +package com.ruoyi.web.controller.aliexpress.dto.photobank; import com.ruoyi.web.core.config.AliexpressAuth; import lombok.Getter; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/PhotoBankUploadImageDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/photobank/PhotoBankUploadImageDTO.java similarity index 87% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/PhotoBankUploadImageDTO.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/photobank/PhotoBankUploadImageDTO.java index 7347a7f..c0e34e6 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/PhotoBankUploadImageDTO.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/photobank/PhotoBankUploadImageDTO.java @@ -1,4 +1,4 @@ -package com.ruoyi.web.controller.aliexpress.dto; +package com.ruoyi.web.controller.aliexpress.dto.photobank; import com.ruoyi.web.core.config.AliexpressAuth; import lombok.Getter; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/PhotoBankUploadTempImageDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/photobank/PhotoBankUploadTempImageDTO.java similarity index 81% rename from ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/PhotoBankUploadTempImageDTO.java rename to ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/photobank/PhotoBankUploadTempImageDTO.java index 30bcdf3..f0c4398 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/PhotoBankUploadTempImageDTO.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/photobank/PhotoBankUploadTempImageDTO.java @@ -1,4 +1,4 @@ -package com.ruoyi.web.controller.aliexpress.dto; +package com.ruoyi.web.controller.aliexpress.dto.photobank; import com.ruoyi.web.core.config.AliexpressAuth; import lombok.Getter; diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductBatchProductDeleteDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductBatchProductDeleteDTO.java new file mode 100644 index 0000000..31d0421 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductBatchProductDeleteDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 15:55 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductBatchProductDeleteDTO extends AliexpressAuth { + //request.addApiParameter("product_ids", "4000403362451,4000403362452"); + private String product_ids; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductBatchProductInventoryUpdateDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductBatchProductInventoryUpdateDTO.java new file mode 100644 index 0000000..08271f0 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductBatchProductInventoryUpdateDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 15:59 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductBatchProductInventoryUpdateDTO extends AliexpressAuth { + // request.addApiParameter("mutiple_product_update_list", "[{\"product_id\":\"1000005237852\",\"multiple_sku_update_list\":[{\"inventory\":\"99\",\"sku_code\":\"123abc\"},{\"inventory\":\"99\",\"sku_code\":\"123abc\"}]}]"); + private String mutiple_product_update_list; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductBatchProductPriceUpdateDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductBatchProductPriceUpdateDTO.java new file mode 100644 index 0000000..fb98478 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductBatchProductPriceUpdateDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 13:44 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductBatchProductPriceUpdateDTO extends AliexpressAuth { + // request.addApiParameter("mutiple_product_update_list", "[{\"product_id\":\"1000005237852\",\"multi_country_price_configuration\":{\"price_type\":\"absolute\",\"country_price_list\":[{\"sku_price_by_country_list\":[{\"price\":\"15\",\"discount_price\":\"13.99\",\"sku_code\":\"abc123\"},{\"price\":\"15\",\"discount_price\":\"13.99\",\"sku_code\":\"abc123\"}],\"ship_to_country\":\"FR\"},{\"sku_price_by_country_list\":[{\"price\":\"15\",\"discount_price\":\"13.99\",\"sku_code\":\"abc123\"},{\"price\":\"15\",\"discount_price\":\"13.99\",\"sku_code\":\"abc123\"}],\"ship_to_country\":\"FR\"}]},\"multiple_sku_update_list\":[{\"discount_price\":\"14.99\",\"price\":\"19.99\",\"sku_code\":\"123abc\"},{\"discount_price\":\"14.99\",\"price\":\"19.99\",\"sku_code\":\"123abc\"}]}]"); + private String mutiple_product_update_list; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductCarModelFindByTecIdDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductCarModelFindByTecIdDTO.java new file mode 100644 index 0000000..db248a6 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductCarModelFindByTecIdDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 17:31 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductCarModelFindByTecIdDTO extends AliexpressAuth { + // request.addApiParameter("tec_id", "22548"); + private String tec_id; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductCarModelFindByTecIdsDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductCarModelFindByTecIdsDTO.java new file mode 100644 index 0000000..9411c47 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductCarModelFindByTecIdsDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 17:01 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductCarModelFindByTecIdsDTO extends AliexpressAuth { + // request.addApiParameter("param", "{\"link_target_id_list\":[\"[]\",\"[]\"],\"current\":\"1\",\"year_id\":\"1\",\"model_id\":\"1\",\"country_id\":\"1\",\"brand_id\":\"1\",\"page_size\":\"10\"}"); + private String param; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductCarModelFindListByProductIdDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductCarModelFindListByProductIdDTO.java new file mode 100644 index 0000000..6a416be --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductCarModelFindListByProductIdDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 17:13 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductCarModelFindListByProductIdDTO extends AliexpressAuth { + // request.addApiParameter("param0", "{\"product_id\":\"\\\"1005004513947684\\\"\",\"channel\":\"AE_GLOBAL\",\"channel_seller_id\":\"2671514005\"}"); + private String param0; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductCarModelGetArticleDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductCarModelGetArticleDTO.java new file mode 100644 index 0000000..cb48f3c --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductCarModelGetArticleDTO.java @@ -0,0 +1,19 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 17:29 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductCarModelGetArticleDTO extends AliexpressAuth { + //request.addApiParameter("param0", "{\"current\":\"1\",\"language\":\"zh\",\"search_query\":\"4233244\",\"search_type\":\"1\",\"page_size\":\"10\"}"); + private String param0; + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductCarModelGetBrandDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductCarModelGetBrandDTO.java new file mode 100644 index 0000000..2ea7dcc --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductCarModelGetBrandDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 17:22 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductCarModelGetBrandDTO extends AliexpressAuth { + //request.addApiParameter("param0", "{\"lang\":\"zh\"}"); + private String param0; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductCarModelGetCountryDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductCarModelGetCountryDTO.java new file mode 100644 index 0000000..fc78414 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductCarModelGetCountryDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 17:24 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductCarModelGetCountryDTO extends AliexpressAuth { + //request.addApiParameter("param0", "{\"lang\":\"zh\"}"); + private String param0; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductCarModelGetLinkTargetDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductCarModelGetLinkTargetDTO.java new file mode 100644 index 0000000..8cfb5d6 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductCarModelGetLinkTargetDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 17:28 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductCarModelGetLinkTargetDTO extends AliexpressAuth { + //request.addApiParameter("param0", "{\"article_id_list\":[\"[\\\"1222211\\\",\\\"221\\\"]\",\"[\\\"1222211\\\",\\\"221\\\"]\"],\"linking_target_type\":\"V\",\"lang\":\"zh\"}"); + private String param0; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductCarModelUpdateProductCarInfoDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductCarModelUpdateProductCarInfoDTO.java new file mode 100644 index 0000000..3027192 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductCarModelUpdateProductCarInfoDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 16:59 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductCarModelUpdateProductCarInfoDTO extends AliexpressAuth { + //request.addApiParameter("param0", "{\"delete_af_ids\":[\"[\\\"US323221\\\"]\",\"[\\\"US323221\\\"]\"],\"product_id\":\"\\\"1005005113643414\\\"\",\"channel_seller_id\":\"2671514005\",\"channel\":\"AE_GLOBAL\",\"add_af_ids\":[\"[\\\"US122121\\\"]\",\"[\\\"US122121\\\"]\"]}"); + private String param0; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductCategoryForecastDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductCategoryForecastDTO.java new file mode 100644 index 0000000..9c6ed94 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductCategoryForecastDTO.java @@ -0,0 +1,24 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 17:34 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductCategoryForecastDTO extends AliexpressAuth { + //request.addApiParameter("image_url", "https://ae01.alicdn.com/kf/S1f7eae683d124854973b72563474e170V.jpg"); + //request.addApiParameter("subject", "elle+sport+sujetador+deportivo+gunn+rosa"); + //request.addApiParameter("locale", "es"); + //request.addApiParameter("is_filter_by_permission", "N"); + private String image_url; + private String subject; + private String locale; + private String is_filter_by_permission; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductCopySizeTemplateDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductCopySizeTemplateDTO.java new file mode 100644 index 0000000..58f70b6 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductCopySizeTemplateDTO.java @@ -0,0 +1,20 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 16:56 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductCopySizeTemplateDTO extends AliexpressAuth { + //request.addApiParameter("size_template_id", "1"); + //request.addApiParameter("target_leaf_id", "364"); + private String size_template_id; + private String target_leaf_id; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductDraftProductGetDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductDraftProductGetDTO.java new file mode 100644 index 0000000..1f64594 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductDraftProductGetDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 15:54 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductDraftProductGetDTO extends AliexpressAuth { + //request.addApiParameter("product_id", "1307422965"); + private String product_id; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductDraftProductGetNewDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductDraftProductGetNewDTO.java new file mode 100644 index 0000000..5e43ac7 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductDraftProductGetNewDTO.java @@ -0,0 +1,19 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 17:19 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductDraftProductGetNewDTO extends AliexpressAuth { + //request.addApiParameter("product_id", "1307422965"); + private String product_id; + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductDraftProductsGetDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductDraftProductsGetDTO.java new file mode 100644 index 0000000..ad07dde --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductDraftProductsGetDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 17:21 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductDraftProductsGetDTO extends AliexpressAuth { + //request.addApiParameter("aeop_a_e_product_list_query", "{\"current_page\":\"2\",\"page_size\":\"30\"}"); + private String aeop_a_e_product_list_query; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductEditMultiLanguageProductDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductEditMultiLanguageProductDTO.java new file mode 100644 index 0000000..5651eda --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductEditMultiLanguageProductDTO.java @@ -0,0 +1,20 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 17:44 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductEditMultiLanguageProductDTO extends AliexpressAuth { + //request.addApiParameter("product_id", "32234411234"); + //request.addApiParameter("aeop_a_e_product_multilanguage_info", "{\"mobile_detail\":\"{ \\\"mobileDetail\\\": [ { \\\"content\\\": \\\"context1\\\", \\\"type\\\": \\\"text\\\" }, { \\\"col\\\": 1, \\\"images\\\": [ { \\\"height\\\":500, \\\"imgUrl\\\": \\\"https://ae01.alicdn.com/kf/HTB1WQ.MKpXXXXXhXVXXq6xXFXXX6.jpg\\\", \\\"width\\\":500, \\\"targetUrl\\\":\\\"https://ae01.alicdn.com/kf/HTB1WQ.MKpXXXXXhXVXXq6xXFXXX6.jpg\\\" }, { \\\"imgUrl\\\": \\\"https://ae01.alicdn.com/kf/HTB1WQ.MKpXXXXXhXVXXq6xXFXXX6.jpg\\\", \\\"targetUrl\\\":\\\"https://ae01.alicdn.com/kf/HTB1WQ.MKpXXXXXhXVXXq6xXFXXX6.jpg\\\" } ], \\\"type\\\": \\\"image\\\" }, { \\\"content\\\": \\\"context3\\\", \\\"type\\\": \\\"text\\\" } ], \\\"version\\\": \\\"1.0\\\", \\\"versionNum\\\": 1}\",\"subject\":\"foo\",\"detail\":\"bar\",\"locale\":\"ru_RU\"}"); + private String product_id; + private String aeop_a_e_product_multilanguage_info; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductEditMultipleSkuStocksDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductEditMultipleSkuStocksDTO.java new file mode 100644 index 0000000..6f289cf --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductEditMultipleSkuStocksDTO.java @@ -0,0 +1,20 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 17:38 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductEditMultipleSkuStocksDTO extends AliexpressAuth { + //request.addApiParameter("product_id", "32297192242"); + //request.addApiParameter("sku_stocks", "{\"14:200003699;5:100014064\":240, \"14:200003699;5:361386\": 220}"); + private String product_id; + private String sku_stocks; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductEditProductCategoryAttributesDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductEditProductCategoryAttributesDTO.java new file mode 100644 index 0000000..aa3fda4 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductEditProductCategoryAttributesDTO.java @@ -0,0 +1,20 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 17:45 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductEditProductCategoryAttributesDTO extends AliexpressAuth { + //request.addApiParameter("product_id", "1706468951"); + //request.addApiParameter("product_category_attributes", "[{\"attr_name_id\":\"0\",\"attr_name\":\"0\",\"attr_value_id\":\"0\",\"attr_value_unit\":\"0\",\"attr_value\":\"0\",\"attr_value_end\":\"0\",\"attr_value_start\":\"0\"}]"); + private String product_id; + private String product_category_attributes; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductEditSimpleProductFiledDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductEditSimpleProductFiledDTO.java new file mode 100644 index 0000000..f88bf61 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductEditSimpleProductFiledDTO.java @@ -0,0 +1,22 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 17:42 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductEditSimpleProductFiledDTO extends AliexpressAuth { + //request.addApiParameter("product_id", "1234"); + //request.addApiParameter("fied_name", "deliveryTime"); + //request.addApiParameter("fiedvalue", "{ \"mobileDetail\": [ { \"type\": \"text\", \"content\": \" POSTAGE<>: We provide free express shipping via UPS / DHL / FEDEX / EMS / TNT / ARAMEX / for most of country when your orders around US$200 (please contact us if you have qustions). Delivery time around 4-7 days (business days).NOTE<>: We have only one store called 'TWOTWINSTYLE' on aliexpress. The products selling in other stores with same designs or photos are not from us. 'TWOTWINSTYLE' have their own separate production lines, all merchandise sold are exclusive and high quality.\" } ], \"version\": \"1.0\", \"versionNum\": 1}"); + private String product_id; + private String fied_name; + private String fiedvalue; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductEditSingleSkuPriceDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductEditSingleSkuPriceDTO.java new file mode 100644 index 0000000..33fc002 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductEditSingleSkuPriceDTO.java @@ -0,0 +1,24 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 17:39 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductEditSingleSkuPriceDTO extends AliexpressAuth { + //request.addApiParameter("product_id", "123456789"); + //request.addApiParameter("sku_id", "14:771;5:100014066"); + //request.addApiParameter("sku_price", "999"); + //request.addApiParameter("sale_price", "999"); + private String product_id; + private String sku_id; + private String sku_price; + private String sale_price; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductEditSingleSkuStockDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductEditSingleSkuStockDTO.java new file mode 100644 index 0000000..6335b71 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductEditSingleSkuStockDTO.java @@ -0,0 +1,22 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 17:41 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductEditSingleSkuStockDTO extends AliexpressAuth { + //request.addApiParameter("product_id", "32297192242"); + //request.addApiParameter("sku_id", "14:200003699;5:100014065"); + //request.addApiParameter("ipm_sku_stock", "299"); + private String product_id; + private String sku_id; + private String ipm_sku_stock; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductFeedInvalidateDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductFeedInvalidateDTO.java new file mode 100644 index 0000000..0872052 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductFeedInvalidateDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 15:47 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductFeedInvalidateDTO extends AliexpressAuth { + //request.addApiParameter("job_id_list", "200000099310034475;200000099110014475;200000014009554475"); + private String job_id_list; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductFeedListGetDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductFeedListGetDTO.java new file mode 100644 index 0000000..acd6b66 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductFeedListGetDTO.java @@ -0,0 +1,28 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 16:01 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductFeedListGetDTO extends AliexpressAuth { + //request.addApiParameter("current_page", "2"); + private String current_page; + //request.addApiParameter("feed_type", "PRODUCT_CREATE"); + private String feed_type; + //request.addApiParameter("page_size", "50"); + private String page_size; + //request.addApiParameter("status", "FINISH"); + private String status; + //request.addApiParameter("submitted_time_end", "2020-11-12 06:00:00"); + private String submitted_time_end; + //request.addApiParameter("submitted_time_start", "2020-11-01 02:00:00"); + private String submitted_time_start; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductFeedQueryDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductFeedQueryDTO.java new file mode 100644 index 0000000..5544ece --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductFeedQueryDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 16:07 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductFeedQueryDTO extends AliexpressAuth { + //request.addApiParameter("job_id", "200000000060054475"); + private String job_id; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductFeedSubmitDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductFeedSubmitDTO.java new file mode 100644 index 0000000..e307f72 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductFeedSubmitDTO.java @@ -0,0 +1,23 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 16:09 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductFeedSubmitDTO extends AliexpressAuth { + //request.addApiParameter("operation_type", "PRODUCT_CREATE"); + private String operation_type; + //request.addApiParameter("item_list", "[{\"item_content_id\":\"A00000000Y1\",\"item_content\":\"{\\\"category_id\\\":200000346,\\\"title_multi_language_list\\\":[{\\\"locale\\\":\\\"es_ES\\\",\\\"title\\\":\\\"test\\\"}],\\\"description_multi_language_list\\\":[{\\\"locale\\\":\\\"es_ES\\\",\\\"module_list\\\":[{\\\"type\\\":\\\"html\\\",\\\"html\\\":{\\\"content\\\":\\\"test\\\"}}]}],\\\"locale\\\":\\\"es_ES\\\",\\\"product_units_type\\\":\\\"100000000\\\",\\\"image_url_list\\\":[\\\"https://ae01.alicdn.com/kf/HTB1TZJRVkvoK1RjSZFwq6AiCFXa0.jpg_350x350.jpg\\\"],\\\"category_attributes\\\":{\\\"Brand Name\\\":{\\\"value\\\":\\\"200010868\\\"},\\\"Material\\\":{\\\"value\\\":[\\\"47\\\",\\\"49\\\"]},\\\"Clothing Length\\\":{\\\"value\\\":\\\"1876\\\"}},\\\"sku_info_list\\\":[{\\\"sku_code\\\":\\\"234\\\",\\\"inventory\\\":234,\\\"price\\\":23,\\\"discount_price\\\":12,\\\"sku_attributes\\\":{\\\"Size\\\":{\\\"value\\\":\\\"200000989\\\"},\\\"Color\\\":{\\\"alias\\\":\\\"32\\\",\\\"sku_image_url\\\":\\\"https://ae01.alicdn.com/kf/HTB1TZJRVkvoK1RjSZFwq6AiCFXa0.jpg_350x350.jpg\\\",\\\"value\\\":\\\"771\\\"}}}],\\\"inventory_deduction_strategy\\\":\\\"place_order_withhold\\\",\\\"package_weight\\\":234,\\\"package_length\\\":234,\\\"package_height\\\":234,\\\"package_width\\\":234,\\\"shipping_preparation_time\\\":3,\\\"shipping_template_id\\\":\\\"1000\\\",\\\"service_template_id\\\":\\\"0\\\"}\"}]"); + private String item_list; + //request.addApiParameter("developer_features", "{\"source\":\"Lengow\"}"); + private String developer_features; + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductFindAeProductByIdDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductFindAeProductByIdDTO.java new file mode 100644 index 0000000..f955a60 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductFindAeProductByIdDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 17:47 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductFindAeProductByIdDTO extends AliexpressAuth { + //request.addApiParameter("product_id", "1307422965"); + private String product_id; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductFindAeProductDetailModuleListByQueryDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductFindAeProductDetailModuleListByQueryDTO.java new file mode 100644 index 0000000..cb60a8a --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductFindAeProductDetailModuleListByQueryDTO.java @@ -0,0 +1,23 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 17:08 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductFindAeProductDetailModuleListByQueryDTO extends AliexpressAuth { + //request.addApiParameter("module_status", "approved"); + //request.addApiParameter("type", "custom"); + //request.addApiParameter("page_index", "1"); + private String module_status; + private String type; + private String page_index; + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductFindAeProductModuleByIdDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductFindAeProductModuleByIdDTO.java new file mode 100644 index 0000000..278f8d8 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductFindAeProductModuleByIdDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 17:10 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductFindAeProductModuleByIdDTO extends AliexpressAuth { + //request.addApiParameter("module_id", "0"); + private String module_id; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductFindAeProductProhibitedWordsDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductFindAeProductProhibitedWordsDTO.java new file mode 100644 index 0000000..8fd798d --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductFindAeProductProhibitedWordsDTO.java @@ -0,0 +1,26 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 16:54 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductFindAeProductProhibitedWordsDTO extends AliexpressAuth { + //request.addApiParameter("category_id", "322"); + //request.addApiParameter("title", "nike"); + //request.addApiParameter("keywords", "0"); + //request.addApiParameter("product_properties", "0"); + //request.addApiParameter("detail", "This is a test for the product."); + private String category_id; + private String title; + private String keywords; + private String product_properties; + private String detail; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductFindAeProductStatusByIdDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductFindAeProductStatusByIdDTO.java new file mode 100644 index 0000000..b70dd96 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductFindAeProductStatusByIdDTO.java @@ -0,0 +1,20 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 17:11 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductFindAeProductStatusByIdDTO extends AliexpressAuth { + //request.addApiParameter("product_id", "32462942083"); + private String product_id; + + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductGetProductGroupListDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductGetProductGroupListDTO.java new file mode 100644 index 0000000..2dd7403 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductGetProductGroupListDTO.java @@ -0,0 +1,17 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 17:50 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductGetProductGroupListDTO extends AliexpressAuth { + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductGetSizeChartInfoByCategoryIdDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductGetSizeChartInfoByCategoryIdDTO.java new file mode 100644 index 0000000..7c45f97 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductGetSizeChartInfoByCategoryIdDTO.java @@ -0,0 +1,23 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 17:32 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductGetSizeChartInfoByCategoryIdDTO extends AliexpressAuth { + //request.addApiParameter("channel", "AE_GLOBAL"); + //request.addApiParameter("channel_seller_id", "2671514005"); + //request.addApiParameter("category_id", "348"); + private String channel; + private String channel_seller_id; + private String category_id; + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductGetSizeTemplatesByCategoryIdDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductGetSizeTemplatesByCategoryIdDTO.java new file mode 100644 index 0000000..367d799 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductGetSizeTemplatesByCategoryIdDTO.java @@ -0,0 +1,25 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 17:48 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductGetSizeTemplatesByCategoryIdDTO extends AliexpressAuth { + //request.addApiParameter("channel_seller_id", "2671514005"); + //request.addApiParameter("channel", "AE_GLOBAL"); + //request.addApiParameter("leaf_category_id", "348"); + //request.addApiParameter("current_page", "1"); + private String channel_seller_id; + private String channel; + private String leaf_category_id; + private String current_page; + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductHsCodeQueryDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductHsCodeQueryDTO.java new file mode 100644 index 0000000..3976787 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductHsCodeQueryDTO.java @@ -0,0 +1,21 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 16:12 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductHsCodeQueryDTO extends AliexpressAuth { + //request.addApiParameter("country_code", "TR"); + private String country_code; + //request.addApiParameter("category_id", "5090301"); + private String category_id; + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductInitialNewBundleDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductInitialNewBundleDTO.java new file mode 100644 index 0000000..676f7f3 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductInitialNewBundleDTO.java @@ -0,0 +1,20 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 17:53 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductInitialNewBundleDTO extends AliexpressAuth { + //request.addApiParameter("main_item_id", "32840310226"); + //request.addApiParameter("sub_item_list", "[32829102949]"); + private String main_item_id; + private String sub_item_list; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductMerchantProfileGetDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductMerchantProfileGetDTO.java new file mode 100644 index 0000000..8fb99d2 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductMerchantProfileGetDTO.java @@ -0,0 +1,17 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 16:14 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductMerchantProfileGetDTO extends AliexpressAuth { + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductPostProductRedefiningCreateProductGroupDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductPostProductRedefiningCreateProductGroupDTO.java new file mode 100644 index 0000000..4ffb8ce --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductPostProductRedefiningCreateProductGroupDTO.java @@ -0,0 +1,20 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 16:26 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductPostProductRedefiningCreateProductGroupDTO extends AliexpressAuth { + //request.addApiParameter("name", "foo"); + private String name; + //request.addApiParameter("parent_id", "100"); + private String parent_id; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductPostProductRedefiningEditAeProductDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductPostProductRedefiningEditAeProductDTO.java new file mode 100644 index 0000000..8c6ed9c --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductPostProductRedefiningEditAeProductDTO.java @@ -0,0 +1,20 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 16:22 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductPostProductRedefiningEditAeProductDTO extends AliexpressAuth { + //request.addApiParameter("ext_param", "{ \"custom_image\": { \"image\": { \"RU\": \"http://g01.a.alicdn.com/kf/HTB13GKLJXXXXXbYaXXXq6xXFXXXi.jpg;http://g02.a.alicdn.com/kf/HTB1DkaWJXXXXXb6XFXXq6xXFXXXp.jpg;http://g02.a.alicdn.com/kf/HTB1pMCQJXXXXXcvXVXXq6xXFXXXm.jpg;http://g03.a.alicdn.com/kf/HTB1QhORJXXXXXbiXVXXq6xXFXXXx.jpg;http://g02.a.alicdn.com/kf/HTB1q1aLJXXXXXcfaXXXq6xXFXXXv.jpg\", \"BR\": \"http://g01.a.alicdn.com/kf/HTB13GKLJXXXXXbYaXXXq6xXFXXXi.jpg;http://g02.a.alicdn.com/kf/HTB1DkaWJXXXXXb6XFXXq6xXFXXXp.jpg;http://g02.a.alicdn.com/kf/HTB1pMCQJXXXXXcvXVXXq6xXFXXXm.jpg;http://g03.a.alicdn.com/kf/HTB1QhORJXXXXXbiXVXXq6xXFXXXx.jpg;http://g02.a.alicdn.com/kf/HTB1q1aLJXXXXXcfaXXXq6xXFXXXv.jpg\", \"ES\": \"\" }, \"process_customized_image\": true }, \"vat_tags\": [{ \"sku_id\": \"200007763:201336100\", \"is_sku_vat_tag\": true }] }"); + //request.addApiParameter("aeop_a_e_product", "{\"lot_num\":\"1\",\"aeop_ae_product_propertys\":[{\"attr_name_id\":\"200000043\",\"attr_name\":\"size\",\"attr_value_id\":\"493\",\"attr_value_unit\":\"0\",\"attr_value\":\"2 - 5 kg\",\"attr_value_end\":\"0\",\"attr_value_start\":\"0\"},{\"attr_name_id\":\"200000043\",\"attr_name\":\"size\",\"attr_value_id\":\"493\",\"attr_value_unit\":\"0\",\"attr_value\":\"2 - 5 kg\",\"attr_value_end\":\"0\",\"attr_value_start\":\"0\"}],\"coupon_end_date\":\"2017-06-28 20:22:01\",\"mobile_detail\":\"mobile Detail html block\",\"mode_size_chart_list\":[{\"mode_size\":\"2\",\"hips\":\"2.1\",\"waist\":\"2\",\"bust\":\"2\",\"height\":\"2\"},{\"mode_size\":\"2\",\"hips\":\"2.1\",\"waist\":\"2\",\"bust\":\"2\",\"height\":\"2\"}],\"subject\":\"knew odd\",\"ws_display\":\"expire_offline\",\"ws_valid_num\":\"30\",\"product_price\":\"10.11\",\"product_status_type\":\"onSelling\",\"aeop_national_quote_configuration\":{\"configuration_data\":\"[{\\\"shiptoCountry\\\":\\\"US\\\",\\\"percentage\\\":\\\"5\\\"},{\\\"shiptoCountry\\\":\\\"RU\\\",\\\"percentage\\\":\\\"-2\\\"}]\",\"configuration_type\":\"percentage\"},\"delivery_time\":\"3\",\"package_type\":\"false\",\"owner_member_seq\":\"1006680305\",\"base_unit\":\"1\",\"currency_code\":\"USD\",\"is_pack_sell\":\"false\",\"add_weight\":\"30.11\",\"coupon_start_date\":\"2017-06-28 20:22:01\",\"package_height\":\"40\",\"aeop_ae_product_s_k_us\":[{\"sku_discount_price\":\"12.05\",\"sku_price\":\"200.07\",\"ipm_sku_stock\":\"1111\",\"sku_stock\":\"false\",\"aeop_s_k_u_national_discount_price\":[{\"discount_price\":\"10.01\",\"shipto_country\":\"RU\"},{\"discount_price\":\"10.01\",\"shipto_country\":\"RU\"}],\"id\":\"\\\"200000182:193;200007763:201336100\\\"\",\"ean_code\":\"12345678\",\"aeop_s_k_u_property\":[{\"sku_image\":\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"property_value_definition_name\":\"pink\",\"property_value_id\":\"366\",\"sku_property_id\":\"14\",\"image_url_list\":[\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\"]},{\"sku_image\":\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"property_value_definition_name\":\"pink\",\"property_value_id\":\"366\",\"sku_property_id\":\"14\",\"image_url_list\":[\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\"]}],\"sku_code\":\"cfas00978\",\"currency_code\":\"USD;RUB\"},{\"sku_discount_price\":\"12.05\",\"sku_price\":\"200.07\",\"ipm_sku_stock\":\"1111\",\"sku_stock\":\"false\",\"aeop_s_k_u_national_discount_price\":[{\"discount_price\":\"10.01\",\"shipto_country\":\"RU\"},{\"discount_price\":\"10.01\",\"shipto_country\":\"RU\"}],\"id\":\"\\\"200000182:193;200007763:201336100\\\"\",\"ean_code\":\"12345678\",\"aeop_s_k_u_property\":[{\"sku_image\":\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"property_value_definition_name\":\"pink\",\"property_value_id\":\"366\",\"sku_property_id\":\"14\",\"image_url_list\":[\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\"]},{\"sku_image\":\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"property_value_definition_name\":\"pink\",\"property_value_id\":\"366\",\"sku_property_id\":\"14\",\"image_url_list\":[\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\"]}],\"sku_code\":\"cfas00978\",\"currency_code\":\"USD;RUB\"}],\"category_id\":\"200002101\",\"image_u_r_ls\":\"http://g01.a.alicdn.com/kf/HTB13GKLJXXXXXbYaXXXq6xXFXXXi.jpg;http://g02.a.alicdn.com/kf/HTB1DkaWJXXXXXb6XFXXq6xXFXXXp.jpg;http://g02.a.alicdn.com/kf/HTB1pMCQJXXXXXcvXVXXq6xXFXXXm.jpg;http://g03.a.alicdn.com/kf/HTB1QhORJXXXXXbiXVXXq6xXFXXXx.jpg;http://g02.a.alicdn.com/kf/HTB1q1aLJXXXXXcfaXXXq6xXFXXXv.jpg\",\"package_length\":\"20\",\"product_id\":\"1239273\",\"product_more_keywords2\":\"0\",\"reduce_strategy\":\"place_order_withhold\",\"product_more_keywords1\":\"0\",\"gross_weight\":\"50\",\"keyword\":\"0\",\"freight_template_id\":\"1\",\"ws_offline_date\":\"2017-06-28 20:22:01\",\"promise_template_id\":\"100\",\"summary\":\"0\",\"sizechart_id\":\"123\",\"aeop_a_e_multimedia\":{\"aeop_a_e_videos\":[{\"media_status\":\"approved\",\"media_type\":\"video\",\"ali_member_id\":\"1006680305\",\"media_id\":\"12345678\",\"poster_url\":\"http://img01.taobaocdn.com/bao/uploaded/TB1rNdGIVXXXXbTXFXXXXXXXXXX.jpg\"},{\"media_status\":\"approved\",\"media_type\":\"video\",\"ali_member_id\":\"1006680305\",\"media_id\":\"12345678\",\"poster_url\":\"http://img01.taobaocdn.com/bao/uploaded/TB1rNdGIVXXXXbTXFXXXXXXXXXX.jpg\"}]},\"src\":\"isv\",\"bulk_order\":\"5\",\"owner_member_id\":\"aliqatest01\",\"product_unit\":\"100000000\",\"package_width\":\"30\",\"add_unit\":\"2\",\"group_id\":\"123\",\"bulk_discount\":\"90\",\"is_image_dynamic\":\"false\",\"detail\":\"detail html block\"}"); + private String ext_param; + private String aeop_a_e_product; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductPostProductRedefiningFindProductInfoListQueryDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductPostProductRedefiningFindProductInfoListQueryDTO.java new file mode 100644 index 0000000..c58671c --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductPostProductRedefiningFindProductInfoListQueryDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 16:39 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductPostProductRedefiningFindProductInfoListQueryDTO extends AliexpressAuth { + //request.addApiParameter("aeop_a_e_product_list_query", "{\"gmt_modified_start\":\"2012-01-01 12:13:14\",\"gmt_modified_end\":\"2012-01-01 12:13:14\",\"off_line_time\":\"7\",\"gmt_create_start\":\"2012-01-01 12:13:14\",\"subject\":\"knew odd\",\"have_national_quote\":\"n\",\"ws_display\":\"expire_offline\",\"product_status_type\":\"onSelling\",\"owner_member_id\":\"123\",\"gmt_create_end\":\"2012-01-01 12:13:14\",\"group_id\":\"1234\",\"product_id\":\"123\",\"excepted_product_ids\":[\"[32962333569,32813963253]\",\"[32962333569,32813963253]\"],\"current_page\":\"2\",\"page_size\":\"30\"}"); + private String aeop_a_e_product_list_query; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductPostProductRedefiningOfflineAeProductDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductPostProductRedefiningOfflineAeProductDTO.java new file mode 100644 index 0000000..4b19ab6 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductPostProductRedefiningOfflineAeProductDTO.java @@ -0,0 +1,20 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 16:35 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductPostProductRedefiningOfflineAeProductDTO extends AliexpressAuth { + //request.addApiParameter("edit_reason", "product_diagnosis"); + //request.addApiParameter("product_ids", "109827;109828"); + private String edit_reason; + private String product_ids; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductPostProductRedefiningOnlineAeProductDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductPostProductRedefiningOnlineAeProductDTO.java new file mode 100644 index 0000000..93302eb --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductPostProductRedefiningOnlineAeProductDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 16:33 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductPostProductRedefiningOnlineAeProductDTO extends AliexpressAuth { + //request.addApiParameter("product_ids", "109827;109828"); + private String product_ids; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductPostProductRedefiningPostAeProductDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductPostProductRedefiningPostAeProductDTO.java new file mode 100644 index 0000000..332a632 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductPostProductRedefiningPostAeProductDTO.java @@ -0,0 +1,20 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 16:28 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductPostProductRedefiningPostAeProductDTO extends AliexpressAuth { + //request.addApiParameter("ext_param", "{ \"custom_image\": { \"image\": { \"RU\": \"http://g01.a.alicdn.com/kf/HTB13GKLJXXXXXbYaXXXq6xXFXXXi.jpg;http://g02.a.alicdn.com/kf/HTB1DkaWJXXXXXb6XFXXq6xXFXXXp.jpg;http://g02.a.alicdn.com/kf/HTB1pMCQJXXXXXcvXVXXq6xXFXXXm.jpg;http://g03.a.alicdn.com/kf/HTB1QhORJXXXXXbiXVXXq6xXFXXXx.jpg;http://g02.a.alicdn.com/kf/HTB1q1aLJXXXXXcfaXXXq6xXFXXXv.jpg\", \"BR\": \"http://g01.a.alicdn.com/kf/HTB13GKLJXXXXXbYaXXXq6xXFXXXi.jpg;http://g02.a.alicdn.com/kf/HTB1DkaWJXXXXXb6XFXXq6xXFXXXp.jpg;http://g02.a.alicdn.com/kf/HTB1pMCQJXXXXXcvXVXXq6xXFXXXm.jpg;http://g03.a.alicdn.com/kf/HTB1QhORJXXXXXbiXVXXq6xXFXXXx.jpg;http://g02.a.alicdn.com/kf/HTB1q1aLJXXXXXcfaXXXq6xXFXXXv.jpg\", \"ES\": \"\" }, \"process_customized_image\": true }, \"vat_tags\": [{ \"sku_id\": \"200007763:201336100\", \"is_sku_vat_tag\": true }] }"); + //request.addApiParameter("aeop_a_e_product", "{\"lot_num\":\"1\",\"aeop_ae_product_propertys\":[{\"attr_name_id\":\"0\",\"attr_name\":\"0\",\"attr_value_id\":\"0\",\"attr_value_unit\":\"0\",\"attr_value\":\"0\",\"attr_value_end\":\"0\",\"attr_value_start\":\"0\"},{\"attr_name_id\":\"0\",\"attr_name\":\"0\",\"attr_value_id\":\"0\",\"attr_value_unit\":\"0\",\"attr_value\":\"0\",\"attr_value_end\":\"0\",\"attr_value_start\":\"0\"}],\"coupon_end_date\":\"2017-06-28 20:22:01\",\"mobile_detail\":\"mobile Detail html block\",\"mode_size_chart_list\":[{\"mode_size\":\"R\",\"hips\":\"2.3\",\"waist\":\"2\",\"bust\":\"2\",\"height\":\"2\"},{\"mode_size\":\"R\",\"hips\":\"2.3\",\"waist\":\"2\",\"bust\":\"2\",\"height\":\"2\"}],\"subject\":\"knew odd of test\",\"ws_display\":\"0\",\"ws_valid_num\":\"30\",\"aeop_national_quote_configuration\":{\"configuration_data\":\"[{\\\"shiptoCountry\\\":\\\"US\\\",\\\"percentage\\\":\\\"5\\\"},{\\\"shiptoCountry\\\":\\\"RU\\\",\\\"percentage\\\":\\\"-2\\\"}]\",\"configuration_type\":\"percentage, relative\"},\"delivery_time\":\"7\",\"product_price\":\"11.00\",\"product_status_type\":\"0\",\"owner_member_seq\":\"0\",\"package_type\":\"false\",\"base_unit\":\"1\",\"currency_code\":\"USD;RUB\",\"is_pack_sell\":\"false\",\"coupon_start_date\":\"2017-06-28 20:22:01\",\"package_height\":\"40\",\"add_weight\":\"3.03\",\"category_id\":\"200002101\",\"aeop_ae_product_s_k_us\":[{\"sku_discount_price\":\"10.01\",\"sku_price\":\"0\",\"ipm_sku_stock\":\"0\",\"sku_stock\":\"true\",\"aeop_s_k_u_national_discount_price\":[{\"discount_price\":\"9.09\",\"shipto_country\":\"RU\"},{\"discount_price\":\"9.09\",\"shipto_country\":\"RU\"}],\"id\":\"0\",\"ean_code\":\"12345678\",\"aeop_s_k_u_property\":[{\"sku_image\":\"0\",\"property_value_definition_name\":\"0\",\"property_value_id\":\"0\",\"sku_property_id\":\"0\",\"image_url_list\":[\"http://dda/a.jpg\",\"http://dda/a.jpg\"]},{\"sku_image\":\"0\",\"property_value_definition_name\":\"0\",\"property_value_id\":\"0\",\"sku_property_id\":\"0\",\"image_url_list\":[\"http://dda/a.jpg\",\"http://dda/a.jpg\"]}],\"sku_code\":\"0\",\"currency_code\":\"USD;RUB\"},{\"sku_discount_price\":\"10.01\",\"sku_price\":\"0\",\"ipm_sku_stock\":\"0\",\"sku_stock\":\"true\",\"aeop_s_k_u_national_discount_price\":[{\"discount_price\":\"9.09\",\"shipto_country\":\"RU\"},{\"discount_price\":\"9.09\",\"shipto_country\":\"RU\"}],\"id\":\"0\",\"ean_code\":\"12345678\",\"aeop_s_k_u_property\":[{\"sku_image\":\"0\",\"property_value_definition_name\":\"0\",\"property_value_id\":\"0\",\"sku_property_id\":\"0\",\"image_url_list\":[\"http://dda/a.jpg\",\"http://dda/a.jpg\"]},{\"sku_image\":\"0\",\"property_value_definition_name\":\"0\",\"property_value_id\":\"0\",\"sku_property_id\":\"0\",\"image_url_list\":[\"http://dda/a.jpg\",\"http://dda/a.jpg\"]}],\"sku_code\":\"0\",\"currency_code\":\"USD;RUB\"}],\"image_u_r_ls\":\"http://g01.a.alicdn.com/kf/HTB13GKLJXXXXXbYaXXXq6xXFXXXi.jpg;http://g02.a.alicdn.com/kf/HTB1DkaWJXXXXXb6XFXXq6xXFXXXp.jpg;http://g02.a.alicdn.com/kf/HTB1pMCQJXXXXXcvXVXXq6xXFXXXm.jpg;http://g03.a.alicdn.com/kf/HTB1QhORJXXXXXbiXVXXq6xXFXXXx.jpg;http://g02.a.alicdn.com/kf/HTB1q1aLJXXXXXcfaXXXq6xXFXXXv.jpg\",\"package_length\":\"20\",\"product_id\":\"0\",\"product_more_keywords2\":\"0\",\"reduce_strategy\":\"place_order_withhold\u6216payment_success_deduct\",\"product_more_keywords1\":\"0\",\"gross_weight\":\"10.020\",\"keyword\":\"0\",\"freight_template_id\":\"1\",\"ws_offline_date\":\"2017-06-28 20:22:01\",\"promise_template_id\":\"100\",\"summary\":\"0\",\"sizechart_id\":\"100\",\"aeop_a_e_multimedia\":{\"aeop_a_e_videos\":[{\"media_status\":\"0\",\"media_type\":\"0\",\"ali_member_id\":\"0\",\"media_id\":\"0\",\"poster_url\":\"0\"},{\"media_status\":\"0\",\"media_type\":\"0\",\"ali_member_id\":\"0\",\"media_id\":\"0\",\"poster_url\":\"0\"}]},\"src\":\"0\",\"bulk_order\":\"5\",\"owner_member_id\":\"0\",\"product_unit\":\"100000000\",\"package_width\":\"30\",\"group_id\":\"124\",\"add_unit\":\"2\",\"bulk_discount\":\"90\",\"is_image_dynamic\":\"false\",\"detail\":\"detail stuff here\"}"); + private String ext_param; + private String aeop_a_e_product; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductPostProductRedefiningPostMultiLanguageAeProductDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductPostProductRedefiningPostMultiLanguageAeProductDTO.java new file mode 100644 index 0000000..a35f9f5 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductPostProductRedefiningPostMultiLanguageAeProductDTO.java @@ -0,0 +1,20 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 16:31 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductPostProductRedefiningPostMultiLanguageAeProductDTO extends AliexpressAuth { + // request.addApiParameter("ext_param", "{ \"custom_image\": { \"image\": { \"RU\": \"http://g01.a.alicdn.com/kf/HTB13GKLJXXXXXbYaXXXq6xXFXXXi.jpg;http://g02.a.alicdn.com/kf/HTB1DkaWJXXXXXb6XFXXq6xXFXXXp.jpg;http://g02.a.alicdn.com/kf/HTB1pMCQJXXXXXcvXVXXq6xXFXXXm.jpg;http://g03.a.alicdn.com/kf/HTB1QhORJXXXXXbiXVXXq6xXFXXXx.jpg;http://g02.a.alicdn.com/kf/HTB1q1aLJXXXXXcfaXXXq6xXFXXXv.jpg\", \"BR\": \"http://g01.a.alicdn.com/kf/HTB13GKLJXXXXXbYaXXXq6xXFXXXi.jpg;http://g02.a.alicdn.com/kf/HTB1DkaWJXXXXXb6XFXXq6xXFXXXp.jpg;http://g02.a.alicdn.com/kf/HTB1pMCQJXXXXXcvXVXXq6xXFXXXm.jpg;http://g03.a.alicdn.com/kf/HTB1QhORJXXXXXbiXVXXq6xXFXXXx.jpg;http://g02.a.alicdn.com/kf/HTB1q1aLJXXXXXcfaXXXq6xXFXXXv.jpg\", \"ES\": \"\" }, \"process_customized_image\": true }, \"vat_tags\": [{ \"sku_id\": \"200007763:201336100\", \"is_sku_vat_tag\": true }] }"); + // request.addApiParameter("product", "{\"lot_num\":\"10\",\"coupon_end_date\":\"2017-06-28 20:22:01\",\"mobile_detail\":\"0\",\"subject\":\"knew odd of test\",\"use_auto_trans\":\"true\",\"delivery_time\":\"7\",\"product_price\":\"11.00\",\"owner_member_seq\":\"1006680305\",\"package_type\":\"false\",\"base_unit\":\"1\",\"package_height\":\"40\",\"add_weight\":\"3.03\",\"image_u_r_ls\":\"http://g01.a.alicdn.com/kf/HTB13GKLJXXXXXbYaXXXq6xXFXXXi.jpg;http://g02.a.alicdn.com/kf/HTB1DkaWJXXXXXb6XFXXq6xXFXXXp.jpg;http://g02.a.alicdn.com/kf/HTB1pMCQJXXXXXcvXVXXq6xXFXXXm.jpg;http://g03.a.alicdn.com/kf/HTB1QhORJXXXXXbiXVXXq6xXFXXXx.jpg;http://g02.a.alicdn.com/kf/HTB1q1aLJXXXXXcfaXXXq6xXFXXXv.jpg\",\"product_id\":\"1234\",\"product_more_keywords2\":\"0\",\"product_more_keywords1\":\"0\",\"gross_weight\":\"10.020\",\"keyword\":\"0\",\"ws_offline_date\":\"2017-06-28 20:22:01\",\"promise_template_id\":\"100\",\"sizechart_id\":\"100\",\"aeop_a_e_multimedia\":{\"aeop_a_e_videos\":[{\"media_status\":\"approved\",\"media_type\":\"video\",\"ali_member_id\":\"1006680305\",\"media_id\":\"12345678\",\"poster_url\":\"http://img01.taobaocdn.com/bao/uploaded/TB1rNdGIVXXXXbTXFXXXXXXXXXX.jpg\"},{\"media_status\":\"approved\",\"media_type\":\"video\",\"ali_member_id\":\"1006680305\",\"media_id\":\"12345678\",\"poster_url\":\"http://img01.taobaocdn.com/bao/uploaded/TB1rNdGIVXXXXbTXFXXXXXXXXXX.jpg\"}]},\"multilanguage_detail\":\"\u041C\u043D\u043E\u0433\u043E\u044F\u0437\u044B\u0447\u043D\u044B\u0439 \u043F\u043E\u0434\u0440\u043E\u0431\u043D\u043E\u0435 \u043E\u043F\u0438\u0441\u0430\u043D\u0438\u0435\",\"product_unit\":\"100000000\",\"add_unit\":\"2\",\"detail\":\"\\u003cul\\u003e \\u003c/ul\\u003e\",\"aeop_ae_product_propertys\":[{\"attr_name_id\":\"0\",\"attr_name\":\"0\",\"attr_value_id\":\"0\",\"attr_value_unit\":\"0\",\"attr_value\":\"2 - 5 kg\",\"attr_value_end\":\"0\",\"attr_value_start\":\"0\"},{\"attr_name_id\":\"0\",\"attr_name\":\"0\",\"attr_value_id\":\"0\",\"attr_value_unit\":\"0\",\"attr_value\":\"2 - 5 kg\",\"attr_value_end\":\"0\",\"attr_value_start\":\"0\"}],\"ws_display\":\"expire_offline\",\"ws_valid_num\":\"30\",\"aeop_national_quote_configuration\":{\"configuration_data\":\"[{\\\"shiptoCountry\\\":\\\"US\\\",\\\"percentage\\\":\\\"5\\\"},{\\\"shiptoCountry\\\":\\\"RU\\\",\\\"percentage\\\":\\\"-2\\\"}]\",\"configuration_type\":\"percentage\"},\"product_status_type\":\"onSelling\",\"currency_code\":\"USD;RUB\",\"is_pack_sell\":\"false\",\"coupon_start_date\":\"2017-06-28 20:22:01\",\"category_id\":\"200002101\",\"aeop_ae_product_s_k_us\":[{\"sku_discount_price\":\"10.01\",\"sku_price\":\"11.11\",\"ipm_sku_stock\":\"1234\",\"sku_stock\":\"false\",\"aeop_s_k_u_national_discount_price\":[{\"discount_price\":\"9.05\",\"shipto_country\":\"RU\"},{\"discount_price\":\"9.05\",\"shipto_country\":\"RU\"}],\"id\":\"\\\"200000182:193;200007763:201336100\\\"\",\"aeop_s_k_u_property\":[{\"sku_image\":\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"property_value_definition_name\":\"pink\",\"sku_property_id\":\"14\",\"property_value_id\":\"366\"},{\"sku_image\":\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"property_value_definition_name\":\"pink\",\"sku_property_id\":\"14\",\"property_value_id\":\"366\"}],\"sku_code\":\"cfas00978\",\"barcode\":\"0\",\"currency_code\":\"USD\"},{\"sku_discount_price\":\"10.01\",\"sku_price\":\"11.11\",\"ipm_sku_stock\":\"1234\",\"sku_stock\":\"false\",\"aeop_s_k_u_national_discount_price\":[{\"discount_price\":\"9.05\",\"shipto_country\":\"RU\"},{\"discount_price\":\"9.05\",\"shipto_country\":\"RU\"}],\"id\":\"\\\"200000182:193;200007763:201336100\\\"\",\"aeop_s_k_u_property\":[{\"sku_image\":\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"property_value_definition_name\":\"pink\",\"sku_property_id\":\"14\",\"property_value_id\":\"366\"},{\"sku_image\":\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"property_value_definition_name\":\"pink\",\"sku_property_id\":\"14\",\"property_value_id\":\"366\"}],\"sku_code\":\"cfas00978\",\"barcode\":\"0\",\"currency_code\":\"USD\"}],\"locale_name\":\"ru_RU\",\"package_length\":\"20\",\"reduce_strategy\":\"place_order_withhold\u6216payment_success_deduct\",\"freight_template_id\":\"1\",\"summary\":\"0\",\"src\":\"isv\",\"bulk_order\":\"5\",\"owner_member_id\":\"aliqatest01\",\"multilanguage_subject\":\"\u041D\u0430\u0437\u0432\u0430\u043D\u0438\u0435 \u043D\u0435\u0441\u043A\u043E\u043B\u044C\u043A\u0438\u0445 \u044F\u0437\u044B\u043A\u043E\u0432\",\"package_width\":\"30\",\"group_id\":\"124\",\"bulk_discount\":\"90\",\"is_image_dynamic\":\"false\"}"); + private String ext_param; + private String product; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductPostProductRedefiningSetGroupsDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductPostProductRedefiningSetGroupsDTO.java new file mode 100644 index 0000000..5706661 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductPostProductRedefiningSetGroupsDTO.java @@ -0,0 +1,20 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 16:37 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductPostProductRedefiningSetGroupsDTO extends AliexpressAuth { + //request.addApiParameter("product_id", "1005005270241178"); + //request.addApiParameter("group_ids", "254562048"); + private String product_id; + private String group_ids; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductPostProductRedefiningSetSizeChartDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductPostProductRedefiningSetSizeChartDTO.java new file mode 100644 index 0000000..aa2a5d2 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductPostProductRedefiningSetSizeChartDTO.java @@ -0,0 +1,24 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 16:19 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductPostProductRedefiningSetSizeChartDTO extends AliexpressAuth { + //request.addApiParameter("channel_seller_id", "2671514005"); + private String channel_seller_id; + //request.addApiParameter("channel", "AE_GLOBAL"); + private String channel; + //request.addApiParameter("product_id", "1005005100110934"); + private String product_id; + //request.addApiParameter("sizechart_id", "1000001533573010"); + private String sizechart_id; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductDeleteDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductDeleteDTO.java new file mode 100644 index 0000000..788e0e6 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductDeleteDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 16:45 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductProductDeleteDTO extends AliexpressAuth { + //request.addApiParameter("product_id", "1005004617892753"); + private String product_id; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductDiagnosisPageQueryProblemDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductDiagnosisPageQueryProblemDTO.java new file mode 100644 index 0000000..25fa81a --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductDiagnosisPageQueryProblemDTO.java @@ -0,0 +1,25 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 16:24 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductProductDiagnosisPageQueryProblemDTO extends AliexpressAuth { + //request.addApiParameter("operate_status", "0"); + private String operate_status; + //request.addApiParameter("problem_type_list", "repeat_repost, lack_white_image"); + private String problem_type_list; + //request.addApiParameter("page_size", "10");\ + private String page_size; + //request.addApiParameter("current_page", "1"); + private String current_page; + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductDiagnosisQueryProblemDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductDiagnosisQueryProblemDTO.java new file mode 100644 index 0000000..418b908 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductDiagnosisQueryProblemDTO.java @@ -0,0 +1,16 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 17:16 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductProductDiagnosisQueryProblemDTO extends AliexpressAuth { +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductDiagnosisResultListDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductDiagnosisResultListDTO.java new file mode 100644 index 0000000..c88d7d7 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductDiagnosisResultListDTO.java @@ -0,0 +1,20 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 17:14 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductProductDiagnosisResultListDTO extends AliexpressAuth { + //request.addApiParameter("current", "1"); + //request.addApiParameter("page_size", "10"); + private String current; + private String page_size; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductEditDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductEditDTO.java new file mode 100644 index 0000000..bcfeb64 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductEditDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 15:38 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductProductEditDTO extends AliexpressAuth { + // request.addApiParameter("edit_product_request", "{\"extra_params\":\"extra params\",\"inventory_deduction_strategy\":\"place_order_withhold or payment_success_deduct\",\"main_image_urls_list\":[\"[\\\"https://upload.wikimedia.org/wikipedia/commons/b/b5/Winnersh_Meadows_Trees.jpg\\\",\\\"https://ae01.alicdn.com/kf/UTB85xyVgnzIXKJkSafVq6yWgXXa0/Kingston-SDCS-16GB-MicroSD-Canvas-Select-16GB-velocidades-de-UHS-I-Clase-10-DE-hasta-80.jpg\\\"]\",\"[\\\"https://upload.wikimedia.org/wikipedia/commons/b/b5/Winnersh_Meadows_Trees.jpg\\\",\\\"https://ae01.alicdn.com/kf/UTB85xyVgnzIXKJkSafVq6yWgXXa0/Kingston-SDCS-16GB-MicroSD-Canvas-Select-16GB-velocidades-de-UHS-I-Clase-10-DE-hasta-80.jpg\\\"]\"],\"sku_info_list\":[{\"extra_params\":\"extra params\",\"price\":\"12.21\",\"discount_price\":\"9.92\",\"sku_attributes_list\":[{\"sku_attribute_value\":\"red\",\"sku_image\":\"https://upload.wikimedia.org/wikipedia/commons/b/b5/Winnersh_Meadows_Trees.jpg\",\"sku_attribute_name\":\"Color\",\"sku_attribute_name_id\":\"14\",\"sku_attribute_value_id\":\"10\"},{\"sku_attribute_value\":\"red\",\"sku_image\":\"https://upload.wikimedia.org/wikipedia/commons/b/b5/Winnersh_Meadows_Trees.jpg\",\"sku_attribute_name\":\"Color\",\"sku_attribute_name_id\":\"14\",\"sku_attribute_value_id\":\"10\"}],\"ean_code\":\"12345678\",\"inventory\":\"90\",\"sku_code\":\"123abc\"},{\"extra_params\":\"extra params\",\"price\":\"12.21\",\"discount_price\":\"9.92\",\"sku_attributes_list\":[{\"sku_attribute_value\":\"red\",\"sku_image\":\"https://upload.wikimedia.org/wikipedia/commons/b/b5/Winnersh_Meadows_Trees.jpg\",\"sku_attribute_name\":\"Color\",\"sku_attribute_name_id\":\"14\",\"sku_attribute_value_id\":\"10\"},{\"sku_attribute_value\":\"red\",\"sku_image\":\"https://upload.wikimedia.org/wikipedia/commons/b/b5/Winnersh_Meadows_Trees.jpg\",\"sku_attribute_name\":\"Color\",\"sku_attribute_name_id\":\"14\",\"sku_attribute_value_id\":\"10\"}],\"ean_code\":\"12345678\",\"inventory\":\"90\",\"sku_code\":\"123abc\"}],\"multi_language_description_list\":[{\"mobile_detail\":\"{\\\"moduleList\\\":[{\\\"texts\\\":{\\\"content\\\":\\\"test mobile description\\\",\\\"class\\\":\\\"body\\\"},\\\"type\\\":\\\"text\\\"}],\\\"version\\\":\\\"2.0.0\\\"}\",\"language\":\"es\",\"web_detail\":\"{\\\"moduleList\\\":[{\\\"html\\\":{\\\"content\\\":\\\"test web description\\\"},\\\"type\\\":\\\"html\\\"}],\\\"version\\\":\\\"2.0.0\\\"}\"},{\"mobile_detail\":\"{\\\"moduleList\\\":[{\\\"texts\\\":{\\\"content\\\":\\\"test mobile description\\\",\\\"class\\\":\\\"body\\\"},\\\"type\\\":\\\"text\\\"}],\\\"version\\\":\\\"2.0.0\\\"}\",\"language\":\"es\",\"web_detail\":\"{\\\"moduleList\\\":[{\\\"html\\\":{\\\"content\\\":\\\"test web description\\\"},\\\"type\\\":\\\"html\\\"}],\\\"version\\\":\\\"2.0.0\\\"}\"}],\"multi_language_subject_list\":[{\"subject\":\"Versi\u00F3n Global Xiaomi Redmi Note 5\",\"language\":\"es\"},{\"subject\":\"Versi\u00F3n Global Xiaomi Redmi Note 5\",\"language\":\"es\"}],\"weight\":\"3.2\",\"size_chart_id\":\"100\",\"brand_name\":\"Xiaomi\",\"package_width\":\"30\",\"package_height\":\"20\",\"category_id\":\"200105144\",\"attribute_list\":[{\"attribute_name\":\"Resolution\",\"attribute_value\":\"1920*1080\",\"aliexpress_attribute_value_id\":\"593\",\"aliexpress_attribute_name_id\":\"14\"},{\"attribute_name\":\"Resolution\",\"attribute_value\":\"1920*1080\",\"aliexpress_attribute_value_id\":\"593\",\"aliexpress_attribute_name_id\":\"14\"}],\"group_id\":\"262007001\",\"package_length\":\"10\",\"product_id\":\"1000005237852\",\"aliexpress_category_id\":\"200105144\",\"marketing_images\":[{\"image_url\":\"https://ae01.alicdn.com/kf/Hf5987123b00246699ac4f86795d59e636.jpg\",\"image_type\":\"1\"},{\"image_url\":\"https://ae01.alicdn.com/kf/Hf5987123b00246699ac4f86795d59e636.jpg\",\"image_type\":\"1\"}],\"service_policy_id\":\"0\",\"developer_features\":\"{\\\"source\\\":\\\"Lengow\\\"}\",\"shipping_lead_time\":\"3\",\"multi_country_price_configuration\":{\"price_type\":\"absolute\",\"country_price_list\":[{\"sku_price_by_country_list\":[{\"price\":\"15\",\"discount_price\":\"3.99\",\"value\":\"15\",\"sku_code\":\"123abc\"},{\"price\":\"15\",\"discount_price\":\"3.99\",\"value\":\"15\",\"sku_code\":\"123abc\"}],\"ship_to_country\":\"FR\"},{\"sku_price_by_country_list\":[{\"price\":\"15\",\"discount_price\":\"3.99\",\"value\":\"15\",\"sku_code\":\"123abc\"},{\"price\":\"15\",\"discount_price\":\"3.99\",\"value\":\"15\",\"sku_code\":\"123abc\"}],\"ship_to_country\":\"FR\"}]},\"freight_template_id\":\"703476858\"}"); + private String edit_product_request; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductEditNewDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductEditNewDTO.java new file mode 100644 index 0000000..2b49219 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductEditNewDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 16:49 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductProductEditNewDTO extends AliexpressAuth { + //request.addApiParameter("aeop_a_e_product", "{\"lot_num\":\"1\",\"aeop_ae_product_propertys\":[{\"attr_name_id\":\"200000043\",\"attr_name\":\"size\",\"attr_value_id\":\"493\",\"attr_value_unit\":\"0\",\"attr_value\":\"2 - 5 kg\",\"attr_value_end\":\"0\",\"attr_value_start\":\"0\"},{\"attr_name_id\":\"200000043\",\"attr_name\":\"size\",\"attr_value_id\":\"493\",\"attr_value_unit\":\"0\",\"attr_value\":\"2 - 5 kg\",\"attr_value_end\":\"0\",\"attr_value_start\":\"0\"}],\"mode_size_chart_list\":[{\"mode_size\":\"2\",\"hips\":\"2\",\"bust\":\"2\",\"waist\":\"2\",\"height\":\"2\"},{\"mode_size\":\"2\",\"hips\":\"2\",\"bust\":\"2\",\"waist\":\"2\",\"height\":\"2\"}],\"ws_valid_num\":\"30\",\"delivery_time\":\"3\",\"product_price\":\"10.11\",\"aeop_national_quote_configuration\":{\"configuration_data\":\"[{\\\"absoluteQuoteMap\\\":{\\\"\\\":1.0},\\\"shiptoCountry\\\":\\\"RU\\\"},{\\\"absoluteQuoteMap\\\":{\\\"\\\":2.0},\\\"shiptoCountry\\\":\\\"US\\\"}]\",\"configuration_type\":\"absolute\"},\"package_type\":\"false\",\"locale\":\"en_US\",\"detail_source_list\":[{\"mobile_detail\":\"{\\\\\\\"version\\\\\\\":\\\\\\\"2.0.0\\\\\\\",\\\\\\\"moduleList\\\\\\\":[{\\\\\\\"type\\\\\\\":\\\\\\\"text\\\\\\\",\\\\\\\"texts\\\\\\\":[{\\\\\\\"content\\\\\\\":\\\\\\\"Thisistitle\\\\\\\",\\\\\\\"class\\\\\\\":\\\\\\\"title\\\\\\\"},{\\\\\\\"content\\\\\\\":\\\\\\\"Thisisdescription\\\\\\\",\\\\\\\"class\\\\\\\":\\\\\\\"body\\\\\\\"}]}]}\",\"web_detail\":\"{\\\\\\\"version\\\\\\\":\\\\\\\"2.0.0\\\\\\\",\\\\\\\"moduleList\\\\\\\":[{\\\\\\\"type\\\\\\\":\\\\\\\"text\\\\\\\",\\\\\\\"texts\\\\\\\":[{\\\\\\\"content\\\\\\\":\\\\\\\"Thisistitle\\\\\\\",\\\\\\\"class\\\\\\\":\\\\\\\"title\\\\\\\"},{\\\\\\\"content\\\\\\\":\\\\\\\"Thisisdescription\\\\\\\",\\\\\\\"class\\\\\\\":\\\\\\\"body\\\\\\\"}]}]}\",\"locale\":\"en_US\"},{\"mobile_detail\":\"{\\\\\\\"version\\\\\\\":\\\\\\\"2.0.0\\\\\\\",\\\\\\\"moduleList\\\\\\\":[{\\\\\\\"type\\\\\\\":\\\\\\\"text\\\\\\\",\\\\\\\"texts\\\\\\\":[{\\\\\\\"content\\\\\\\":\\\\\\\"Thisistitle\\\\\\\",\\\\\\\"class\\\\\\\":\\\\\\\"title\\\\\\\"},{\\\\\\\"content\\\\\\\":\\\\\\\"Thisisdescription\\\\\\\",\\\\\\\"class\\\\\\\":\\\\\\\"body\\\\\\\"}]}]}\",\"web_detail\":\"{\\\\\\\"version\\\\\\\":\\\\\\\"2.0.0\\\\\\\",\\\\\\\"moduleList\\\\\\\":[{\\\\\\\"type\\\\\\\":\\\\\\\"text\\\\\\\",\\\\\\\"texts\\\\\\\":[{\\\\\\\"content\\\\\\\":\\\\\\\"Thisistitle\\\\\\\",\\\\\\\"class\\\\\\\":\\\\\\\"title\\\\\\\"},{\\\\\\\"content\\\\\\\":\\\\\\\"Thisisdescription\\\\\\\",\\\\\\\"class\\\\\\\":\\\\\\\"body\\\\\\\"}]}]}\",\"locale\":\"en_US\"}],\"currency_code\":\"USD;RUB\",\"base_unit\":\"1\",\"is_pack_sell\":\"false\",\"package_height\":\"40\",\"add_weight\":\"30.11\",\"aeop_ae_product_s_k_us\":[{\"sku_discount_price\":\"12.05\",\"ipm_sku_stock\":\"1111\",\"aeop_s_k_u_national_discount_price\":[{\"discount_price\":\"10.01\",\"shipto_country\":\"RU\"},{\"discount_price\":\"10.01\",\"shipto_country\":\"RU\"}],\"ean_code\":\"12345678\",\"currency_code\":\"USD;RUB\",\"package_width\":\"3\",\"package_height\":\"2\",\"sku_price\":\"200.07\",\"package_length\":\"4\",\"id\":\"\\\"200000182:193;200007763:201336100\\\"\",\"aeop_s_k_u_property\":[{\"sku_image\":\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"property_value_definition_name\":\"pink\",\"property_value_id\":\"366\",\"sku_property_id\":\"14\",\"image_url_list\":[\"[http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg]\",\"[http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg]\"]},{\"sku_image\":\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"property_value_definition_name\":\"pink\",\"property_value_id\":\"366\",\"sku_property_id\":\"14\",\"image_url_list\":[\"[http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg]\",\"[http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg]\"]}],\"gross_weight\":\"1\",\"sku_code\":\"cfas00978\"},{\"sku_discount_price\":\"12.05\",\"ipm_sku_stock\":\"1111\",\"aeop_s_k_u_national_discount_price\":[{\"discount_price\":\"10.01\",\"shipto_country\":\"RU\"},{\"discount_price\":\"10.01\",\"shipto_country\":\"RU\"}],\"ean_code\":\"12345678\",\"currency_code\":\"USD;RUB\",\"package_width\":\"3\",\"package_height\":\"2\",\"sku_price\":\"200.07\",\"package_length\":\"4\",\"id\":\"\\\"200000182:193;200007763:201336100\\\"\",\"aeop_s_k_u_property\":[{\"sku_image\":\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"property_value_definition_name\":\"pink\",\"property_value_id\":\"366\",\"sku_property_id\":\"14\",\"image_url_list\":[\"[http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg]\",\"[http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg]\"]},{\"sku_image\":\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"property_value_definition_name\":\"pink\",\"property_value_id\":\"366\",\"sku_property_id\":\"14\",\"image_url_list\":[\"[http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg]\",\"[http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg]\"]}],\"gross_weight\":\"1\",\"sku_code\":\"cfas00978\"}],\"category_id\":\"200002101\",\"subject_list\":[{\"locale\":\"en_US\",\"value\":\"product subject\"},{\"locale\":\"en_US\",\"value\":\"product subject\"}],\"image_u_r_ls\":\"http://g01.a.alicdn.com/kf/HTB13GKLJXXXXXbYaXXXq6xXFXXXi.jpg;http://g02.a.alicdn.com/kf/HTB1DkaWJXXXXXb6XFXXq6xXFXXXp.jpg;http://g02.a.alicdn.com/kf/HTB1pMCQJXXXXXcvXVXXq6xXFXXXm.jpg;http://g03.a.alicdn.com/kf/HTB1QhORJXXXXXbiXVXXq6xXFXXXx.jpg;http://g02.a.alicdn.com/kf/HTB1q1aLJXXXXXcfaXXXq6xXFXXXv.jpg\",\"package_length\":\"20\",\"product_id\":\"1239273\",\"reduce_strategy\":\"place_order_withhold\",\"gross_weight\":\"50\",\"freight_template_id\":\"1000\",\"promise_template_id\":\"100\",\"msr_eu_id\":\"12\",\"sizechart_id\":\"123\",\"aeop_a_e_multimedia\":{\"aeop_a_e_videos\":[{\"media_type\":\"video\",\"media_id\":\"12345678\",\"poster_url\":\"http://img01.taobaocdn.com/bao/uploaded/TB1rNdGIVXXXXbTXFXXXXXXXXXX.jpg\"},{\"media_type\":\"video\",\"media_id\":\"12345678\",\"poster_url\":\"http://img01.taobaocdn.com/bao/uploaded/TB1rNdGIVXXXXbTXFXXXXXXXXXX.jpg\"}]},\"aeop_qualification_struct_list\":[{\"type\":\"image\",\"value\":\"https://ae01.alicdn.com/kf/S23b9cb05c8e844648d48324f23f0c123T.jpeg\",\"key\":\"item_EU_CE_certificate\"},{\"type\":\"image\",\"value\":\"https://ae01.alicdn.com/kf/S23b9cb05c8e844648d48324f23f0c123T.jpeg\",\"key\":\"item_EU_CE_certificate\"}],\"bulk_order\":\"5\",\"product_unit\":\"100000000\",\"market_images\":[{\"url\":\"https://ae01.alicdn.com/kf/HTB1C72NbcvrXXX.jpg\",\"image_type\":\"1\"},{\"url\":\"https://ae01.alicdn.com/kf/HTB1C72NbcvrXXX.jpg\",\"image_type\":\"1\"}],\"package_width\":\"30\",\"add_unit\":\"2\",\"bulk_discount\":\"90\",\"ext_param\":\"{ \\\"deleteMarketImageFlag\\\":\\\"false\\\", \\\"deleteQualificationFlag\\\":\\\"false\\\", \\\"edit_reason\\\":\\\"product_diagnosis\\\"}\"}"); + private String aeop_a_e_product; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductGroupsGetDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductGroupsGetDTO.java new file mode 100644 index 0000000..5785184 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductGroupsGetDTO.java @@ -0,0 +1,16 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 17:52 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductProductGroupsGetDTO extends AliexpressAuth { +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductInfoGetDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductInfoGetDTO.java new file mode 100644 index 0000000..411a75b --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductInfoGetDTO.java @@ -0,0 +1,19 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 15:40 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductProductInfoGetDTO extends AliexpressAuth { + // request.addApiParameter("product_id", "1307422965"); + private String product_id; + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductListGetDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductListGetDTO.java new file mode 100644 index 0000000..8051fb0 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductListGetDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 15:42 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductProductListGetDTO extends AliexpressAuth { + // request.addApiParameter("aeop_a_e_product_list_query", "{\"gmt_modified_start\":\"2012-01-01 12:13:14\",\"gmt_modified_end\":\"2012-01-01 12:13:14\",\"off_line_time\":\"7\",\"gmt_create_start\":\"2012-01-01 12:13:14\",\"subject\":\"knew odd\",\"have_national_quote\":\"n\",\"ws_display\":\"expire_offline\",\"product_status_type\":\"onSelling\",\"owner_member_id\":\"aliqatest01\",\"gmt_create_end\":\"2012-01-01 12:13:14\",\"group_id\":\"1234\",\"product_id\":\"123\",\"excepted_product_ids\":[\"[32962333569,32813963253]\",\"[32962333569,32813963253]\"],\"sku_code\":\"123ABC\",\"current_page\":\"2\",\"page_size\":\"30\"}"); + private String aeop_a_e_product_list_query; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductPostDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductPostDTO.java new file mode 100644 index 0000000..0ca18c7 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductPostDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 15:50 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductProductPostDTO extends AliexpressAuth { + //request.addApiParameter("post_product_request", "{\"subject\":\"Huawei Mate 10\",\"multi_language_description_list\":[{\"mobile_detail\":\"{\\\"moduleList\\\":[{\\\"texts\\\":{\\\"content\\\":\\\"test mobile description\\\",\\\"class\\\":\\\"body\\\"},\\\"type\\\":\\\"text\\\"}],\\\"version\\\":\\\"2.0.0\\\"}\",\"language\":\"es\",\"web_detail\":\"{\\\"moduleList\\\":[{\\\"html\\\":{\\\"content\\\":\\\"test web description\\\"},\\\"type\\\":\\\"html\\\"}],\\\"version\\\":\\\"2.0.0\\\"}\"},{\"mobile_detail\":\"{\\\"moduleList\\\":[{\\\"texts\\\":{\\\"content\\\":\\\"test mobile description\\\",\\\"class\\\":\\\"body\\\"},\\\"type\\\":\\\"text\\\"}],\\\"version\\\":\\\"2.0.0\\\"}\",\"language\":\"es\",\"web_detail\":\"{\\\"moduleList\\\":[{\\\"html\\\":{\\\"content\\\":\\\"test web description\\\"},\\\"type\\\":\\\"html\\\"}],\\\"version\\\":\\\"2.0.0\\\"}\"}],\"description\":\"El Huawei Mate 10 Lite destaca principalmente por su pantalla FullView y sus cuatro c\u00E1maras. \\u003cimg alt\\u003d\\\"Huawei-Mate-10-Lite_02\\\" src\\u003d\\\"https://ae01.alicdn.com/kf/UTB8rju8uOaMiuJk43PTq6ySmXXa7.jpg\\\"\\u003e\",\"language\":\"es\",\"package_height\":\"20\",\"category_id\":\"200105144\",\"package_length\":\"10\",\"aliexpress_category_id\":\"200105144\",\"marketing_images\":[{\"image_url\":\"https://ae01.alicdn.com/kf/Hf5987123b00246699ac4f86795d59e636.jpg\",\"image_type\":\"1\"},{\"image_url\":\"https://ae01.alicdn.com/kf/Hf5987123b00246699ac4f86795d59e636.jpg\",\"image_type\":\"1\"}],\"multi_country_price_configuration\":{\"price_type\":\"absolute\",\"country_price_list\":[{\"sku_price_by_country_list\":[{\"price\":\"16\",\"discount_price\":\"3.99\",\"sku_code\":\"123abc\",\"value\":\"15\"},{\"price\":\"16\",\"discount_price\":\"3.99\",\"sku_code\":\"123abc\",\"value\":\"15\"}],\"ship_to_country\":\"FR\"},{\"sku_price_by_country_list\":[{\"price\":\"16\",\"discount_price\":\"3.99\",\"sku_code\":\"123abc\",\"value\":\"15\"},{\"price\":\"16\",\"discount_price\":\"3.99\",\"sku_code\":\"123abc\",\"value\":\"15\"}],\"ship_to_country\":\"FR\"}]},\"freight_template_id\":\"703476858\",\"extra_params\":\"extra params\",\"inventory_deduction_strategy\":\"payment_success_deduct\",\"main_image_urls_list\":[\"[\\\"https://upload.wikimedia.org/wikipedia/commons/b/b5/Winnersh_Meadows_Trees.jpg\\\",\\\"https://ae01.alicdn.com/kf/UTB85xyVgnzIXKJkSafVq6yWgXXa0/Kingston-SDCS-16GB-MicroSD-Canvas-Select-16GB-velocidades-de-UHS-I-Clase-10-DE-hasta-80.jpg\\\"]\",\"[\\\"https://upload.wikimedia.org/wikipedia/commons/b/b5/Winnersh_Meadows_Trees.jpg\\\",\\\"https://ae01.alicdn.com/kf/UTB85xyVgnzIXKJkSafVq6yWgXXa0/Kingston-SDCS-16GB-MicroSD-Canvas-Select-16GB-velocidades-de-UHS-I-Clase-10-DE-hasta-80.jpg\\\"]\"],\"sku_info_list\":[{\"extra_params\":\"extra params\",\"price\":\"12.21\",\"discount_price\":\"9.92\",\"bar_code\":\"2012331233258\",\"sku_attributes_list\":[{\"sku_attribute_value\":\"red\",\"sku_attribute_name\":\"Color\",\"sku_image_url\":\"https://upload.wikimedia.org/wikipedia/commons/b/b5/Winnersh_Meadows_Trees.jpg\",\"sku_attribute_name_id\":\"14\",\"sku_attribute_value_id\":\"10\"},{\"sku_attribute_value\":\"red\",\"sku_attribute_name\":\"Color\",\"sku_image_url\":\"https://upload.wikimedia.org/wikipedia/commons/b/b5/Winnersh_Meadows_Trees.jpg\",\"sku_attribute_name_id\":\"14\",\"sku_attribute_value_id\":\"10\"}],\"ean_code\":\"12345678\",\"inventory\":\"90\",\"sku_code\":\"123abc\"},{\"extra_params\":\"extra params\",\"price\":\"12.21\",\"discount_price\":\"9.92\",\"bar_code\":\"2012331233258\",\"sku_attributes_list\":[{\"sku_attribute_value\":\"red\",\"sku_attribute_name\":\"Color\",\"sku_image_url\":\"https://upload.wikimedia.org/wikipedia/commons/b/b5/Winnersh_Meadows_Trees.jpg\",\"sku_attribute_name_id\":\"14\",\"sku_attribute_value_id\":\"10\"},{\"sku_attribute_value\":\"red\",\"sku_attribute_name\":\"Color\",\"sku_image_url\":\"https://upload.wikimedia.org/wikipedia/commons/b/b5/Winnersh_Meadows_Trees.jpg\",\"sku_attribute_name_id\":\"14\",\"sku_attribute_value_id\":\"10\"}],\"ean_code\":\"12345678\",\"inventory\":\"90\",\"sku_code\":\"123abc\"}],\"multi_language_subject_list\":[{\"subject\":\"Versi\u00F3n Global Xiaomi Redmi Note 5\",\"language\":\"es\"},{\"subject\":\"Versi\u00F3n Global Xiaomi Redmi Note 5\",\"language\":\"es\"}],\"size_chart_id\":\"100\",\"weight\":\"3.2\",\"brand_name\":\"Xiaomi\",\"product_unit\":\"100000015\",\"package_width\":\"30\",\"attribute_list\":[{\"attribute_name\":\"Resolution\",\"attribute_value\":\"1920*1080\",\"aliexpress_attribute_value_id\":\"593\",\"aliexpress_attribute_name_id\":\"14\"},{\"attribute_name\":\"Resolution\",\"attribute_value\":\"1920*1080\",\"aliexpress_attribute_value_id\":\"593\",\"aliexpress_attribute_name_id\":\"14\"}],\"group_id\":\"262007001\",\"service_policy_id\":\"0\",\"developer_features\":\"{\\\"source\\\":\\\"Lengow\\\"}\",\"shipping_lead_time\":\"3\"}"); + private String post_product_request; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductPostNewDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductPostNewDTO.java new file mode 100644 index 0000000..b4d771f --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductPostNewDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 16:47 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductProductPostNewDTO extends AliexpressAuth { + //request.addApiParameter("aeop_a_e_product", "{\"lot_num\":\"1\",\"aeop_ae_product_propertys\":[{\"attr_name_id\":\"14\",\"attr_name\":\"color\",\"attr_value_id\":\"12343444\",\"attr_value_unit\":\"0\",\"attr_value\":\"white\",\"attr_value_end\":\"2000561\",\"attr_value_start\":\"2000568\"},{\"attr_name_id\":\"14\",\"attr_name\":\"color\",\"attr_value_id\":\"12343444\",\"attr_value_unit\":\"0\",\"attr_value\":\"white\",\"attr_value_end\":\"2000561\",\"attr_value_start\":\"2000568\"}],\"mode_size_chart_list\":[{\"mode_size\":\"R\",\"hips\":\"2.1\",\"waist\":\"2\",\"bust\":\"2\",\"height\":\"2\"},{\"mode_size\":\"R\",\"hips\":\"2.1\",\"waist\":\"2\",\"bust\":\"2\",\"height\":\"2\"}],\"ws_valid_num\":\"30\",\"aeop_national_quote_configuration\":{\"configuration_data\":\"[{\\\"absoluteQuoteMap\\\":{\\\"\\\":1.0},\\\"shiptoCountry\\\":\\\"RU\\\"},{\\\"absoluteQuoteMap\\\":{\\\"\\\":2.0},\\\"shiptoCountry\\\":\\\"US\\\"}]\",\"configuration_type\":\"absolute\"},\"delivery_time\":\"3\",\"product_price\":\"11.00\",\"detail_source_list\":[{\"mobile_detail\":\"detail stuff here\",\"locale\":\"en_US\",\"web_detail\":\"detail stuff here\"},{\"mobile_detail\":\"detail stuff here\",\"locale\":\"en_US\",\"web_detail\":\"detail stuff here\"}],\"locale\":\"en_US\",\"package_type\":\"false\",\"base_unit\":\"1\",\"currency_code\":\"USD;RUB\",\"is_pack_sell\":\"false\",\"add_weight\":\"3.03\",\"package_height\":\"40\",\"aeop_ae_product_s_k_us\":[{\"sku_discount_price\":\"10.01\",\"ipm_sku_stock\":\"10\",\"aeop_s_k_u_national_discount_price\":[{\"discount_price\":\"9.09\",\"shipto_country\":\"RU\"},{\"discount_price\":\"9.09\",\"shipto_country\":\"RU\"}],\"ean_code\":\"12345678\",\"currency_code\":\"USD;RUB\",\"package_width\":\"3\",\"package_height\":\"2\",\"sku_price\":\"9.05\",\"package_length\":\"4\",\"aeop_s_k_u_property\":[{\"sku_image\":\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"property_value_definition_name\":\"\u6807\u51C6\u5957\u9910\",\"property_value_id\":\"23123444\",\"sku_property_id\":\"120001\",\"image_url_list\":[\"[http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg]\",\"[http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg]\"]},{\"sku_image\":\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"property_value_definition_name\":\"\u6807\u51C6\u5957\u9910\",\"property_value_id\":\"23123444\",\"sku_property_id\":\"120001\",\"image_url_list\":[\"[http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg]\",\"[http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg]\"]}],\"gross_weight\":\"1\",\"barcode\":\"AEfgsdg334\",\"sku_code\":\"AE235de2\"},{\"sku_discount_price\":\"10.01\",\"ipm_sku_stock\":\"10\",\"aeop_s_k_u_national_discount_price\":[{\"discount_price\":\"9.09\",\"shipto_country\":\"RU\"},{\"discount_price\":\"9.09\",\"shipto_country\":\"RU\"}],\"ean_code\":\"12345678\",\"currency_code\":\"USD;RUB\",\"package_width\":\"3\",\"package_height\":\"2\",\"sku_price\":\"9.05\",\"package_length\":\"4\",\"aeop_s_k_u_property\":[{\"sku_image\":\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"property_value_definition_name\":\"\u6807\u51C6\u5957\u9910\",\"property_value_id\":\"23123444\",\"sku_property_id\":\"120001\",\"image_url_list\":[\"[http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg]\",\"[http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg]\"]},{\"sku_image\":\"http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg\",\"property_value_definition_name\":\"\u6807\u51C6\u5957\u9910\",\"property_value_id\":\"23123444\",\"sku_property_id\":\"120001\",\"image_url_list\":[\"[http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg]\",\"[http://ae01.alicdn.com/kf/HTB19KVYX6LuK1Rjy0Fhq6xpdFXac.jpg]\"]}],\"gross_weight\":\"1\",\"barcode\":\"AEfgsdg334\",\"sku_code\":\"AE235de2\"}],\"category_id\":\"200002101\",\"subject_list\":[{\"locale\":\"en_US\",\"value\":\"title content here\"},{\"locale\":\"en_US\",\"value\":\"title content here\"}],\"image_u_r_ls\":\"http://g01.a.alicdn.com/kf/HTB13GKLJXXXXXbYaXXXq6xXFXXXi.jpg;http://g02.a.alicdn.com/kf/HTB1DkaWJXXXXXb6XFXXq6xXFXXXp.jpg;http://g02.a.alicdn.com/kf/HTB1pMCQJXXXXXcvXVXXq6xXFXXXm.jpg;http://g03.a.alicdn.com/kf/HTB1QhORJXXXXXbiXVXXq6xXFXXXx.jpg;http://g02.a.alicdn.com/kf/HTB1q1aLJXXXXXcfaXXXq6xXFXXXv.jpg\",\"package_length\":\"20\",\"reduce_strategy\":\"place_order_withhold\u6216payment_success_deduct\",\"gross_weight\":\"10.020\",\"freight_template_id\":\"1000\",\"promise_template_id\":\"100\",\"msr_eu_id\":\"12\",\"aeop_a_e_multimedia\":{\"aeop_a_e_videos\":[{\"media_type\":\"video\",\"media_id\":\"23423423\",\"poster_url\":\"http://img01.taobaocdn.com/bao/uploaded/TB1rNdGIVXXXXbTXFXXXXXXXXXX.jpg\"},{\"media_type\":\"video\",\"media_id\":\"23423423\",\"poster_url\":\"http://img01.taobaocdn.com/bao/uploaded/TB1rNdGIVXXXXbTXFXXXXXXXXXX.jpg\"}]},\"sizechart_id\":\"100\",\"aeop_qualification_struct_list\":[{\"type\":\"image\",\"value\":\"https://ae01.alicdn.com/kf/S23b9cb05c8e844648d48324f23f0c123T.jpeg\",\"key\":\"item_EU_CE_certificate\"},{\"type\":\"image\",\"value\":\"https://ae01.alicdn.com/kf/S23b9cb05c8e844648d48324f23f0c123T.jpeg\",\"key\":\"item_EU_CE_certificate\"}],\"bulk_order\":\"5\",\"product_unit\":\"100000000\",\"market_images\":[{\"url\":\"https://ae01.alicdn.com/kf/HTB1C72NbcvrXXX.jpg\",\"image_type\":\"1\"},{\"url\":\"https://ae01.alicdn.com/kf/HTB1C72NbcvrXXX.jpg\",\"image_type\":\"1\"}],\"package_width\":\"30\",\"add_unit\":\"2\",\"group_id\":\"124\",\"bulk_discount\":\"90\",\"ext_param\":\"{ \\\"category_forecast\\\":\\\"100000015;100000014;100000013;100000012;100000011;100000010\\\" }\"}"); + private String aeop_a_e_product; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductQueryNewDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductQueryNewDTO.java new file mode 100644 index 0000000..46435b2 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductQueryNewDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 16:50 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductProductQueryNewDTO extends AliexpressAuth { + //request.addApiParameter("product_id", "1005004616872521"); + private String product_id; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductSchemaGetDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductSchemaGetDTO.java new file mode 100644 index 0000000..a7e009a --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductSchemaGetDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 16:17 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductProductSchemaGetDTO extends AliexpressAuth { + //request.addApiParameter("aliexpress_category_id", "200000346"); + private String aliexpress_category_id; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductSkuPricesEditDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductSkuPricesEditDTO.java new file mode 100644 index 0000000..e2e315f --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductProductSkuPricesEditDTO.java @@ -0,0 +1,20 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 17:36 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductProductSkuPricesEditDTO extends AliexpressAuth { + //request.addApiParameter("product_id", "32985788417"); + //request.addApiParameter("sku_id_price_map", "{ \"14:193\": \"0.6\",\"14:175\": \"0.9\"}"); + private String product_id; + private String sku_id_price_map; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductQueryBundleDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductQueryBundleDTO.java new file mode 100644 index 0000000..7ab9102 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductQueryBundleDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 17:06 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductQueryBundleDTO extends AliexpressAuth { + //request.addApiParameter("param_aeop_offer_bundle_query_condition", "{\"item_subject\":\"test-product\",\"item_id\":\"32840310226\",\"current_page\":\"1\",\"page_size\":\"10\"}"); + private String param_aeop_offer_bundle_query_condition; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductQueryProductGroupIdByProductIdDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductQueryProductGroupIdByProductIdDTO.java new file mode 100644 index 0000000..db711d4 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductQueryProductGroupIdByProductIdDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 17:18 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductQueryProductGroupIdByProductIdDTO extends AliexpressAuth { + //request.addApiParameter("product_id", "1629872654"); + private String product_id; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductQueryPromiseTemplateByIdDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductQueryPromiseTemplateByIdDTO.java new file mode 100644 index 0000000..d105ac9 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductQueryPromiseTemplateByIdDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 17:04 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductQueryPromiseTemplateByIdDTO extends AliexpressAuth { + //request.addApiParameter("template_id", "-1"); + private String template_id; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductRenewExpireDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductRenewExpireDTO.java new file mode 100644 index 0000000..8ab8684 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductRenewExpireDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 16:57 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductRenewExpireDTO extends AliexpressAuth { + //request.addApiParameter("product_id", "32960861801"); + private String product_id; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductSchemaProductFullUpdateDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductSchemaProductFullUpdateDTO.java new file mode 100644 index 0000000..f6dfd37 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductSchemaProductFullUpdateDTO.java @@ -0,0 +1,20 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 16:15 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductSchemaProductFullUpdateDTO extends AliexpressAuth { + //request.addApiParameter("schema_full_update_request", "{\"category_id\":200000346,\"title_multi_language_list\":[{\"locale\":\"es_ES\",\"title\":\"test\"}],\"description_multi_language_list\":[{\"locale\":\"es_ES\",\"module_list\":[{\"type\":\"html\",\"html\":{\"content\":\"test\"}}]}],\"locale\":\"es_ES\",\"product_units_type\":\"100000000\",\"image_url_list\":[\"https://ae01.alicdn.com/kf/HTB1TZJRVkvoK1RjSZFwq6AiCFXa0.jpg_350x350.jpg\"],\"category_attributes\":{\"Brand Name\":{\"value\":\"200010868\"},\"Material\":{\"value\":[\"47\",\"49\"]},\"Clothing Length\":{\"value\":\"1876\"}},\"sku_info_list\":[{\"sku_code\":\"234\",\"inventory\":234,\"price\":23,\"discount_price\":12,\"sku_attributes\":{\"Size\":{\"value\":\"200000989\"},\"Color\":{\"alias\":\"32\",\"sku_image_url\":\"https://ae01.alicdn.com/kf/HTB1TZJRVkvoK1RjSZFwq6AiCFXa0.jpg_350x350.jpg\",\"value\":\"771\"}}}],\"inventory_deduction_strategy\":\"place_order_withhold\",\"package_weight\":234,\"package_length\":234,\"package_height\":234,\"package_width\":234,\"shipping_preparation_time\":3,\"shipping_template_id\":\"1000\",\"service_template_id\":\"0\",\"aliexpress_product_id\":32985684727}"); + //request.addApiParameter("developer_features", "{\"source\":\"Lengow\"}"); + private String schema_full_update_request; + private String developer_features; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductSchemaProductInstancePostDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductSchemaProductInstancePostDTO.java new file mode 100644 index 0000000..f9b9a7d --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductSchemaProductInstancePostDTO.java @@ -0,0 +1,21 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 15:52 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductSchemaProductInstancePostDTO extends AliexpressAuth { + //request.addApiParameter("product_instance_request", "{ \"category_id\": 348, \"title_multi_language_list\": [ { \"locale\": \"es_ES\", \"title\": \"atestproducttesttest001\" } ], \"description_multi_language_list\": [ { \"locale\": \"es_ES\", \"module_list\": [ { \"type\": \"html\", \"html\": { \"content\": \"unotesttestdescription002\" } } ] } ], \"locale\": \"es_ES\", \"product_units_type\": \"100000015\", \"image_url_list\": [ \"https://upload.wikimedia.org/wikipedia/commons/b/ba/E-SENS_architecture.jpg\" ], \"category_attributes\": { \"Brand Name\": { \"value\": \"200010868\" }, \"ShirtsType\": { \"value\": \"200001208\" }, \"Material\": { \"value\": [ \"567\" ] }, \"SleeveLength(cm)\": { \"value\": \"200001500\" } }, \"sku_info_list\": [ { \"sku_code\": \"WEO19293829123\", \"inventory\": 3, \"price\": 9900, \"discount_price\": 9800, \"sku_attributes\": { \"Size\": { \"alias\": \"Uni\", \"value\": \"200003528\" } } } ], \"inventory_deduction_strategy\": \"payment_success_deduct\", \"package_weight\": 1.5, \"package_length\": 10, \"package_height\": 20, \"package_width\": 30, \"shipping_preparation_time\": 3, \"shipping_template_id\": \"714844311\", \"service_template_id\": \"0\" }"); + private String product_instance_request; + //request.addApiParameter("developer_features", "{\"source\":\"Lengow\"}"); + private String developer_features; + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductSetShopWindowProductDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductSetShopWindowProductDTO.java new file mode 100644 index 0000000..9f12138 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductSetShopWindowProductDTO.java @@ -0,0 +1,18 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 16:52 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductSetShopWindowProductDTO extends AliexpressAuth { + //request.addApiParameter("product_id_list", "1351344486;1351344487"); + private String product_id_list; +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductUgcProductVideoUploadDTO.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductUgcProductVideoUploadDTO.java new file mode 100644 index 0000000..11746cc --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/aliexpress/dto/product/ProductUgcProductVideoUploadDTO.java @@ -0,0 +1,23 @@ +package com.ruoyi.web.controller.aliexpress.dto.product; + +import com.ruoyi.web.core.config.AliexpressAuth; +import lombok.Getter; +import lombok.Setter; + +/** + * @author ldj + * @date 2024/2/29 17:02 + * @Description: ... + * @Version 1.0 + */ +@Getter +@Setter +public class ProductUgcProductVideoUploadDTO extends AliexpressAuth { + //request.addApiParameter("product_id", "123554348908"); + //request.addApiParameter("media_type", "video"); + //request.addApiParameter("video_file_url", "http://ae-cn.alicdn.com/kddd6bep.mp4"); + private String product_id; + private String media_type; + private String video_file_url; + +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/enumerate/AliexpressCategoryEnu.java b/ruoyi-admin/src/main/java/com/ruoyi/web/enumerate/AliexpressCategoryEnu.java index f634449..b2ba55f 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/enumerate/AliexpressCategoryEnu.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/enumerate/AliexpressCategoryEnu.java @@ -16,12 +16,12 @@ public enum AliexpressCategoryEnu { SUGGESTION("/v2.0/categories/suggestion"), //request.setApiName("aliexpress.data.qd.file.upload"); //QD数据文件上传 - FILE_UPLOAD("aliexpress.data.qd.file.upload"), + QD_FILE_UPLOAD("aliexpress.data.qd.file.upload"), //request.setApiName("aliexpress.solution.sku.attribute.query") //查询属于特定类别的 sku 属性信息 SKU_ATTRIBUTE_QUERY("aliexpress.solution.sku.attribute.query"), //request.setApiName("aliexpress.solution.seller.category.tree.query"); - //速卖通.解决方案.卖家.类别.树.查询 + //卖家查询分类树的接口 SELLER_CATEGORY_TREE_QUERY("aliexpress.solution.seller.category.tree.query"), //request.setApiName("aliexpress.category.redefining.sizemodelsrequiredforpostcat"); //判断叶子类目是否必须尺码表 diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/enumerate/AliexpressMemberEnu.java b/ruoyi-admin/src/main/java/com/ruoyi/web/enumerate/AliexpressMemberEnu.java new file mode 100644 index 0000000..de6437d --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/enumerate/AliexpressMemberEnu.java @@ -0,0 +1,33 @@ +package com.ruoyi.web.enumerate; + +/** + * @author ldj + * @date 2024/2/29 15:17 + * @Description: ... + * @Version 1.0 + */ +public enum AliexpressMemberEnu { + //request.setApiName("aliexpress.member.redefining.uicquerytbnick"); + //查询淘宝的nickName + UIC_QUERY_TB_NICK("aliexpress.member.redefining.uicquerytbnick"), + //request.setApiName("aliexpress.member.ds.orderdata.save"); + //收集下单的用户和订单金额等信息 + DS_ORDER_DATA_SAVE("aliexpress.member.ds.orderdata.save"), + //request.setApiName("aliexpress.member.oauth.authorize"); + //oauth授权 + OAUTH_AUTHORIZE("aliexpress.member.oauth.authorize"), + //request.setApiName("aliexpress.member.redefining.queryaccountlevel"); + //查询会员账户等级 + QUERY_ACCOUNT_LEVEL("aliexpress.member.redefining.queryaccountlevel"); + + + private final String apiName; + + AliexpressMemberEnu(String apiName) { + this.apiName = apiName; + } + + public String getApiName() { + return this.apiName; + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/enumerate/AliexpressProductEnu.java b/ruoyi-admin/src/main/java/com/ruoyi/web/enumerate/AliexpressProductEnu.java new file mode 100644 index 0000000..2242251 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/enumerate/AliexpressProductEnu.java @@ -0,0 +1,228 @@ +package com.ruoyi.web.enumerate; + +/** + * @author ldj + * @date 2024/2/29 11:24 + * @Description: ... + * @Version 1.0 + */ +public enum AliexpressProductEnu { + //request.setApiName("aliexpress.solution.batch.product.price.update"); + //批量更新商品价格 + BATCH_PRODUCT_PRICE_UPDATE("aliexpress.solution.batch.product.price.update"), + //request.setApiName("aliexpress.solution.product.edit"); + //用于编辑产品 + PRODUCT_EDIT("aliexpress.solution.product.edit"), + //request.setApiName("aliexpress.solution.product.info.get"); + //获取单一产品信息 + PRODUCT_INFO_GET("aliexpress.solution.product.info.get"), + //request.setApiName("aliexpress.solution.product.list.get"); + //获取产品列表 + PRODUCT_LIST_GET("aliexpress.solution.product.list.get"), + //request.setApiName("aliexpress.solution.feed.invalidate"); + //特定 Feed 失效 + FEED_INVALIDATE("aliexpress.solution.feed.invalidate"), + //request.setApiName("aliexpress.solution.product.post"); + //产品发布 + PRODUCT_POST("aliexpress.solution.product.post"), + //request.setApiName("aliexpress.solution.schema.product.instance.post"); + //基于json schema实例上传产品 + SCHEMA_PRODUCT_INSTANCE_POST("aliexpress.solution.schema.product.instance.post"), + //request.setApiName("aliexpress.offer.draftproduct.get"); + //查询草稿箱里的产品信息 + DRAFT_PRODUCT_GET("aliexpress.offer.draftproduct.get"), + //request.setApiName("aliexpress.solution.batch.product.delete"); + //删除除草稿框外的在线产品 + BATCH_PRODUCT_DELETE("aliexpress.solution.batch.product.delete"), + //request.setApiName("aliexpress.solution.batch.product.inventory.update"); + //批量产品库存更新 + BATCH_PRODUCT_INVENTORY_UPDATE("aliexpress.solution.batch.product.inventory.update"), + //request.setApiName("aliexpress.solution.feed.list.get"); + //查询属于卖家的 Feed 列表 + FEED_LIST_GET("aliexpress.solution.feed.list.get"), + //request.setApiName("aliexpress.solution.feed.query"); + //查询Feed执行结果 + FEED_QUERY("aliexpress.solution.feed.query"), + //request.setApiName("aliexpress.solution.feed.submit"); + //供商家提交 Feed 数据 + FEED_SUBMIT("aliexpress.solution.feed.submit"), + //request.setApiName("aliexpress.solution.hscode.query"); + //用于根据产品类别获取hscode + HS_CODE_QUERY("aliexpress.solution.hscode.query"), + //request.setApiName("aliexpress.solution.merchant.profile.get"); + //海外卖家获取正常信息 + MERCHANT_PROFILE_GET("aliexpress.solution.merchant.profile.get"), + //request.setApiName("aliexpress.solution.schema.product.full.update"); + //产品全量更新 + SCHEMA_PRODUCT_FULL_UPDATE("aliexpress.solution.schema.product.full.update"), + //request.setApiName("aliexpress.solution.product.schema.get"); + //获取产品架构 + PRODUCT_SCHEMA_GET("aliexpress.solution.product.schema.get"), + //request.setApiName("aliexpress.postproduct.redefining.setsizechart"); + //修改商品所引用的尺码模板 + POST_PRODUCT_REDEFINING_SET_SIZE_CHART("aliexpress.postproduct.redefining.setsizechart"), + //request.setApiName("aliexpress.postproduct.redefining.editaeproduct"); + //修改编辑商品信息 + POST_PRODUCT_REDEFINING_EDIT_AE_PRODUCT("aliexpress.postproduct.redefining.editaeproduct"), + //request.setApiName("aliexpress.product.diagnosis.pageQueryProblem"); + //分页查询待优化商品列表 + PRODUCT_DIAGNOSIS_PAGE_QUERY_PROBLEM("aliexpress.product.diagnosis.pageQueryProblem"), + //request.setApiName("aliexpress.postproduct.redefining.createproductgroup"); + //创建产品分组 + POST_PRODUCT_REDEFINING_CREATE_PRODUCT_GROUP("aliexpress.postproduct.redefining.createproductgroup"), + //request.setApiName("aliexpress.postproduct.redefining.postaeproduct"); + //发布产品信息 + POST_PRODUCT_REDEFINING_POST_AE_PRODUCT("aliexpress.postproduct.redefining.postaeproduct"), + //request.setApiName("aliexpress.postproduct.redefining.postmultilanguageaeproduct"); + //发布多语言产品(试用) + POST_PRODUCT_REDEFINING_POST_MULTI_LANGUAGE_AE_PRODUCT("aliexpress.postproduct.redefining.postmultilanguageaeproduct"), + //request.setApiName("aliexpress.postproduct.redefining.onlineaeproduct"); + //商品上架 + POST_PRODUCT_REDEFINING_ONLINE_AE_PRODUCT("aliexpress.postproduct.redefining.onlineaeproduct"), + //request.setApiName("aliexpress.postproduct.redefining.offlineaeproduct"); + //商品下架 + POST_PRODUCT_REDEFINING_OFFLINE_AE_PRODUCT("aliexpress.postproduct.redefining.offlineaeproduct"), + //request.setApiName("aliexpress.postproduct.redefining.setgroups"); + //商品分组设置 + POST_PRODUCT_REDEFINING_SET_GROUPS("aliexpress.postproduct.redefining.setgroups"), + //request.setApiName("aliexpress.postproduct.redefining.findproductinfolistquery"); + //商品列表查询接口 + POST_PRODUCT_REDEFINING_FIND_PRODUCT_INFO_LIST_QUERY("aliexpress.postproduct.redefining.findproductinfolistquery"), + //request.setApiName("aliexpress.offer.product.delete"); + //商品删除接口 + PRODUCT_DELETE("aliexpress.offer.product.delete"), + //request.setApiName("aliexpress.offer.product.post"); + //商品发布新接口 + PRODUCT_POST_NEW("aliexpress.offer.product.post"), + //request.setApiName("aliexpress.offer.product.edit"); + //商品新的编辑接口 + PRODUCT_EDIT_NEW("aliexpress.offer.product.edit"), + //request.setApiName("aliexpress.offer.product.query"); + //商品查询新接口 + PRODUCT_QUERY_NEW("aliexpress.offer.product.query"), + //request.setApiName("aliexpress.postproduct.redefining.setshopwindowproduct"); + //商品橱窗设置 + SET_SHOP_WINDOW_PRODUCT("aliexpress.postproduct.redefining.setshopwindowproduct"), + //request.setApiName("aliexpress.postproduct.redefining.findaeproductprohibitedwords"); + //商品违禁词查询 + FIND_AE_PRODUCT_PROHIBITED_WORDS("aliexpress.postproduct.redefining.findaeproductprohibitedwords"), + //request.setApiName("aliexpress.offer.redefining.copysizetemplate"); + //将指定的尺码模版信息复制到具有相同的模型的目标叶子类目下面 + COPY_SIZE_TEMPLATE("aliexpress.offer.redefining.copysizetemplate"), + //request.setApiName("aliexpress.postproduct.redefining.renewexpire"); + //延长商品有效期 + RENEW_EXPIRE("aliexpress.postproduct.redefining.renewexpire"), + //request.setApiName("aliexpress.carmodel.update.product.carInfo"); + //批量更新商品绑定车型信息 + CAR_MODEL_UPDATE_PRODUCT_CAR_INFO("aliexpress.carmodel.update.product.carInfo"), + //request.setApiName("aliexpress.carmodel.findByTecIds"); + //批量查询车型库数据 + CAR_MODEL_FIND_BY_TEC_IDS("aliexpress.carmodel.findByTecIds"), + //request.setApiName("aliexpress.ugc.product.video.upload"); + //新增商品主图短视频 + UGC_PRODUCT_VIDEO_UPLOAD("aliexpress.ugc.product.video.upload"), + //request.setApiName("aliexpress.postproduct.redefining.querypromisetemplatebyid"); + //服务模板查询 + QUERY_PROMISE_TEMPLATE_BY_ID("aliexpress.postproduct.redefining.querypromisetemplatebyid"), + //request.setApiName("aliexpress.offer.redefining.querybundle"); + //查询主商品搭配列表 + QUERY_BUNDLE("aliexpress.offer.redefining.querybundle"), + //request.setApiName("aliexpress.postproduct.redefining.findaeproductdetailmodulelistbyqurey"); + //查询信息模板列表 + FIND_AE_PRODUCT_DETAIL_MODULE_LIST_BY_QUREY("aliexpress.postproduct.redefining.findaeproductdetailmodulelistbyqurey"), + //request.setApiName("aliexpress.postproduct.redefining.findaeproductmodulebyid"); + //查询单个信息模板详情 + FIND_AE_PRODUCT_MODULE_BY_ID("aliexpress.postproduct.redefining.findaeproductmodulebyid"), + //request.setApiName("aliexpress.postproduct.redefining.findaeproductstatusbyid"); + //查询商品状态 + FIND_AE_PRODUCT_STATUS_BY_ID("aliexpress.postproduct.redefining.findaeproductstatusbyid"), + //request.setApiName("aliexpress.carmodel.findListByProductId"); + //查询商品绑定的车型信息 + CAR_MODEL_FIND_LIST_BY_PRODUCT_ID("aliexpress.carmodel.findListByProductId"), + //request.setApiName("aliexpress.product.diagnosis.result.list"); + //查询商家下已优化商品 + PRODUCT_DIAGNOSIS_RESULT_LIST("aliexpress.product.diagnosis.result.list"), + //request.setApiName("aliexpress.product.diagnosis.queryProblem"); + //查询商家下待优化的商品问题类型列表 + PRODUCT_DIAGNOSIS_QUERY_PROBLEM("aliexpress.product.diagnosis.queryProblem"), + //request.setApiName("aliexpress.postproduct.redefining.queryproductgroupidbyproductid"); + //查询指定商品ID所在产品分组 + QUERY_PRODUCT_GROUP_ID_BY_PRODUCT_ID("aliexpress.postproduct.redefining.queryproductgroupidbyproductid"), + //request.setApiName("aliexpress.offer.draftproduct.get"); + //查询草稿箱里的产品信息 + DRAFT_PRODUCT_GET_NEW("aliexpress.offer.draftproduct.get"), + //request.setApiName("aliexpress.offer.draftproducts.get"); + //查询草稿箱里的商品列表 + DRAFT_PRODUCTS_GET("aliexpress.offer.draftproducts.get"), + //request.setApiName("aliexpress.carmodel.get.brand"); + //查询车型库支持的品牌 + CAR_MODEL_GET_BRAND("aliexpress.carmodel.get.brand"), + //request.setApiName("aliexpress.carmodel.get.country"); + //查询车型库支持的国家 + CAR_MODEL_GET_COUNTRY("aliexpress.carmodel.get.country"), + //request.setApiName("aliexpress.carmodel.get.linktarget"); + //查询零配件关联的TEC车型ID + CAR_MODEL_GET_LINK_TARGET("aliexpress.carmodel.get.linktarget"), + //request.setApiName("aliexpress.carmodel.get.article"); + //根据OE号查询零配件信息 + CAR_MODEL_GET_ARTICLE("aliexpress.carmodel.get.article"), + //request.setApiName("aliexpress.carmodel.findByTecId"); + //根据tecId查询车型库数据 + CAR_MODEL_FIND_BY_TEC_ID("aliexpress.carmodel.findByTecId"), + //request.setApiName("aliexpress.postproduct.redefining.getsizechartinfobycategoryid"); + //根据类目id获得适用的尺码表信息列表(不推荐使用) + GET_SIZE_CHART_INFO_BY_CATEGORY_ID("aliexpress.postproduct.redefining.getsizechartinfobycategoryid"), + //request.setApiName("aliexpress.postproduct.redefining.categoryforecast"); + //类目预测 + CATEGORY_FORECAST("aliexpress.postproduct.redefining.categoryforecast"), + //request.setApiName("aliexpress.offer.product.skuprices.edit"); + //编辑单商品多sku价格 + PRODUCT_SKU_PRICES_EDIT("aliexpress.offer.product.skuprices.edit"), + //request.setApiName("aliexpress.postproduct.redefining.editmutilpleskustocks"); + //编辑单商品多个SKU的库存 + EDIT_MULTIPLE_SKU_STOCKS("aliexpress.postproduct.redefining.editmutilpleskustocks"), + //request.setApiName("aliexpress.postproduct.redefining.editsingleskuprice"); + //编辑商品单个SKU价格 + EDIT_SINGLE_SKU_PRICE("aliexpress.postproduct.redefining.editsingleskuprice"), + //request.setApiName("aliexpress.postproduct.redefining.editsingleskustock"); + //编辑商品单个SKU库存 + EDIT_SINGLE_SKU_STOCK("aliexpress.postproduct.redefining.editsingleskustock"), + //request.setApiName("aliexpress.postproduct.redefining.editsimpleproductfiled"); + //编辑商品的单个字段 + EDIT_SIMPLE_PRODUCT_FILED("aliexpress.postproduct.redefining.editsimpleproductfiled"), + //request.setApiName("aliexpress.postproduct.redefining.editmultilanguageproduct"); + //编辑商品的多语言标题或详描 + EDIT_MULTI_LANGUAGE_PRODUCT("aliexpress.postproduct.redefining.editmultilanguageproduct"), + //request.setApiName("aliexpress.postproduct.redefining.editproductcategoryattributes"); + //编辑商品类目属性 + EDIT_PRODUCT_CATEGORY_ATTRIBUTES("aliexpress.postproduct.redefining.editproductcategoryattributes"), + //request.setApiName("aliexpress.postproduct.redefining.findaeproductbyid"); + //获取单个产品信息 + FIND_AE_PRODUCT_BY_ID("aliexpress.postproduct.redefining.findaeproductbyid"), + //request.setApiName("aliexpress.offer.redefining.getsizetemplatesbycategoryid"); + //获取叶子类目下尺码模版列表 + GET_SIZE_TEMPLATES_BY_CATEGORY_ID("aliexpress.offer.redefining.getsizetemplatesbycategoryid"), + //request.setApiName("aliexpress.postproduct.redefining.getproductgrouplist"); + //获取当前会员的产品分组(不推荐使用) + GET_PRODUCT_GROUP_LIST("aliexpress.postproduct.redefining.getproductgrouplist"), + //request.setApiName("aliexpress.product.productgroups.get"); + //获取当前会员的产品分组(新) + PRODUCT_GROUPS_GET("aliexpress.product.productgroups.get"), + //request.setApiName("aliexpress.offer.redefining.initialnewbundle"); + //通过商品ID初始化商品搭配 + INITIAL_NEW_BUNDLE("aliexpress.offer.redefining.initialnewbundle"); + + + + + + private final String apiName; + + AliexpressProductEnu(String apiName) { + this.apiName = apiName; + } + + public String getApiName() { + return this.apiName; + } +}