feat:()修改车辆列表方法

dev.redis
sy200 2024-10-07 18:33:41 +08:00
parent 620decf638
commit eb5960822e
3 changed files with 7 additions and 4 deletions

View File

@ -11,6 +11,9 @@
<artifactId>cloud-common-rabbit</artifactId>
<description>
cloud-common-rabbit 模块提供RabbitMq消息队列的相关配置
</description>
<properties>
<maven.compiler.source>17</maven.compiler.source>
<maven.compiler.target>17</maven.compiler.target>
@ -32,4 +35,4 @@
</dependency>
</dependencies>
</project>
</project>

View File

@ -48,7 +48,7 @@ public class VehicleTypeController {
*
* @return
*/
@RequestMapping(path = "/", method = RequestMethod.POST)
@RequestMapping(path = "/findAll", method = RequestMethod.POST)
@Operation(summary = "车辆类型列表",description = "车辆类型列表")
public Result<List<VehicleType>> findAll(){
List<VehicleType> list = vehicleTypeService.list();
@ -58,7 +58,7 @@ public class VehicleTypeController {
list.forEach(vehicleType -> {
vehicleTypeCacheService.put(String.valueOf(vehicleType.getVehicleTypeId()), vehicleType);
});
return Result.success();
return Result.success(list);
}
/**

View File

@ -7,7 +7,7 @@ nacos:
addr: 47.101.49.53:8848
user-name: nacos
password: nacos
namespace: warn
namespace: seven
# SPRING_AMQP_DESERIALIZATION_TRUST_ALL=true spring.amqp.deserialization.trust.all
# Spring
spring: