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

Commit 2c4ff93e authored by jiangxiulong's avatar jiangxiulong

nft兑换 del exchange

parent d8cc9109
......@@ -11,5 +11,4 @@ public interface IGoblinNftGoodsAppService {
GoblinNftGoodsSkuInfoVo goodsDetail(String skuId);
Boolean exchange(String code);
}
......@@ -12,7 +12,10 @@ 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 org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.validation.constraints.NotBlank;
......@@ -52,20 +55,4 @@ public class GoblinNftGoodsAppController {
return ResponseDto.success(vo);
}
@PostMapping("exchange")
// @ApiOperation("兑换")
@ApiImplicitParams({
@ApiImplicitParam(type = "from", required = true, dataType = "String", name = "code", value = "兑换码", example = "1"),
})
public ResponseDto exchange(
@RequestParam("code") String code
) {
Boolean res = goblinNftGoodsAppService.exchange(code);
if (res) {
return ResponseDto.success();
} else {
return ResponseDto.failure();
}
}
}
......@@ -134,17 +134,4 @@ public class GoblinNftGoodsAppServiceImpl implements IGoblinNftGoodsAppService {
}
}
@Override
public Boolean exchange(String code) {
try {
// 验证
// 使用
// 下单
return true;
} catch (Exception e) {
log.error("cityVote5Error", e);
return false;
}
}
}
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