| | |
| | | package cn.iocoder.yudao.module.mes.controller.pub.trace; |
| | | |
| | | import cn.iocoder.yudao.framework.common.pojo.CommonResult; |
| | | import cn.iocoder.yudao.module.mes.controller.pub.trace.vo.MesProTracePublicConfigRespVO; |
| | | import cn.iocoder.yudao.module.mes.controller.pub.trace.vo.MesProTracePublicRespVO; |
| | | import cn.iocoder.yudao.module.mes.service.trace.MesProTracePublicService; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | |
| | | return success(service.queryTrace(code)); |
| | | } |
| | | |
| | | @GetMapping("/config") |
| | | @PermitAll |
| | | @Operation(summary = "获得溯源页配置(生产经营者名称、追溯网址)") |
| | | public CommonResult<MesProTracePublicConfigRespVO> getConfig() { |
| | | return success(service.getPublicConfig()); |
| | | } |
| | | |
| | | } |