|
@@ -9,10 +9,7 @@ import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestParam;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
@@ -26,7 +23,7 @@ public class BuyController {
|
|
|
BuyLogic buyLogic;
|
|
|
|
|
|
@ApiOperation(value = "当前默认销售网点")
|
|
|
- @GetMapping("/websit/default")
|
|
|
+ @PostMapping("/websit/default")
|
|
|
public ResponseHelper<WebsitExtends> websitDefault(
|
|
|
@ApiParam(value = "所属网点编码",required = false) @RequestParam(required = false) String websitId,
|
|
|
@ApiParam(value = "经度",required = true) @RequestParam(required = true) String longitude,
|
|
@@ -38,7 +35,7 @@ public class BuyController {
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "附近的销售网点列表")
|
|
|
- @GetMapping("/websit/list")
|
|
|
+ @PostMapping("/websit/list")
|
|
|
public ResponseHelper<IPage<WebsitExtends>> websitDefault(
|
|
|
@ApiParam(value = "所属网点编码") @RequestParam(required = false) String websitId,
|
|
|
@ApiParam(value = "经度",required = true) @RequestParam String longitude,
|