package com.ruoyi.controller;

import com.ruoyi.annotations.UserLoginToken;
import com.ruoyi.frequency.worksshield.service.WorksShieldService;
import com.ruoyi.response.ResponseData;
import com.ruoyi.vo.BodyIdReq;
import com.ruoyi.vo.RyController;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * 作品屏蔽
 * @author liwenlong
 *
 */
@CrossOrigin
@RestController
@RequestMapping("/api/worksShield")
@Api(tags = "作品屏蔽")
public class ApiWorksShieldController extends RyController {

    @Autowired
    private WorksShieldService worksShieldService;

    @PostMapping("/worksShield")
    @UserLoginToken
    @ApiOperation(value = "作品屏蔽", notes = "作品屏蔽")
    public ResponseData worksShield(@RequestBody BodyIdReq req) {
        return worksShieldService.worksShield(req.getId(),getUserVo());
    }
}
