| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- package com.crm.custom.controller;
- import com.crm.custom.service.WebVideoFeignService;
- import com.crm.login.rely.backend.controller.BaseLoginController;
- import com.crm.rely.backend.core.dto.base.BaseResultDto;
- import com.crm.rely.backend.core.entity.base.SingleLongEntity;
- import com.crm.rely.backend.model.entity.custom.video.record.CustomVideoRecordAddEntity;
- import com.crm.rely.backend.model.entity.web.video.WebVideoSearchListEntity;
- import org.springframework.beans.factory.annotation.Autowired;
- import org.springframework.validation.annotation.Validated;
- 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;
- /**
- * @author: houn
- */
- @RestController
- @RequestMapping("/web/video")
- public class WebVideoController extends BaseLoginController {
- @Autowired
- private WebVideoFeignService feignService;
- /**
- * @param entity
- * @return
- * @throws Exception
- */
- @PostMapping("/list")
- public BaseResultDto list(@RequestBody @Validated WebVideoSearchListEntity entity) throws Exception {
- return feignService.customList(entity);
- }
- @PostMapping("/single")
- public BaseResultDto single(@RequestBody @Validated SingleLongEntity entity) throws Exception {
- return feignService.customSingle(entity);
- }
- @PostMapping("/read")
- public BaseResultDto read(@RequestBody @Validated CustomVideoRecordAddEntity entity) throws Exception {
- return feignService.customRead(entity);
- }
- }
|