Browse Source

update

master
zhaohe 3 months ago
parent
commit
85df523ac9
  1. 68
      src/main/java/a8k/app/controler/api/v1/app/verification/PipetteGunPerformanceValidationController.java

68
src/main/java/a8k/app/controler/api/v1/app/verification/PipetteGunPerformanceValidationController.java

@ -1,34 +1,34 @@
package a8k.app.controler.api.v1.app.verification;
import a8k.app.service.verification.PipetteGunPerformanceValidator;
import a8k.app.type.exception.AppException;
import a8k.app.type.ui.ApiRet;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Tag(name = "移液枪性能验证", description = "")
@Slf4j
@Controller
@RequestMapping(value = "/api/v1/app/verification")
@ResponseBody
public class PipetteGunPerformanceValidationController {
@Resource
PipetteGunPerformanceValidator pipetteGunPerformanceValidator;
/**
* 移液枪10ul验证
* @return
* @throws AppException
*/
@PostMapping("/pipetteGun/10ul")
public ApiRet<Void> validate10ul() throws AppException {
pipetteGunPerformanceValidator.aspirate10ul();
return ApiRet.success();
}
}
//package a8k.app.controler.api.v1.app.verification;
//
//import a8k.app.service.verification.PipetteGunPerformanceValidator;
//import a8k.app.type.exception.AppException;
//import a8k.app.type.ui.ApiRet;
//import io.swagger.v3.oas.annotations.tags.Tag;
//import jakarta.annotation.Resource;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.stereotype.Controller;
//import org.springframework.web.bind.annotation.GetMapping;
//import org.springframework.web.bind.annotation.PostMapping;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.ResponseBody;
//
//@Tag(name = "移液枪性能验证", description = "")
//@Slf4j
//@Controller
//@RequestMapping(value = "/api/v1/app/verification")
//@ResponseBody
//public class PipetteGunPerformanceValidationController {
// @Resource
// PipetteGunPerformanceValidator pipetteGunPerformanceValidator;
//
// /**
// * 移液枪10ul验证
// * @return
// * @throws AppException
// */
// @PostMapping("/pipetteGun/10ul")
// public ApiRet<Void> validate10ul() throws AppException {
// pipetteGunPerformanceValidator.aspirate10ul();
// return ApiRet.success();
// }
//}
Loading…
Cancel
Save