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

Commit 7f3034f3 authored by jiangxiulong's avatar jiangxiulong

大美字段类型

parent 2dd5cdf8
......@@ -8,6 +8,7 @@ import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
@ApiModel(value = "GoblinStoreMgtGoodsSkuListVo", description = "商品管理:商品款式信息")
......@@ -44,9 +45,9 @@ public class GoblinStoreMgtGoodsSkuListVo implements Serializable, Cloneable {
@ApiModelProperty(position = 36, value = "是否购买[0-否|1-是]")
private String skuCanbuy;
@ApiModelProperty(position = 37, value = "NFT上传声明状态[0-待上传|1-已声明|2-声明失败|9-声明中]")
private String upchain;
private Integer upchain;
@ApiModelProperty(position = 38, value = "盲盒命中率")
private String hitRatio;
private BigDecimal hitRatio;
public String getSaleStartTime() {
return DateUtil.Formatter.yyyyMMddHHmmss.format(saleStartTime);
......
......@@ -86,4 +86,21 @@ public class GoblinNftOrderController {
}
}
/*@PostMapping("exchange")
@ApiOperation("兑换")
@ApiImplicitParams({
@ApiImplicitParam(type = "from", required = true, dataType = "String", name = "code", value = "兑换码", example = "1"),
@ApiImplicitParam(type = "from", required = true, dataType = "String", name = "user", value = "兑换码", example = "1"),
})
public ResponseDto<Boolean> exchange(
@RequestParam("code") @NotBlank(message = "兑换码不能为空") String code
) {
Boolean res = iGoblinNftOrderService.exchange(code);
if (res) {
return ResponseDto.success();
} else {
return ResponseDto.failure();
}
}*/
}
......@@ -752,8 +752,7 @@ public class GoblinNftOrderServiceImpl implements IGoblinNftOrderService {
public Boolean exchange(String code) {
try {
// 加锁
// 验证
//1code是否存在 2是否在生效日期内 3是否未兑换的状态 4兑换限购
// 验证 1code是否存在 2是否在生效日期内 3是否未兑换的状态 4兑换限购
// 使用
// 下单
return true;
......
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