|
|
|
@ -2,6 +2,7 @@ package com.bnyer.img.controller; |
|
|
|
|
|
|
|
import cn.hutool.core.collection.CollectionUtil; |
|
|
|
import com.alibaba.fastjson.JSON; |
|
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
|
import com.bnyer.common.core.exception.ServiceException; |
|
|
|
import com.bnyer.common.core.web.controller.BaseController; |
|
|
|
import com.bnyer.common.core.web.domain.AjaxResult; |
|
|
|
@ -60,6 +61,9 @@ public class TiktokMiniController extends BaseController { |
|
|
|
@Autowired |
|
|
|
private SignService signService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private BzDataService bzDataService; |
|
|
|
|
|
|
|
//@TokenCheck
|
|
|
|
@ApiOperation(value="查询banner列表") |
|
|
|
@GetMapping(value = "/listBanner") |
|
|
|
@ -265,4 +269,15 @@ public class TiktokMiniController extends BaseController { |
|
|
|
List<TiktokImgVo> tiktokImgs = tiktokImgService.querySignImgBySignIdAndTypeId(dto.getSignId(), dto.getTypeId()); |
|
|
|
return getDataTable(tiktokImgs); |
|
|
|
} |
|
|
|
|
|
|
|
//@TokenCheck
|
|
|
|
@ApiOperation(value = "八字算命") |
|
|
|
@PostMapping("/getYs") |
|
|
|
public AjaxResult getYs(@RequestBody @ApiParam("八字运势") BzDto dto) { |
|
|
|
JSONObject jsonObject = bzDataService.getYs(dto); |
|
|
|
if (jsonObject!=null){ |
|
|
|
return AjaxResult.success(jsonObject); |
|
|
|
} |
|
|
|
return AjaxResult.error(); |
|
|
|
} |
|
|
|
} |
|
|
|
|