|
|
@ -7,7 +7,6 @@ import io.swagger.annotations.Api;
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
|
|
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
|
|
|
|
|
@ -24,7 +23,7 @@ public class ActivityController extends BaseController {
|
|
|
|
PmnActivityScheduleDOMapper pmnActivityScheduleDOMapper;
|
|
|
|
PmnActivityScheduleDOMapper pmnActivityScheduleDOMapper;
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "所有活动池列表")
|
|
|
|
@ApiOperation(value = "所有活动池列表")
|
|
|
|
@RequestMapping(value = "/schedule/list/all", method = RequestMethod.GET)
|
|
|
|
@RequestMapping(value = "/schedule/list/all")
|
|
|
|
@ResponseBody
|
|
|
|
@ResponseBody
|
|
|
|
public Map<String, Object> listAll() {
|
|
|
|
public Map<String, Object> listAll() {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
@ -37,9 +36,43 @@ public class ActivityController extends BaseController {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "新增或修改活动池")
|
|
|
|
@ApiOperation(value = "新增或修改活动池")
|
|
|
|
@RequestMapping(value = "/schedule/save", method = RequestMethod.GET)
|
|
|
|
@RequestMapping(value = "/schedule/save")
|
|
|
|
@ResponseBody
|
|
|
|
@ResponseBody
|
|
|
|
public Map<String, Object> save() {
|
|
|
|
public Map<String, Object> save() {
|
|
|
|
return data(null);
|
|
|
|
return data(null);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "根据活动池新建实例,修改实例详情")
|
|
|
|
|
|
|
|
@RequestMapping(value = "/instance/save")
|
|
|
|
|
|
|
|
@ResponseBody
|
|
|
|
|
|
|
|
public Map<String, Object> saveInstance() {
|
|
|
|
|
|
|
|
// TODO 分开保存实例参数,店铺关系,修改的时候,也需要操作活动店铺关系表
|
|
|
|
|
|
|
|
// TODO 异步批量生成店铺二维码,导购二维码,回调的时候保存到对应的表
|
|
|
|
|
|
|
|
return data(null);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "活动实例分页列表")
|
|
|
|
|
|
|
|
@RequestMapping(value = "/instance/list")
|
|
|
|
|
|
|
|
@ResponseBody
|
|
|
|
|
|
|
|
public Map<String, Object> instanceList() {
|
|
|
|
|
|
|
|
// TODO 需要根据当前用户角色分开查询
|
|
|
|
|
|
|
|
return data(null);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "活动实例详情")
|
|
|
|
|
|
|
|
@RequestMapping(value = "/instance/detail")
|
|
|
|
|
|
|
|
@ResponseBody
|
|
|
|
|
|
|
|
public Map<String, Object> instanceDetail() {
|
|
|
|
|
|
|
|
return data(null);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "活动实例终止")
|
|
|
|
|
|
|
|
@RequestMapping(value = "/instance/terminate")
|
|
|
|
|
|
|
|
@ResponseBody
|
|
|
|
|
|
|
|
public Map<String, Object> instanceTerminate() {
|
|
|
|
|
|
|
|
// TODO 终止后不可恢复
|
|
|
|
|
|
|
|
return data(null);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|