package com.zd.exam.controller;

import com.zd.common.core.domain.R;
import com.zd.common.core.web.page.TableDataInfo;
import com.zd.system.api.laboratory.RemoteLaboratoryService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @Author: liujh
 * @Date: 2021/12/24/11:45
 * @Description:个人中心
 */
@RestController
@RequestMapping("/person/center")
@Api(tags = {"个人中心"})
public class ElpersonCenterController {

    @Autowired
    private RemoteLaboratoryService laboratoryService;

    @GetMapping("/info")
    public R getPersonInfo(){

        return laboratoryService.getPersonInfo();
    }

   /* @GetMapping("/historyList")
    @ApiOperation(value = "查询违规记录列表")
    public TableDataInfo violationhistoryList(@RequestParam(defaultValue = "-1") String overStatus,
                                              @RequestParam(defaultValue = "") String statTime,
                                              @RequestParam(defaultValue = "") String endTime) {
        List<LabNegativelistHistory> list = laboratoryService.violationhistoryList(overStatus,statTime,endTime);
        return getDataTable();
    }*/
}
