|
@@ -1,8 +1,5 @@
|
|
|
package com.chelvc.cloud.maintain.controller;
|
|
|
|
|
|
-import java.util.Map;
|
|
|
-import javax.validation.constraints.NotNull;
|
|
|
-
|
|
|
import com.chelvc.cloud.vehicle.client.DynamicContentClient;
|
|
|
import com.chelvc.cloud.vehicle.client.dto.DynamicContentDTO;
|
|
|
import com.chelvc.cloud.vehicle.client.param.AddDynamicContentParam;
|
|
@@ -13,12 +10,10 @@ import com.chelvc.framework.common.model.Pagination;
|
|
|
import lombok.RequiredArgsConstructor;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
-import org.springframework.web.bind.annotation.DeleteMapping;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
+
|
|
|
+import javax.validation.constraints.NotNull;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* 动态信息
|
|
@@ -96,8 +91,8 @@ public class DynamicContentController {
|
|
|
* @date 2023/8/9 17:25
|
|
|
*/
|
|
|
@PostMapping("/add")
|
|
|
- public void add(@Validated @RequestBody AddDynamicContentParam param) {
|
|
|
- this.dynamicContentClient.insertByBo(param, SessionContextHolder.getId());
|
|
|
+ public Long add(@Validated @RequestBody AddDynamicContentParam param) {
|
|
|
+ return this.dynamicContentClient.insertByBo(param, SessionContextHolder.getId());
|
|
|
}
|
|
|
|
|
|
/**
|