|
|
|
@ -165,7 +165,7 @@ public class TiktokMiniController extends BaseController { |
|
|
|
return AjaxResult.success(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value="取消收藏") |
|
|
|
@PostMapping(value = "/tiktokUnCollect") |
|
|
|
public AjaxResult tiktokUnCollect(@Validated @RequestBody @ApiParam("收藏对象") CollectionDto dto){ |
|
|
|
@ -174,7 +174,7 @@ public class TiktokMiniController extends BaseController { |
|
|
|
return AjaxResult.success(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value="查询是否收藏过") |
|
|
|
@PostMapping(value = "/judgeTiktokCollect") |
|
|
|
public AjaxResult judgeTiktokCollect(@Validated @RequestBody @ApiParam("收藏对象") CollectionDto dto){ |
|
|
|
@ -182,7 +182,7 @@ public class TiktokMiniController extends BaseController { |
|
|
|
return AjaxResult.success(tiktokCollectionService.judgeCollect(dto.getUserId(),dto.getImgId(),"0")); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value="查看用户收藏分页") |
|
|
|
@PostMapping(value = "/listTiktokCollection") |
|
|
|
public TableDataInfo listTiktokCollection(@Validated @RequestBody @ApiParam("用户收藏对象") CollectionUserDto dto){ |
|
|
|
@ -191,7 +191,7 @@ public class TiktokMiniController extends BaseController { |
|
|
|
return getDataTable(tiktokCollectionService.getCollectionByUserId(dto.getUserId(),"0")); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value="点赞") |
|
|
|
@PostMapping(value = "/tiktokLike") |
|
|
|
public AjaxResult tiktokLike(@Validated @RequestBody @ApiParam("点赞对象") CollectionDto dto){ |
|
|
|
@ -200,7 +200,7 @@ public class TiktokMiniController extends BaseController { |
|
|
|
return AjaxResult.success(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value="取消点赞") |
|
|
|
@PostMapping(value = "/tiktokUnLike") |
|
|
|
public AjaxResult tiktokUnLike(@Validated @RequestBody @ApiParam("点赞对象") CollectionDto dto){ |
|
|
|
@ -209,7 +209,7 @@ public class TiktokMiniController extends BaseController { |
|
|
|
return AjaxResult.success(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value="查询是否点赞过") |
|
|
|
@PostMapping(value = "/judgeTiktokLike") |
|
|
|
public AjaxResult judgeTiktokLike(@Validated @RequestBody @ApiParam("点赞对象") CollectionDto dto){ |
|
|
|
@ -230,7 +230,7 @@ public class TiktokMiniController extends BaseController { |
|
|
|
return tiktokUserService.getTiktokLoginUserByLoginParam(dto); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value="查询首页图片列表") |
|
|
|
@PostMapping(value = "/imgLists") |
|
|
|
public TableDataInfo imgLists(@RequestBody @ApiParam("分页对象") BasePageDto dto){ |
|
|
|
@ -239,12 +239,17 @@ public class TiktokMiniController extends BaseController { |
|
|
|
return getDataTable(tiktokImgVos); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value="检查某平台用户当日下载/绘画奖励次数是否超标") |
|
|
|
|
|
|
|
@ApiOperation(value="检查某平台用户当日下载次数是否超标") |
|
|
|
@PostMapping(value = "/checkUserCanDownload") |
|
|
|
public AjaxResult checkUserCanDownload(@Validated @RequestBody @ApiParam("检查超标对象") checkUserCanDownloadDto dto){ |
|
|
|
log.debug("【抖音图文小程序】检查某平台用户当日下载次数是否超标参数为:{}", JSON.toJSONString(dto)); |
|
|
|
return AjaxResult.success(tiktokUserService.checkUserCanDownload(dto.getUserId(),dto.getPlatform(),dto.getAppType(),dto.getAdType())); |
|
|
|
return AjaxResult.success(tiktokUserService.checkUserCanDownload(dto.getUserId(),dto.getPlatform(),dto.getAppType())); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value="检查某平台用户当日看广告获取画意值次数是否超标") |
|
|
|
@PostMapping(value = "/checkUserCanGetGold") |
|
|
|
public AjaxResult checkUserCanGetGold(@Validated @RequestBody @ApiParam("检查超标对象") checkUserCanDownloadDto dto){ |
|
|
|
return AjaxResult.success(tiktokUserService.checkUserCanGetGold(dto.getUserId(),dto.getPlatform(),dto.getAppType())); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value="检查某平台用户当日ai绘画次数是否超标") |
|
|
|
@ -254,7 +259,7 @@ public class TiktokMiniController extends BaseController { |
|
|
|
return AjaxResult.success(tiktokUserService.checkUserCanAiPaint(dto.getUserId(),dto.getPlatform(),dto.getAppType())); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value="新增/更新艺术家即将入账广告收益") |
|
|
|
@PostMapping(value = "/insertOrUpdatePreAdProfit") |
|
|
|
public AjaxResult insertOrUpdatePreAdProfit(@Validated @RequestBody @ApiParam("即将入账广告对象") CreatorProfitAdInsertDto dto){ |
|
|
|
@ -262,7 +267,7 @@ public class TiktokMiniController extends BaseController { |
|
|
|
return AjaxResult.success(creatorProfitService.insertCreatorProfit(dto)); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value="新增/更新艺术家即将入账邀请收益") |
|
|
|
@PostMapping(value = "/insertOrUpdatePreInviteProfit") |
|
|
|
public AjaxResult insertOrUpdatePreInviteProfit(@Validated @RequestBody @ApiParam("即将入账邀请对象") CreatorProfitInviteInsertDto dto){ |
|
|
|
@ -271,14 +276,14 @@ public class TiktokMiniController extends BaseController { |
|
|
|
return AjaxResult.success(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value="查询热门艺术家列表") |
|
|
|
@GetMapping(value = "/listHotCreator") |
|
|
|
public AjaxResult listHotCreator(){ |
|
|
|
return AjaxResult.success(creatorService.queryHotCreatorList()); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value="根据艺术家id获取搜索码") |
|
|
|
@GetMapping(value = "/queryCreatorScanCodeById/{id}") |
|
|
|
public AjaxResult queryCreatorScanCodeById(@PathVariable @ApiParam("艺术家id") Long id){ |
|
|
|
@ -290,7 +295,7 @@ public class TiktokMiniController extends BaseController { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value="查询小程序端标签分页") |
|
|
|
@PostMapping(value = "/signImgList") |
|
|
|
public TableDataInfo signImgList(@RequestBody @ApiParam("分页对象") SignTypePageDto dto){ |
|
|
|
@ -299,7 +304,7 @@ public class TiktokMiniController extends BaseController { |
|
|
|
return getDataTable(signImgVos); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value="根据分类id和标签Id查询图片分页") |
|
|
|
@PostMapping(value = "/querySignImg") |
|
|
|
public TableDataInfo querySignImg(@RequestBody @ApiParam("分页对象") SignImgPageDto dto){ |
|
|
|
@ -308,7 +313,7 @@ public class TiktokMiniController extends BaseController { |
|
|
|
return getDataTable(tiktokImgs); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value="根据标签名称查询图片分页") |
|
|
|
@PostMapping(value = "/querySignImgBySignName") |
|
|
|
public TableDataInfo querySignImgBySignName(@RequestBody @ApiParam("分页对象") SignImgNamePageDto dto) { |
|
|
|
@ -322,7 +327,7 @@ public class TiktokMiniController extends BaseController { |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "八字算命") |
|
|
|
@PostMapping("/getYs") |
|
|
|
public AjaxResult getYs(@RequestBody @ApiParam("八字运势") BzDto dto) { |
|
|
|
@ -333,7 +338,7 @@ public class TiktokMiniController extends BaseController { |
|
|
|
return AjaxResult.error(); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value="支付购买用户会员vip") |
|
|
|
@PostMapping(value = "/payUserVip") |
|
|
|
public AjaxResult payUserVip(@Validated @RequestBody @ApiParam("购买会员vip对象") PayUserVipDto dto){ |
|
|
|
@ -346,21 +351,21 @@ public class TiktokMiniController extends BaseController { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value="查询产品列表") |
|
|
|
@GetMapping(value = "/listProduct") |
|
|
|
public AjaxResult listProduct(){ |
|
|
|
return AjaxResult.success(productService.queryFrontList()); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value="查询产品详情") |
|
|
|
@GetMapping(value = "/queryProductDetails/{id}") |
|
|
|
public AjaxResult queryProductDetails(@ApiParam("主键id") @PathVariable("id") Long id){ |
|
|
|
return AjaxResult.success(productService.queryFrontDetails(id)); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value="关注") |
|
|
|
@PostMapping(value = "/tiktokFollow") |
|
|
|
public AjaxResult tiktokFollow(@Validated @RequestBody @ApiParam("关注对象") FollowDto dto){ |
|
|
|
@ -384,7 +389,7 @@ public class TiktokMiniController extends BaseController { |
|
|
|
return AjaxResult.success(followService.checkFollow(dto.getUserId(),dto.getCreatorId(),"0")); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value="查询关注的艺术家分页") |
|
|
|
@PostMapping(value = "/getTiktokFollowCreatorPage") |
|
|
|
public TableDataInfo getTiktokFollowCreatorPage(@Validated @RequestBody @ApiParam("用户id对象") UserIdDto dto){ |
|
|
|
@ -495,10 +500,30 @@ public class TiktokMiniController extends BaseController { |
|
|
|
return AjaxResult.success(tiktokUserService.getUserGoldNum(userId)); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value="获取某平台用户当日下载/绘画奖励剩余次数") |
|
|
|
@PostMapping(value = "/getRestNum") |
|
|
|
public AjaxResult getUserDownloadNumOrRewardNum(@Validated @RequestBody @ApiParam("检查超标对象") checkUserCanDownloadDto dto){ |
|
|
|
return AjaxResult.success(tiktokUserService.getUserDownloadNumOrRewardNum(dto.getUserId(),dto.getPlatform(),dto.getAppType(),dto.getAdType())); |
|
|
|
@ApiOperation(value="获取某平台用户当日下载剩余次数") |
|
|
|
@PostMapping(value = "/getRestDownloadNum") |
|
|
|
public AjaxResult getUserDownloadNum(@Validated @RequestBody @ApiParam("检查超标对象") checkUserCanDownloadDto dto){ |
|
|
|
return AjaxResult.success(tiktokUserService.getUserDownloadNum(dto.getUserId(),dto.getPlatform(),dto.getAppType())); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value="获取某平台用户当日绘画奖励剩余次数") |
|
|
|
@PostMapping(value = "/getRestRewardNum") |
|
|
|
public AjaxResult getUserRewardNum(@Validated @RequestBody @ApiParam("检查超标对象") checkUserCanDownloadDto dto){ |
|
|
|
return AjaxResult.success(tiktokUserService.getUserRewardNum(dto.getUserId(),dto.getPlatform(),dto.getAppType())); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value="会员/用户签到获取画意值") |
|
|
|
@PostMapping(value = "/signGetGold") |
|
|
|
public AjaxResult signGetGold(@Validated @RequestBody @ApiParam("签到获取画意值对象") GetGoldDto params){ |
|
|
|
goldLogService.signGetGold(params); |
|
|
|
return AjaxResult.success(); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value="会员/用户看广告获取画意值") |
|
|
|
@PostMapping(value = "/watchAdGetGold") |
|
|
|
public AjaxResult watchAdGetGold(@Validated @RequestBody @ApiParam("看广告获取画意值对象") GetGoldDto params){ |
|
|
|
goldLogService.watchAdGetGold(params); |
|
|
|
return AjaxResult.success(); |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|