| | |
| | | import com.java110.core.context.BusinessServiceDataFlow; |
| | | import com.java110.core.factory.DataTransactionFactory; |
| | | import com.java110.shop.smo.IShopServiceSMO; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | */ |
| | | @RestController |
| | | public class ShopApi extends BaseController { |
| | | private final static Logger logger = LoggerFactory.getLogger(ShopApi.class); |
| | | |
| | | @Autowired |
| | | IShopServiceSMO shopServiceSMOImpl; |
| | | |
| | | @RequestMapping(path = "/storeApi/service",method= RequestMethod.GET) |
| | | @RequestMapping(path = "/shopApi/service",method= RequestMethod.GET) |
| | | public String serviceGet(HttpServletRequest request) { |
| | | return DataTransactionFactory.createBusinessResponseJson(ResponseConstant.RESULT_CODE_ERROR,"不支持Get方法请求").toJSONString(); |
| | | } |
| | |
| | | * @param request |
| | | * @return |
| | | */ |
| | | @RequestMapping(path = "/storeApi/service",method= RequestMethod.POST) |
| | | @RequestMapping(path = "/shopApi/service",method= RequestMethod.POST) |
| | | public String servicePost(@RequestBody String orderInfo, HttpServletRequest request) { |
| | | BusinessServiceDataFlow businessServiceDataFlow = null; |
| | | JSONObject responseJson = null; |