|
@@ -2,6 +2,7 @@ package com.caimei365.user.controller;
|
|
|
|
|
|
import com.caimei365.user.model.ResponseJson;
|
|
|
import com.caimei365.user.model.dto.ClubUpdateDto;
|
|
|
+import com.caimei365.user.model.dto.DeductionDto;
|
|
|
import com.caimei365.user.model.vo.BeansHistoryVo;
|
|
|
import com.caimei365.user.service.ClubService;
|
|
|
import io.swagger.annotations.Api;
|
|
@@ -130,12 +131,10 @@ public class ClubApi {
|
|
|
}
|
|
|
|
|
|
@ApiOperation("查看商品资料抵扣采美豆")
|
|
|
- @ApiImplicitParams({
|
|
|
- @ApiImplicitParam(required = true, name = "userId", value = "用户Id"),
|
|
|
- @ApiImplicitParam(required = true, name = "archiveId", value = "资料id")
|
|
|
- })
|
|
|
@PostMapping("/archive/deduction")
|
|
|
- public ResponseJson archiveDeduction(Integer userId, Integer archiveId) {
|
|
|
+ public ResponseJson archiveDeduction(DeductionDto deductionDto) {
|
|
|
+ Integer userId = deductionDto.getUserId();
|
|
|
+ Integer archiveId = deductionDto.getArchiveId();
|
|
|
if (userId == null || archiveId == null) {
|
|
|
return ResponseJson.error("参数异常");
|
|
|
}
|