package com.iailab.module.any.controller;
|
|
import com.iailab.framework.common.pojo.CommonResult;
|
import com.iailab.module.any.dto.AnyProcCardDTO;
|
import com.iailab.module.any.service.AnyProcCardService;
|
import io.swagger.v3.oas.annotations.Operation;
|
import lombok.extern.slf4j.Slf4j;
|
import javax.annotation.Resource;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.PathVariable;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
/**
|
* @author PanZhibao
|
* @Description
|
* @createTime 2024年06月25日
|
*/
|
@Slf4j
|
@RestController
|
@RequestMapping("any/proc-card")
|
public class AnyProcCardController {
|
|
@Resource
|
private AnyProcCardService anyProcCardService;
|
|
@GetMapping("code/{code}")
|
@Operation(summary = "信息")
|
public CommonResult<AnyProcCardDTO> info(@PathVariable("code") String code) {
|
AnyProcCardDTO data = anyProcCardService.getByCode(code);
|
|
return new CommonResult<AnyProcCardDTO>().setData(data);
|
}
|
}
|