| | |
| | | package cn.lihu.jh.module.ecg.controller.admin.checktype; |
| | | |
| | | import org.springframework.web.bind.annotation.*; |
| | | import jakarta.annotation.Resource; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.security.access.prepost.PreAuthorize; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Parameter; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | |
| | | import jakarta.validation.constraints.*; |
| | | import jakarta.validation.*; |
| | | import jakarta.servlet.http.*; |
| | | import java.util.*; |
| | | import java.io.IOException; |
| | | |
| | |
| | | import cn.lihu.jh.module.ecg.controller.admin.checktype.vo.*; |
| | | import cn.lihu.jh.module.ecg.dal.dataobject.checktype.CheckTypeDO; |
| | | import cn.lihu.jh.module.ecg.service.checktype.CheckTypeService; |
| | | |
| | | import javax.annotation.Resource; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import javax.validation.Valid; |
| | | |
| | | @Tag(name = "管理后台 - 检查类型") |
| | | @RestController |
| | |
| | | BeanUtils.toBean(list, CheckTypeRespVO.class)); |
| | | } |
| | | |
| | | } |
| | | @GetMapping("/list-simple-check-type") |
| | | @Operation(summary = "获得简单检查类型列表") |
| | | @PermitAll |
| | | public CommonResult<List<SimpleCheckTypeRespVO>> getSimpleCheckTypeList() { |
| | | List<CheckTypeDO> list = checkTypeService.getSimpleCheckTypeList(); |
| | | return success(BeanUtils.toBean(list, SimpleCheckTypeRespVO.class)); |
| | | } |
| | | } |