You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.3 KiB
Java
53 lines
1.3 KiB
Java
6 years ago
|
package com.kiisoo.ic.synchronous.controller;
|
||
|
|
||
|
import com.kiisoo.ic.store.entity.PoiStore;
|
||
|
import com.kiisoo.ic.utils.DataImportUtil;
|
||
|
import lombok.extern.slf4j.Slf4j;
|
||
|
import org.springframework.stereotype.Controller;
|
||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||
|
import org.springframework.web.bind.annotation.RequestMethod;
|
||
|
import org.springframework.web.bind.annotation.ResponseBody;
|
||
|
|
||
|
import java.util.List;
|
||
|
|
||
|
|
||
|
/**
|
||
|
* 同步数据
|
||
|
*/
|
||
|
@Controller
|
||
|
@RequestMapping("/api")
|
||
|
@Slf4j
|
||
|
public class SynchronousController {
|
||
|
|
||
|
/**
|
||
|
* 导入店铺接口
|
||
|
* @return
|
||
|
*/
|
||
|
@RequestMapping(value = "/shop/add",method = RequestMethod.POST)
|
||
|
@ResponseBody
|
||
|
public String addShop(@RequestBody List<PoiStore> PoiStores){
|
||
|
return DataImportUtil.succ(1);
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 导入vip接口
|
||
|
* @return
|
||
|
*/
|
||
|
@RequestMapping(value = "/vip/add",method = RequestMethod.POST)
|
||
|
@ResponseBody
|
||
|
public String addVip(@RequestBody List<PoiStore> PoiStores){
|
||
|
return DataImportUtil.succ(1);
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* 导入导购接口
|
||
|
* @return
|
||
|
*/
|
||
|
@RequestMapping(value = "/staff/add",method = RequestMethod.POST)
|
||
|
@ResponseBody
|
||
|
public String addSeller(@RequestBody List<PoiStore> PoiStores){
|
||
|
return DataImportUtil.succ(1);
|
||
|
}
|
||
|
}
|