get->post
parent
9dc95d7889
commit
c6931a900f
|
@ -1,6 +1,9 @@
|
||||||
package com.god.base.domain.request;
|
package com.god.base.domain.request;
|
||||||
|
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @description: 根据终端4个参数返回对应车辆主题
|
* @description: 根据终端4个参数返回对应车辆主题
|
||||||
|
@ -8,6 +11,9 @@ import lombok.Data;
|
||||||
* @date 2023/11/28 23:02
|
* @date 2023/11/28 23:02
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
@Builder
|
||||||
public class GetTopicReq {
|
public class GetTopicReq {
|
||||||
/**
|
/**
|
||||||
* 车辆VIN
|
* 车辆VIN
|
||||||
|
|
|
@ -8,10 +8,7 @@ import com.god.common.log.annotation.Log;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
|
||||||
import org.springframework.stereotype.Controller;
|
import org.springframework.stereotype.Controller;
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import org.springframework.web.bind.annotation.RequestBody;
|
|
||||||
import org.springframework.web.bind.annotation.RequestMapping;
|
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -30,7 +27,7 @@ public class TopLineController {
|
||||||
* 获取主题
|
* 获取主题
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
@GetMapping("getTopic")
|
@PostMapping("getTopic")
|
||||||
@Log(title = "获取主题")
|
@Log(title = "获取主题")
|
||||||
public Result<String> getTopic(@RequestBody GetTopicReq getTopicReq){
|
public Result<String> getTopic(@RequestBody GetTopicReq getTopicReq){
|
||||||
String topic = topLineService.getTopic(getTopicReq);
|
String topic = topLineService.getTopic(getTopicReq);
|
||||||
|
|
Loading…
Reference in New Issue