|
@@ -3,8 +3,7 @@ package org.jeecg.modules.bytedance.advertise.controller;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
|
|
-import io.swagger.annotations.Api;
|
|
|
-import io.swagger.annotations.ApiOperation;
|
|
|
+import io.swagger.annotations.*;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.shiro.SecurityUtils;
|
|
|
import org.jeecg.common.api.vo.Result;
|
|
@@ -174,7 +173,7 @@ public class AiBytedanceAdvertiserStrategyController {
|
|
|
|
|
|
@ApiOperation(value="头条智能投放账户配置信息-修改状态(0开-1关)", notes="头条智能投放账户配置信息-修改状态(0开-1关)")
|
|
|
@PutMapping(value = "/updStaById")
|
|
|
- public Result updStaById(@RequestParam("id") String id, @RequestParam("state") String state) {
|
|
|
+ public Result updStaById(@RequestParam("id")String id, @ApiParam("状态(0开-1关)") @RequestParam("state") String state) {
|
|
|
try {
|
|
|
return aiBytedanceAdvertiserStrategyService.updStaById(id,state);
|
|
|
}catch (Exception e){
|
|
@@ -188,9 +187,9 @@ public class AiBytedanceAdvertiserStrategyController {
|
|
|
@PutMapping(value = "/updStaOrCpaOrBudgetById")
|
|
|
public Result updStaOrCpaOrBudgetById(UpdAdStaOrCpaOrBudget updAdStaOrCpaOrBudget) {
|
|
|
try {
|
|
|
- if (updAdStaOrCpaOrBudget.getData().size() > 100){
|
|
|
+ /*if (updAdStaOrCpaOrBudget.getData().size() > 100){
|
|
|
return Result.error("批量修改数量不能超过闭区间[1~100]");
|
|
|
- }
|
|
|
+ }*/
|
|
|
return aiBytedanceAdvertiserStrategyService.updStaOrCpaOrBudgetById(updAdStaOrCpaOrBudget);
|
|
|
}catch (Exception e){
|
|
|
log.error("修改出价-预算失败",e.getMessage());
|
|
@@ -253,32 +252,6 @@ public class AiBytedanceAdvertiserStrategyController {
|
|
|
}
|
|
|
|
|
|
|
|
|
- @ApiOperation(value="头条智能投放账户配置-新建账户配置", notes="头条智能投放账户配置-新建账户配置")
|
|
|
- @PostMapping(value = "/createADCreative")
|
|
|
- public Result createADCreative(@RequestBody AiBytedanceAdvertiserStrategy aiBytedanceAdvertiserStrategy) {
|
|
|
- try {
|
|
|
- return aiBytedanceAdvertiserStrategyService.createADCreative(aiBytedanceAdvertiserStrategy);
|
|
|
- }catch (Exception e){
|
|
|
- log.error("创建失败",e.getMessage());
|
|
|
- return Result.error("请求失败,请联系开发人员!");
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
- @ApiOperation(value="头条智能投放账户配置-修改账户配置", notes="头条智能投放账户配置-修改账户配置")
|
|
|
- @PostMapping(value = "/updateADCreative")
|
|
|
- public Result updateADCreative(AiBytedanceAdvertiserStrategy aiBytedanceAdvertiserStrategy,
|
|
|
- @RequestParam("groupModifyTime") String groupModifyTime,
|
|
|
- @RequestParam("planModifyTime") String planModifyTime) {
|
|
|
- try {
|
|
|
- return aiBytedanceAdvertiserStrategyService.updateADCreative(aiBytedanceAdvertiserStrategy,groupModifyTime,planModifyTime);
|
|
|
- }catch (Exception e){
|
|
|
- log.error("修改失败",e.getMessage());
|
|
|
- return Result.error("请求失败,请联系开发人员!");
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
-
|
|
|
|
|
|
@ApiOperation(value="查询广告计划可用转化目标", notes="查询广告计划可用转化目标")
|
|
|
@PostMapping(value = "/getToolConvert")
|