package com.diagbot.web;


import com.diagbot.annotation.SysLogger;
import com.diagbot.dto.RespDTO;
import com.diagbot.entity.StrDeathNote;
import com.diagbot.facade.StrDeathNoteFacade;
import com.diagbot.vo.str.StrDeathNoteVO;
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;

/**
 * <p>
 * 死亡记录 前端控制器
 * </p>
 *
 * @author cy
 * @since 2020-09-22
 */
@RestController
@RequestMapping("/str/DeathNote")
@Api(value = "死亡记录相关API", tags = { "死亡记录相关API" })
public class StrDeathNoteController {

    @Autowired
    private StrDeathNoteFacade strDeathNoteFacade;

    @ApiOperation("新增或修改死亡记录基本信息")
    @PostMapping("/infos")
    @SysLogger("infos")
    public RespDTO<StrDeathNoteVO> sendDeathNoteInfos(@RequestBody StrDeathNote strDeathNote){
        return strDeathNoteFacade.sendDeathNoteInfos(strDeathNote);
    }

}
