|
|
@@ -0,0 +1,47 @@
|
|
|
+cpackage com.wx.blink.backend.controller;
|
|
|
+
|
|
|
+import com.wx.blink.backend.domain.dto.BlinkActivityAttachmentDTO;
|
|
|
+import com.wx.blink.backend.domain.qry.BlinkActivityAttachmentQry;
|
|
|
+import com.wx.blink.backend.service.IBlinkActivityAttachmentService;
|
|
|
+import com.wx.blink.base.common.domain.PageResult;
|
|
|
+import com.wx.blink.base.common.domain.ResponseDTO;
|
|
|
+import io.swagger.v3.oas.annotations.Operation;
|
|
|
+import io.swagger.v3.oas.annotations.tags.Tag;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+import javax.annotation.Resource;
|
|
|
+import javax.validation.Valid;
|
|
|
+
|
|
|
+@RestController
|
|
|
+@Tag(name = "活动附件")
|
|
|
+public class BlinkActivityAttachmentController {
|
|
|
+
|
|
|
+ @Resource
|
|
|
+ private IBlinkActivityAttachmentService attachmentService;
|
|
|
+
|
|
|
+ @Operation(summary = "新增附件")
|
|
|
+ @PostMapping("/supports/activity/attachment/create")
|
|
|
+ public ResponseDTO<String> supportsActivityAttachmentCreate(@RequestBody @Valid BlinkActivityAttachmentDTO dto) {
|
|
|
+ return attachmentService.supportsActivityAttachmentCreate(dto);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Operation(summary = "分页查询活动附件列表")
|
|
|
+ @GetMapping("/supports/activity/attachment/queryPage")
|
|
|
+ public ResponseDTO<PageResult<BlinkActivityAttachmentDTO>> supportsActivityAttachmentQueryPage(BlinkActivityAttachmentQry qry) {
|
|
|
+ return attachmentService.supportsActivityAttachmentQueryPage(qry);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Operation(summary = "获取活动附件信息")
|
|
|
+ @GetMapping("/supports/activity/attachment/{id}")
|
|
|
+ public ResponseDTO<BlinkActivityAttachmentDTO> supportsActivityAttachmentQuery(@PathVariable("id") Long id) {
|
|
|
+ return attachmentService.supportsActivityAttachmentQuery(id);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Operation(summary = "删除活动附件")
|
|
|
+ @GetMapping("/supports/activity/attachment/delete/{id}")
|
|
|
+ public ResponseDTO<String> supportsActivityAttachmentDeleteById(@PathVariable("id") Long id) {
|
|
|
+ return attachmentService.supportsActivityAttachmentDeleteById(id);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+}
|