福利包

This commit is contained in:
2026-02-06 01:58:05 +08:00
parent d29ca3f02a
commit d5d108db26
37 changed files with 3173 additions and 7 deletions

View File

@@ -0,0 +1,42 @@
package org.springblade.modules.api.market;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.github.xiaoymin.knife4j.annotations.ApiOperationSupport;
import io.swagger.v3.oas.annotations.Hidden;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.AllArgsConstructor;
import org.springblade.core.mp.support.Condition;
import org.springblade.core.mp.support.Query;
import org.springblade.core.secure.utils.AuthUtil;
import org.springblade.core.tool.api.R;
import org.springblade.modules.api.vo.MarketBenefitPackageVO;
import org.springblade.modules.userPackage.pojo.entity.UserMarketBenefitPackageEntity;
import org.springblade.modules.userPackage.service.IUserMarketBenefitPackageService;
import org.springblade.modules.userPackage.wrapper.UserMarketBenefitPackageWrapper;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;
@Hidden
@RestController
@AllArgsConstructor
@RequestMapping("/market-packinfo")
@Tag(name = "APP福利包接口", description = "APP福利包接口")
public class MarketPackInfoController {
private final IUserMarketBenefitPackageService userMarketBenefitPackageService;
@GetMapping("/find-user-pack-list")
@ApiOperationSupport(order = 2)
@Operation(summary = "分页", description = "传入userMarketBenefitPackage")
public R<IPage<MarketBenefitPackageVO>> findUserPackList(MarketBenefitPackageVO userMarketBenefitPackage, Query query ,Long userId) {
IPage<MarketBenefitPackageVO> pages = userMarketBenefitPackageService.findUserPackList(Condition.getPage(query),userMarketBenefitPackage , AuthUtil.getUserId());
return R.data(pages);
}
}

View File

@@ -0,0 +1,78 @@
/**
* BladeX Commercial License Agreement
* Copyright (c) 2018-2099, https://bladex.cn. All rights reserved.
* <p>
* Use of this software is governed by the Commercial License Agreement
* obtained after purchasing a license from BladeX.
* <p>
* 1. This software is for development use only under a valid license
* from BladeX.
* <p>
* 2. Redistribution of this software's source code to any third party
* without a commercial license is strictly prohibited.
* <p>
* 3. Licensees may copyright their own code but cannot use segments
* from this software for such purposes. Copyright of this software
* remains with BladeX.
* <p>
* Using this software signifies agreement to this License, and the software
* must not be used for illegal purposes.
* <p>
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY. The author is
* not liable for any claims arising from secondary or illegal development.
* <p>
* Author: Chill Zhuang (bladejava@qq.com)
*/
package org.springblade.modules.api.vo;
import lombok.Data;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
/**
* 用户积分包信息表 视图实体类
*
* @author BladeX
* @since 2026-02-05
*/
@Data
public class MarketBenefitPackageVO implements Serializable {
private Long id;
private Long packageId;
private String packageName;
private Integer type;
private BigDecimal userBenefit;
private BigDecimal userCash;
private BigDecimal giveAmount;
private Integer dayTotal;
private BigDecimal amountTotal;
private BigDecimal amountDay;
private BigDecimal amountOut;
private Integer outDay;
private Integer isComplete;
private Date expiredDate;
/**
* 是否过期 0-未过期 1-已过期
*/
private Integer isExpired;
private String remark;
}