| | |
| | | import com.xzx.gc.service.BaseAccountService; |
| | | import com.xzx.gc.shop.dto.AddGoodsOrderDto; |
| | | import com.xzx.gc.shop.dto.XcxGoodsListDto; |
| | | import com.xzx.gc.shop.dto.XcxScoreDetailsDto; |
| | | import com.xzx.gc.shop.service.GoodsService; |
| | | import com.xzx.gc.shop.service.OrderService; |
| | | import com.xzx.gc.shop.service.ScoreDetailsService; |
| | | import com.xzx.gc.shop.vo.GoodsCategoryVo; |
| | | import com.xzx.gc.shop.vo.XcxGoodsDetailVo; |
| | | import com.xzx.gc.shop.vo.XcxGoodsListVo; |
| | | import com.xzx.gc.shop.vo.XcxScoreDetailsVo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiResponse; |
| | |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | @RestController |
| | | @Api(tags = {"积分商城--API商品管理"}) |
| | |
| | | @PostMapping(value = "/goods/goodsDetails/{id}") |
| | | public JsonResult<XcxGoodsDetailVo> goodsDetails(@PathVariable("id") Long id) { |
| | | return JsonResult.success(goodsService.findGoodsDetails(id)); |
| | | } |
| | | |
| | | @PostMapping(value = "/goods/order/add") |
| | | public Result<String> addOrder(@RequestBody AddGoodsOrderDto addGoodsOrderDto, HttpServletRequest request) { |
| | | String userId = getUserId(request); |
| | | addGoodsOrderDto.setUserId(userId); |
| | | return null; |
| | | } |
| | | |
| | | } |