改造平台建店接口

This commit is contained in:
shuo.wang
2025-04-08 20:39:17 +08:00
parent e276cd8ef9
commit d82f99533b
9 changed files with 93 additions and 6 deletions

View File

@@ -4,6 +4,7 @@ import com.alibaba.fastjson.JSONObject;
import com.cool.store.constants.CommonConstants;
import com.cool.store.dao.*;
import com.cool.store.entity.*;
import com.cool.store.enums.DownSystemTypeEnum;
import com.cool.store.enums.MessageEnum;
import com.cool.store.enums.QWMessageEnum;
import com.cool.store.enums.SMSMsgEnum;
@@ -57,6 +58,8 @@ public class PCTestController {
DataHandleService dataHandleService;
static String url = "https://hzly.cloudcubic.net/ajaxHandle/synchronization/JCallBackSynchronizationHandler.ashx?action=app&controller=GetProjectDetails&projectid=";
@Resource
private SyncDataService syncDataService;
@Resource
private HttpRestTemplateService httpRestTemplateService;
@@ -235,4 +238,9 @@ public class PCTestController {
return ResponseResult.success(huoMaService.getShopInfo(request));
}
@GetMapping("/getData")
public ResponseResult getData(@RequestParam("shopId")Long shopId,@RequestParam("type")Integer type){
return ResponseResult.success(syncDataService.getData(shopId, DownSystemTypeEnum.getByCode(type)));
}
}