|
|
@ -20,6 +20,7 @@ import org.springframework.validation.annotation.Validated; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
import java.util.List; |
|
|
import java.util.List; |
|
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
@Api(value = "【抖音小程序】接口",tags = "【抖音小程序】接口") |
|
|
@Api(value = "【抖音小程序】接口",tags = "【抖音小程序】接口") |
|
|
@RestController |
|
|
@RestController |
|
|
@ -209,4 +210,17 @@ public class TiktokMiniController extends BaseController { |
|
|
public AjaxResult listHotCreator(){ |
|
|
public AjaxResult listHotCreator(){ |
|
|
return AjaxResult.success(creatorService.queryHotCreatorList()); |
|
|
return AjaxResult.success(creatorService.queryHotCreatorList()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//@TokenCheck
|
|
|
|
|
|
@ApiOperation(value="根据艺术家id获取搜索码") |
|
|
|
|
|
@GetMapping(value = "/queryCreatorScanCodeById/{id}") |
|
|
|
|
|
public AjaxResult queryCreatorScanCodeById(@PathVariable @ApiParam("艺术家id") Long id){ |
|
|
|
|
|
Map<String, Object> result = creatorService.queryCreatorScanCodeById(id); |
|
|
|
|
|
if(result != null){ |
|
|
|
|
|
return AjaxResult.success(result); |
|
|
|
|
|
}else{ |
|
|
|
|
|
return AjaxResult.error("该艺术家不存在!"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
|