get->post

master
fst1996 2023-11-30 19:08:56 +08:00
parent 9dc95d7889
commit c6931a900f
2 changed files with 8 additions and 5 deletions

View File

@ -1,6 +1,9 @@
package com.god.base.domain.request;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
/**
* @description: 4
@ -8,6 +11,9 @@ import lombok.Data;
* @date 2023/11/28 23:02
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class GetTopicReq {
/**
* VIN

View File

@ -8,10 +8,7 @@ import com.god.common.log.annotation.Log;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
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.*;
/**
@ -30,7 +27,7 @@ public class TopLineController {
*
* @return
*/
@GetMapping("getTopic")
@PostMapping("getTopic")
@Log(title = "获取主题")
public Result<String> getTopic(@RequestBody GetTopicReq getTopicReq){
String topic = topLineService.getTopic(getTopicReq);