package com.liquidnet.service.platform.controller.goblin;


import com.liquidnet.service.base.ResponseDto;
import com.liquidnet.service.platform.service.impl.goblin.SpuGoodsInfoImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 订单 前端控制器
 * </p>
 *
 * @author liquidnet
 * @since 2021-05-20
 */
@Api(tags = "商城-spu相关")
@RestController
@RequestMapping("spu/goblin")
@Validated
public class GoblinSpuController {

    @Autowired
    SpuGoodsInfoImpl spuGoodsInfo;

    @PostMapping("setCount")
    @ApiOperation("spu数量")
    @ApiResponse(code = 200, message = "接口返回对象参数")
    public ResponseDto<Boolean> checkOrderTime() {
        return ResponseDto.success(spuGoodsInfo.setCount());
    }
}
