parent
c006555499
commit
a4161efdb2
@ -0,0 +1,33 @@
|
||||
package com.luoo.music.controller;
|
||||
|
||||
import api.PageResult;
|
||||
import api.Result;
|
||||
import com.luoo.music.dto.response.cms.ArticleRespDTO;
|
||||
import com.luoo.music.service.CMSAdvertisementService;
|
||||
import com.luoo.music.service.CMSArticleService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import io.swagger.annotations.ApiParam;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
|
||||
/**
|
||||
* @author Revers.
|
||||
* @date 2024/02/24 20:53
|
||||
**/
|
||||
|
||||
@RestController
|
||||
@CrossOrigin
|
||||
@Api(tags = "雀跃APP广告 APIs")
|
||||
@RequestMapping("/ad")
|
||||
public class AdvertisementControoller {
|
||||
|
||||
@Autowired
|
||||
private CMSAdvertisementService adService;
|
||||
|
||||
@ApiOperation(value = "广告阅览次数加一", notes = "广告阅览次数加一")
|
||||
@PostMapping("/{id}")
|
||||
public Result<PageResult<ArticleRespDTO>> visitAdd(@ApiParam(value = "广告ID", required = true) @PathVariable String id){
|
||||
return adService.visitAdd(id);
|
||||
}
|
||||
}
|
Loading…
Reference in new issue