init
This commit is contained in:
@@ -39,17 +39,17 @@ public class ConsumeController {
|
||||
@PostMapping("/give/guard")
|
||||
@Operation(summary = "赠送主播守护")
|
||||
@Log(title = "赠送主播守护", businessType = BusinessType.OTHER, isSaveDb = true)
|
||||
public R<Boolean> giveGuard(@RequestBody GiveGuardReq query){
|
||||
public R<Void> giveGuard(@RequestBody GiveGuardReq query){
|
||||
GuardConsumerResp resp = consumerManager.sendGuard(query);
|
||||
return R.ok(resp.isSuccess());
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@PostMapping("/give/gift")
|
||||
@Operation(summary = "赠送主播礼物")
|
||||
@Log(title = "赠送主播礼物", businessType = BusinessType.OTHER, isSaveDb = true)
|
||||
public R<Boolean> giveGift(@RequestBody GiveGiftReq query){
|
||||
public R<Void> giveGift(@RequestBody GiveGiftReq query){
|
||||
GiftConsumerResp resp = consumerManager.sendGift(query);
|
||||
return R.ok(resp.isSuccess());
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
@PostMapping("/order/vip/create")
|
||||
|
||||
@@ -7,6 +7,7 @@ import com.ruoyi.cai.domain.ReportCate;
|
||||
import com.ruoyi.cai.domain.WithdrawExchange;
|
||||
import com.ruoyi.cai.dto.app.vo.AgreementDTO;
|
||||
import com.ruoyi.cai.dto.app.vo.GiftVo;
|
||||
import com.ruoyi.cai.dto.app.vo.setting.SettingGoodsVo;
|
||||
import com.ruoyi.cai.service.*;
|
||||
import com.ruoyi.common.annotation.Log;
|
||||
import com.ruoyi.common.core.domain.R;
|
||||
@@ -40,11 +41,13 @@ public class SettingAppController {
|
||||
@GetMapping("/goods")
|
||||
@Operation(summary = "充值配置")
|
||||
@Log(title = "充值配置", businessType = BusinessType.OTHER, isSaveDb = false)
|
||||
public R<List<Goods>> goods(){
|
||||
public R<SettingGoodsVo> goods(){
|
||||
SettingGoodsVo vo = new SettingGoodsVo();
|
||||
List<Goods> list = goodsService.list(Wrappers.lambdaQuery(Goods.class)
|
||||
.eq(Goods::getStatus,0)
|
||||
.orderByAsc(Goods::getPrice));
|
||||
return R.ok(list);
|
||||
vo.setGoods(list);
|
||||
return R.ok(vo);
|
||||
}
|
||||
|
||||
@GetMapping("/withdraw")
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
package com.ruoyi.cai.dto.app.vo.setting;
|
||||
|
||||
import com.ruoyi.cai.domain.Goods;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class SettingGoodsVo {
|
||||
@Schema(description = "是否显示支付宝支付 1-显示 0-隐藏")
|
||||
private Integer hasAlipayPay = 1;
|
||||
@Schema(description = "是否显示支付宝支付 1-显示 0-隐藏")
|
||||
private Integer hasWechatPay = 1;
|
||||
@Schema(description = "支付宝是否放在第一个 1-是 0-否")
|
||||
private Integer alipayFirst = 1;
|
||||
@Schema(description = "支付设置")
|
||||
private List<Goods> goods;
|
||||
}
|
||||
Reference in New Issue
Block a user