Commit 7140b163 by 崔彦峰

refactor(clues): 移除线索控制器的REST注解和POST映射

- 移除了@RestController注解
- 移除了线索分页列表接口的@PostMapping注解
- 移除了线索状态数量统计接口的@PostMapping注解
- 保留了业务方法注解以维持服务调用功能
1 parent a98b1c5f
......@@ -17,13 +17,11 @@ import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.oreframework.boot.autoconfigure.rop.util.RopThreadLocal;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;
@Slf4j
@Api("二手车线索管理")
@ServiceMethodBean(version = "1.0.0", needInSession = NeedInSessionType.YES)
@RestController
//@RestController
public class CluesController {
@Autowired
......@@ -31,7 +29,7 @@ public class CluesController {
@ApiOperation("车生活助手端线索分页列表")
@ServiceMethod(method = "scrm.api.stoassistant.clues.page", needInSession = NeedInSessionType.YES)
@PostMapping("/scrm.api.stoassistant.clues.page/1.0.0")
// @PostMapping("/scrm.api.stoassistant.clues.page/1.0.0")
public RopResponse<Pagination<CluesPageResp>> page(CluesPadPageReq request) {
try {
if (request == null) {
......@@ -54,7 +52,7 @@ public class CluesController {
@ApiOperation("车生活助手端线索状态数量统计")
@ServiceMethod(method = "scrm.api.stoassistant.clues.statusCount", needInSession = NeedInSessionType.YES)
@PostMapping("/scrm.api.stoassistant.clues.statusCount/1.0.0")
// @PostMapping("/scrm.api.stoassistant.clues.statusCount/1.0.0")
public RopResponse<CluesStatusCountResp> statusCount(CluesStatusCountReq request) {
try {
if (request == null) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!