package com.fs.app.controller;

import com.fs.app.annotation.Login;
import com.fs.common.core.domain.R;
import com.fs.his.param.APPSignArticleReadDetailParam;
import com.fs.his.param.ProjectRedParam;
import com.fs.his.service.IFsProjectRedDetailService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
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;

import javax.servlet.http.HttpServletRequest;

@Api("理疗项目阅读详情接口")
@RestController
@RequestMapping(value="/app/projectRedDetail")
public class ProjectRedDetailController extends  AppBaseController {

    @Autowired
    private IFsProjectRedDetailService projectRedDetailService;

    @Login
    @ApiOperation("用户理疗浏览")
    @PostMapping("/userReadProject")
    public R userReadArticle(@RequestBody ProjectRedParam param, HttpServletRequest request) {
        param.setUserId(Long.parseLong(getUserId()));
        return projectRedDetailService.userRedProject(param);
    }
}
