package com.ruoyi.post.controller;

import com.ruoyi.annotations.UserLoginToken;
import com.ruoyi.post.frequency.posshield.service.PostShieldService;
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/postShield")
@Api(tags = "帖子屏蔽")
public class ApiPostShieldController extends RyController {

    @Autowired
    private PostShieldService postShieldService;

    @PostMapping("/postShield")
    @UserLoginToken
    @ApiOperation(value = "帖子屏蔽", notes = "帖子屏蔽")
    public ResponseData postShield(@RequestBody BodyIdReq req) {
        return postShieldService.postShield(req.getId(),getUserVo());
    }


}
