|
@@ -5,6 +5,7 @@ import com.chelvc.cloud.vehicle.api.service.FeedbackService;
|
|
import com.chelvc.framework.base.annotation.ResponseWrapping;
|
|
import com.chelvc.framework.base.annotation.ResponseWrapping;
|
|
import org.apache.dubbo.config.annotation.DubboReference;
|
|
import org.apache.dubbo.config.annotation.DubboReference;
|
|
import org.springframework.validation.annotation.Validated;
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
import org.springframework.web.bind.annotation.PutMapping;
|
|
import org.springframework.web.bind.annotation.PutMapping;
|
|
@@ -13,6 +14,8 @@ import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
import javax.validation.Valid;
|
|
import javax.validation.Valid;
|
|
import javax.validation.constraints.Min;
|
|
import javax.validation.constraints.Min;
|
|
|
|
+import javax.validation.constraints.NotEmpty;
|
|
|
|
+import java.util.List;
|
|
|
|
|
|
/**
|
|
/**
|
|
* 意见反馈接口
|
|
* 意见反馈接口
|
|
@@ -53,9 +56,9 @@ public class FeedbackController {
|
|
/**
|
|
/**
|
|
* 查询意见反馈
|
|
* 查询意见反馈
|
|
*/
|
|
*/
|
|
- @PostMapping("/feedback/queryById")
|
|
|
|
- public FeedBackDTO queryById() {
|
|
|
|
- return this.feedbackService.getFeedback();
|
|
|
|
|
|
+ @GetMapping("/feedback/query")
|
|
|
|
+ public List<FeedBackDTO> queryById(@Valid @NotEmpty String channel) {
|
|
|
|
+ return this.feedbackService.getFeedback(channel);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|