| | |
| | | package com.sandu.ximon.admin.controller; |
| | | |
| | | import com.sandu.common.domain.ResponseVO; |
| | | import com.sandu.common.util.ResponseUtil; |
| | | import com.sandu.ximon.admin.param.IpVolumeFileParam; |
| | | import com.sandu.ximon.admin.service.AdvisementPlayerFileService; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | /** |
| | | * @Author liuhaonan |
| | | * @Date 2021/12/16 14:07 |
| | | * @Version 1.0 |
| | | * LCD广告机文件 |
| | | */ |
| | | |
| | | @RestController |
| | | @AllArgsConstructor |
| | | @RequestMapping("/v1/lcdFile") |
| | | public class AdvisementPlayerFileController { |
| | | private final AdvisementPlayerFileService advisementPlayerFileService; |
| | | |
| | | |
| | | @PostMapping("/add") |
| | | public ResponseVO<Object> addLCDFile(@RequestBody @Validated IpVolumeFileParam param) { |
| | | return ResponseUtil.success(advisementPlayerFileService.addFile(param)); |
| | | } |
| | | |
| | | @PostMapping("/delete/{fileId}") |
| | | public ResponseVO<Object> deleteLCDFile(@PathVariable Long fileId) { |
| | | return ResponseUtil.success(advisementPlayerFileService.deleteFile(fileId)); |
| | | } |
| | | |
| | | @GetMapping("/list") |
| | | public ResponseVO<Object> listfile() {/*ReceiveParam param*/ |
| | | return ResponseUtil.success(advisementPlayerFileService.list()); |
| | | } |
| | | } |