记得上下班打卡 | git大法好,push需谨慎

Commit 0f98589f authored by GaoHu's avatar GaoHu

exit

parent aa266aaa
......@@ -9,10 +9,11 @@ import com.liquidnet.service.goblin.dto.manage.vo.AnticipateValueVo;
import com.liquidnet.service.goblin.dto.manage.vo.GoblinGoodsAnticipateValueVo;
import com.liquidnet.service.goblin.service.manage.IGoblinGoodsAnticipateMgService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
import java.math.BigInteger;
......@@ -48,12 +49,19 @@ public class GoblinGoodsAnticipateMgController {
@ApiOperation("修改预约人数")
@PostMapping("/updatePeople")
@ApiImplicitParams({
@ApiImplicitParam(type = "query", dataType = "String", name = "skuId", value = "skuId", example = ""),
@ApiImplicitParam(type = "query", dataType = "BigInteger", name = "people", value = "要修改的人数", example = "")
})
public ResponseDto<Object> updatePeople(@RequestParam(name = "skuId", required = true) String skuId, @RequestParam(name = "people", required = true) BigInteger people) {
return goblinGoodsAnticipateMgService.updatePeople(skuId, people);
}
@ApiOperation("删除预约")
@DeleteMapping("/delete")
@ApiImplicitParams({
@ApiImplicitParam(type = "query", dataType = "String", name = "skuId", value = "skuId", example = ""),
})
public ResponseDto<Object> delete(@RequestParam(name = "skuId") String skuId) {
return goblinGoodsAnticipateMgService.delete(skuId);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment