feat(vip): 新增vip等级字段及免费聊天次数配置
This commit is contained in:
@@ -25,6 +25,9 @@ public class AppConfig {
|
||||
//新用户注册时的免费使用次数
|
||||
private Integer freeTrialQuota = 3;
|
||||
|
||||
//Vip用户每天能免费聊天次数
|
||||
private Integer vipFreeTrialTalk = 3;
|
||||
|
||||
//新用户注册时的奖励余额
|
||||
private BigDecimal rewardBalance = BigDecimal.valueOf(0);
|
||||
}
|
||||
|
||||
@@ -121,4 +121,8 @@ public class KeyboardUser {
|
||||
@TableField(value = "vip_expiry")
|
||||
@Schema(description = "VIP 过期时间")
|
||||
private Date vipExpiry;
|
||||
|
||||
@TableField(value = "vip_level")
|
||||
@Schema(description = "vip等级")
|
||||
private Integer vipLevel;
|
||||
}
|
||||
@@ -1,5 +1,6 @@
|
||||
package com.yolo.keyborad.model.vo.user;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import lombok.Data;
|
||||
|
||||
@@ -52,4 +53,8 @@ public class KeyboardUserInfoRespVO {
|
||||
@Schema(description = "VIP 过期时间")
|
||||
private String vipExpiry;
|
||||
|
||||
|
||||
@Schema(description = "vip等级")
|
||||
private Integer vipLevel;
|
||||
|
||||
}
|
||||
@@ -55,4 +55,8 @@ public class KeyboardUserRespVO {
|
||||
*/
|
||||
@Schema(description = "VIP 过期时间")
|
||||
private Date vipExpiry;
|
||||
|
||||
@TableField(value = "vip_level")
|
||||
@Schema(description = "vip等级")
|
||||
private Integer vipLevel;
|
||||
}
|
||||
Reference in New Issue
Block a user