| | |
| | | |
| | | import com.panzhihua.common.model.dtos.AppletesBackstageConfigDTO; |
| | | import com.panzhihua.common.model.dtos.advertisement.ComOpsAdvDTO; |
| | | import com.panzhihua.common.model.dtos.advertisement.PageComOpsAdvDTO; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.service_community.service.ComOpsAdvService; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | |
| | |
| | | public R listAdvjump(){ |
| | | return comOpsAdvService.listAdvjump(); |
| | | } |
| | | |
| | | /** |
| | | * 分页查询广告 |
| | | * @param pageComOpsAdvDTO 查询内容 |
| | | * @return 查询结果 ComOpsAdvVO |
| | | */ |
| | | @PostMapping("pageadvertisement") |
| | | R pageAdvertisement(@RequestBody PageComOpsAdvDTO pageComOpsAdvDTO){ |
| | | return comOpsAdvService.pageAdvertisement(pageComOpsAdvDTO); |
| | | } |
| | | |
| | | /** |
| | | * 广告详情 |
| | | * @param id 主键 |
| | | * @return 广告内容 |
| | | */ |
| | | @PostMapping("detailadvertisement") |
| | | public R detailAdvertisement(@RequestParam("id") Long id){ |
| | | return comOpsAdvService.detailAdvertisement(id); |
| | | } |
| | | } |