|
@@ -17,10 +17,7 @@ import com.zswl.cloud.springBtach.server.core.service.impl.KfcServiceImpl;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.log4j.Log4j2;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.websocket.server.PathParam;
|
|
|
|
|
@@ -57,7 +54,7 @@ public class KfcController {
|
|
|
@ApiOperation("店铺详情")
|
|
|
@ResourceAuth(value = "user", type = AuthType.User)
|
|
|
@RequestMapping(value = "menus/{shopId}", method = RequestMethod.GET)
|
|
|
- public ResultContent<JSONObject> menus(@PathParam("shopId") String shopId) {
|
|
|
+ public ResultContent<JSONObject> menus(@PathVariable("shopId") String shopId) {
|
|
|
return kfcService.menus(shopId);
|
|
|
}
|
|
|
|