|
@@ -12,6 +12,7 @@ import javax.servlet.http.HttpServletResponse;
|
|
import cn.com.ctop.common.module.annotation.AutoLog;
|
|
import cn.com.ctop.common.module.annotation.AutoLog;
|
|
import cn.com.ctop.kuaishou.modules.batch.entity.KuaishouBatchCreativePreview;
|
|
import cn.com.ctop.kuaishou.modules.batch.entity.KuaishouBatchCreativePreview;
|
|
import cn.com.ctop.kuaishou.modules.batch.service.IKuaishouBatchCreativePreviewService;
|
|
import cn.com.ctop.kuaishou.modules.batch.service.IKuaishouBatchCreativePreviewService;
|
|
|
|
+import com.alibaba.fastjson.JSONObject;
|
|
import org.jeecg.common.api.vo.Result;
|
|
import org.jeecg.common.api.vo.Result;
|
|
import org.jeecg.common.system.query.QueryGenerator;
|
|
import org.jeecg.common.system.query.QueryGenerator;
|
|
import org.jeecg.common.util.oConvertUtils;
|
|
import org.jeecg.common.util.oConvertUtils;
|
|
@@ -48,7 +49,7 @@ import io.swagger.annotations.ApiOperation;
|
|
@Slf4j
|
|
@Slf4j
|
|
@Api(tags = "快手-广告创意预览信息")
|
|
@Api(tags = "快手-广告创意预览信息")
|
|
@RestController
|
|
@RestController
|
|
-@RequestMapping("/kuai/kuaishouBatchCreativePreview")
|
|
|
|
|
|
+@RequestMapping("/kuaishouBatch/creativePreview")
|
|
public class KuaishouBatchCreativePreviewController {
|
|
public class KuaishouBatchCreativePreviewController {
|
|
@Autowired
|
|
@Autowired
|
|
private IKuaishouBatchCreativePreviewService kuaishouBatchCreativePreviewService;
|
|
private IKuaishouBatchCreativePreviewService kuaishouBatchCreativePreviewService;
|
|
@@ -98,6 +99,26 @@ public class KuaishouBatchCreativePreviewController {
|
|
}
|
|
}
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
|
|
+ /**
|
|
|
|
+ * 添加
|
|
|
|
+ *
|
|
|
|
+ * @param kuaishouBatchCreativePreview
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @AutoLog(value = "根据预览信息创建广告计划、组、创意")
|
|
|
|
+ @ApiOperation(value = "根据预览信息创建广告计划、组、创意", notes = "根据预览信息创建广告计划、组、创意")
|
|
|
|
+ @PostMapping(value = "/createAdcampaignAndGroups")
|
|
|
|
+ public Result<KuaishouBatchCreativePreview> createAdcampaignAndGroups(@RequestBody JSONObject data) {
|
|
|
|
+ Result<KuaishouBatchCreativePreview> result = new Result<>();
|
|
|
|
+ try {
|
|
|
|
+ kuaishouBatchCreativePreviewService.createAdcampaignAndGroups(data);
|
|
|
|
+ result.success("添加成功!");
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ log.error(e.getMessage(), e);
|
|
|
|
+ result.error500("操作失败");
|
|
|
|
+ }
|
|
|
|
+ return result;
|
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
/**
|
|
* 编辑
|
|
* 编辑
|
|
@@ -107,7 +128,7 @@ public class KuaishouBatchCreativePreviewController {
|
|
*/
|
|
*/
|
|
@AutoLog(value = "快手-广告创意预览信息-编辑")
|
|
@AutoLog(value = "快手-广告创意预览信息-编辑")
|
|
@ApiOperation(value = "快手-广告创意预览信息-编辑", notes = "快手-广告创意预览信息-编辑")
|
|
@ApiOperation(value = "快手-广告创意预览信息-编辑", notes = "快手-广告创意预览信息-编辑")
|
|
- @PutMapping(value = "/edit")
|
|
|
|
|
|
+ @PostMapping(value = "/edit")
|
|
public Result<KuaishouBatchCreativePreview> edit(@RequestBody KuaishouBatchCreativePreview kuaishouBatchCreativePreview) {
|
|
public Result<KuaishouBatchCreativePreview> edit(@RequestBody KuaishouBatchCreativePreview kuaishouBatchCreativePreview) {
|
|
Result<KuaishouBatchCreativePreview> result = new Result<KuaishouBatchCreativePreview>();
|
|
Result<KuaishouBatchCreativePreview> result = new Result<KuaishouBatchCreativePreview>();
|
|
KuaishouBatchCreativePreview kuaishouBatchCreativePreviewEntity = kuaishouBatchCreativePreviewService.getById(kuaishouBatchCreativePreview.getId());
|
|
KuaishouBatchCreativePreview kuaishouBatchCreativePreviewEntity = kuaishouBatchCreativePreviewService.getById(kuaishouBatchCreativePreview.getId());
|