| | |
| | | import com.moral.api.service.VersionService; |
| | | import com.moral.constant.ResponseCodeEnum; |
| | | import com.moral.constant.ResultMessage; |
| | | import com.moral.util.TokenUtils; |
| | | import io.swagger.annotations.Api; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | @GetMapping("queryById") |
| | | public ResultMessage queryById(Integer id){ |
| | | VersionDTO dto = versionService.queryVersionById(id); |
| | | VersionVO vo = VersionVO.convert(dto); |
| | | return new ResultMessage(dto.getCode(), dto.getMsg(), vo); |
| | | } |
| | | |
| | | } |