This commit is contained in:
dute7liang
2023-12-31 00:00:30 +08:00
parent 6c856eebfb
commit d89b912d64
261 changed files with 911 additions and 929 deletions

View File

@@ -1,7 +1,7 @@
package com.ruoyi.cai.controller.app;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.cai.domain.CaiBanner;
import com.ruoyi.cai.domain.Banner;
import com.ruoyi.cai.dto.app.query.AnchorListQuery;
import com.ruoyi.cai.dto.app.query.UserQuery;
import com.ruoyi.cai.dto.app.vo.AnchorListVo;
@@ -44,7 +44,7 @@ public class IndexController {
@GetMapping("/banner")
@Operation(summary = "获取首页banner图")
public R<List<IndexBannerVo>> banner(){
List<CaiBanner> res = bannerService.index();
List<Banner> res = bannerService.index();
return R.ok(BeanConvertUtil.convertListTo(res, IndexBannerVo::new));
}

View File

@@ -34,25 +34,25 @@ public class SettingAppController {
@GetMapping("/goods")
@Operation(summary = "充值配置")
public R<List<CaiGoods>> goods(){
List<CaiGoods> list = goodsService.list(Wrappers.lambdaQuery(CaiGoods.class)
.eq(CaiGoods::getStatus,0)
.orderByAsc(CaiGoods::getPrice));
public R<List<Goods>> goods(){
List<Goods> list = goodsService.list(Wrappers.lambdaQuery(Goods.class)
.eq(Goods::getStatus,0)
.orderByAsc(Goods::getPrice));
return R.ok(list);
}
@GetMapping("/withdraw")
@Operation(summary = "提现配置")
public R<List<CaiWithdrawExchange>> withdraw(){
List<CaiWithdrawExchange> list = withdrawExchangeService.list(Wrappers.lambdaQuery(CaiWithdrawExchange.class)
.orderByAsc(CaiWithdrawExchange::getMoney));
public R<List<WithdrawExchange>> withdraw(){
List<WithdrawExchange> list = withdrawExchangeService.list(Wrappers.lambdaQuery(WithdrawExchange.class)
.orderByAsc(WithdrawExchange::getMoney));
return R.ok(list);
}
@GetMapping("/report")
@Operation(summary = "举报分类配置")
public R<List<CaiReportCate>> report(){
List<CaiReportCate> list = reportCateService.list(Wrappers.lambdaQuery(CaiReportCate.class));
public R<List<ReportCate>> report(){
List<ReportCate> list = reportCateService.list(Wrappers.lambdaQuery(ReportCate.class));
return R.ok(list);
}
@@ -66,7 +66,7 @@ public class SettingAppController {
@GetMapping("/gift")
@Operation(summary = "礼物配置")
public R<List<GiftVo>> gift(){
List<CaiGift> res = giftService.all();
List<Gift> res = giftService.all();
return R.ok(BeanConvertUtil.convertListTo(res, GiftVo::new));
}

View File

@@ -2,9 +2,9 @@ package com.ruoyi.cai.controller.app;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ruoyi.cai.domain.CaiAccountBankcard;
import com.ruoyi.cai.domain.CaiAccountCash;
import com.ruoyi.cai.domain.CaiAccountRecharge;
import com.ruoyi.cai.domain.AccountBankcard;
import com.ruoyi.cai.domain.AccountCash;
import com.ruoyi.cai.domain.AccountRecharge;
import com.ruoyi.cai.dto.app.query.AccountAliBankCardRes;
import com.ruoyi.cai.dto.app.query.WithdrawReq;
import com.ruoyi.cai.dto.app.vo.AccountCashVo;
@@ -42,8 +42,8 @@ public class WalletController {
@GetMapping("/aliInfo")
@Operation(summary = "获取绑定支付宝信息")
public R<CaiAccountBankcard> aliInfo(){
CaiAccountBankcard accountBankcard = currentUserManager.aliInfo();
public R<AccountBankcard> aliInfo(){
AccountBankcard accountBankcard = currentUserManager.aliInfo();
return R.ok(accountBankcard);
}
@@ -66,9 +66,9 @@ public class WalletController {
@Operation(summary = "充值记录-分页")
public TableDataInfo<AccountRechargeVo> rechargeLog(PageQuery query){
Long userId = LoginHelper.getUserId();
Page<CaiAccountRecharge> page = accountRechargeService.page(query.build(), Wrappers.lambdaQuery(CaiAccountRecharge.class)
.eq(CaiAccountRecharge::getUserId, userId)
.orderByDesc(CaiAccountRecharge::getCreateTime));
Page<AccountRecharge> page = accountRechargeService.page(query.build(), Wrappers.lambdaQuery(AccountRecharge.class)
.eq(AccountRecharge::getUserId, userId)
.orderByDesc(AccountRecharge::getCreateTime));
return TableDataInfo.build(page,AccountRechargeVo::new);
}
@@ -76,9 +76,9 @@ public class WalletController {
@Operation(summary = "提现记录-分页")
public TableDataInfo<AccountCashVo> cashLog(PageQuery query){
Long userId = LoginHelper.getUserId();
Page<CaiAccountCash> page = accountCashService.page(query.build(), Wrappers.lambdaQuery(CaiAccountCash.class)
.eq(CaiAccountCash::getUserId, userId)
.orderByDesc(CaiAccountCash::getCreateTime));
Page<AccountCash> page = accountCashService.page(query.build(), Wrappers.lambdaQuery(AccountCash.class)
.eq(AccountCash::getUserId, userId)
.orderByDesc(AccountCash::getCreateTime));
return TableDataInfo.build(page,AccountCashVo::new);
}