init
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
package com.tailbet.model.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 审计日志表
|
||||
*/
|
||||
@Data
|
||||
@TableName("audit_log")
|
||||
public class AuditLog {
|
||||
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 群ID
|
||||
*/
|
||||
private Long groupId;
|
||||
|
||||
/**
|
||||
* 局ID
|
||||
*/
|
||||
private Long roundId;
|
||||
|
||||
/**
|
||||
* 操作用户ID
|
||||
*/
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 动作类型
|
||||
*/
|
||||
private String action;
|
||||
|
||||
/**
|
||||
* 详情JSON
|
||||
*/
|
||||
private String detail;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private LocalDateTime createTime;
|
||||
}
|
||||
@@ -0,0 +1,74 @@
|
||||
package com.tailbet.model.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 注单表
|
||||
*/
|
||||
@Data
|
||||
@TableName("bet_order")
|
||||
public class BetOrder {
|
||||
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 群ID
|
||||
*/
|
||||
private Long groupId;
|
||||
|
||||
/**
|
||||
* 局ID
|
||||
*/
|
||||
private Long roundId;
|
||||
|
||||
/**
|
||||
* 客户端消息ID(防重)
|
||||
*/
|
||||
private String clientMsgId;
|
||||
|
||||
/**
|
||||
* 玩法:单/双/大/小/数字
|
||||
*/
|
||||
private String playType;
|
||||
|
||||
/**
|
||||
* 下注金额
|
||||
*/
|
||||
private Integer betAmount;
|
||||
|
||||
/**
|
||||
* 赔率
|
||||
*/
|
||||
private BigDecimal odds;
|
||||
|
||||
/**
|
||||
* 是否假人下注
|
||||
*/
|
||||
private Integer isFake;
|
||||
|
||||
/**
|
||||
* 状态:0待结算 1已结算 2未中奖
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 中奖金额
|
||||
*/
|
||||
private Long winAmount;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private LocalDateTime createTime;
|
||||
}
|
||||
@@ -0,0 +1,28 @@
|
||||
package com.tailbet.model.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 尾数控制白名单表
|
||||
*/
|
||||
@Data
|
||||
@TableName("digit_white")
|
||||
public class DigitWhite {
|
||||
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private LocalDateTime createTime;
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.tailbet.model.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 开奖记录表
|
||||
*/
|
||||
@Data
|
||||
@TableName("draw_record")
|
||||
public class DrawRecord {
|
||||
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 群ID
|
||||
*/
|
||||
private Long groupId;
|
||||
|
||||
/**
|
||||
* 期号
|
||||
*/
|
||||
private String roundNo;
|
||||
|
||||
/**
|
||||
* 局ID
|
||||
*/
|
||||
private Long roundId;
|
||||
|
||||
/**
|
||||
* 开奖尾数:0-9
|
||||
*/
|
||||
private Integer digit;
|
||||
|
||||
/**
|
||||
* 中奖玩法:单,大,数字7
|
||||
*/
|
||||
private String playWins;
|
||||
|
||||
/**
|
||||
* 总下注
|
||||
*/
|
||||
private Integer totalBet;
|
||||
|
||||
/**
|
||||
* 总派奖
|
||||
*/
|
||||
private Long totalAward;
|
||||
|
||||
/**
|
||||
* 庄家利润
|
||||
*/
|
||||
private Long profit;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private LocalDateTime createTime;
|
||||
}
|
||||
@@ -0,0 +1,78 @@
|
||||
package com.tailbet.model.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 游戏局表
|
||||
*/
|
||||
@Data
|
||||
@TableName("game_round")
|
||||
public class GameRound {
|
||||
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 群ID
|
||||
*/
|
||||
private Long groupId;
|
||||
|
||||
/**
|
||||
* 期号:yyyy-MM-dd-xx
|
||||
*/
|
||||
private String roundNo;
|
||||
|
||||
/**
|
||||
* 状态:0进行中 1已结束
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
private LocalDateTime startTime;
|
||||
|
||||
/**
|
||||
* 截止下注时间
|
||||
*/
|
||||
private LocalDateTime endBetTime;
|
||||
|
||||
/**
|
||||
* 开始发红包时间
|
||||
*/
|
||||
private LocalDateTime startRpTime;
|
||||
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
private LocalDateTime finishTime;
|
||||
|
||||
/**
|
||||
* 目标尾数:0-9 null表示待定
|
||||
*/
|
||||
private Integer targetDigit;
|
||||
|
||||
/**
|
||||
* 尾数策略:specified指定/manual_auto小赢小输/random随机
|
||||
*/
|
||||
private String digitStrategy;
|
||||
|
||||
/**
|
||||
* 自动开启下一期:0否 1是
|
||||
*/
|
||||
private Integer autoNext;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private LocalDateTime createTime;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private LocalDateTime updateTime;
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
package com.tailbet.model.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 群表
|
||||
*/
|
||||
@Data
|
||||
@TableName("group")
|
||||
public class Group {
|
||||
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 群名称
|
||||
*/
|
||||
private String name;
|
||||
|
||||
/**
|
||||
* OpenIM群ID
|
||||
*/
|
||||
private String openimGroupId;
|
||||
|
||||
/**
|
||||
* 群主用户ID
|
||||
*/
|
||||
private Long ownerUserId;
|
||||
|
||||
/**
|
||||
* 接注间隔(秒)
|
||||
*/
|
||||
private Integer roundInterval;
|
||||
|
||||
/**
|
||||
* 状态:1启用 0停用
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private LocalDateTime createTime;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private LocalDateTime updateTime;
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
package com.tailbet.model.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 群成员表
|
||||
*/
|
||||
@Data
|
||||
@TableName("group_member")
|
||||
public class GroupMember {
|
||||
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 群ID
|
||||
*/
|
||||
private Long groupId;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 角色:0普通 1管理员 2群主
|
||||
*/
|
||||
private Integer role;
|
||||
|
||||
/**
|
||||
* 加入时间
|
||||
*/
|
||||
private LocalDateTime joinTime;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private LocalDateTime createTime;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private LocalDateTime updateTime;
|
||||
}
|
||||
@@ -0,0 +1,63 @@
|
||||
package com.tailbet.model.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 积分流水表
|
||||
*/
|
||||
@Data
|
||||
@TableName("points_flow")
|
||||
public class PointsFlow {
|
||||
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 用户ID
|
||||
*/
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 类型:ops_add/ops_sub/bet/award/rp_send/rp_recv
|
||||
*/
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 变动数值(正负)
|
||||
*/
|
||||
private Long amount;
|
||||
|
||||
/**
|
||||
* 变动前余额
|
||||
*/
|
||||
private Long balanceBefore;
|
||||
|
||||
/**
|
||||
* 变动后余额
|
||||
*/
|
||||
private Long balanceAfter;
|
||||
|
||||
/**
|
||||
* 业务单号
|
||||
*/
|
||||
private String bizNo;
|
||||
|
||||
/**
|
||||
* 操作人ID
|
||||
*/
|
||||
private Long operatorId;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private LocalDateTime createTime;
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
package com.tailbet.model.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 红包表
|
||||
*/
|
||||
@Data
|
||||
@TableName("red_packet")
|
||||
public class RedPacket {
|
||||
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 群ID
|
||||
*/
|
||||
private Long groupId;
|
||||
|
||||
/**
|
||||
* 绑定局ID(null=普通红包)
|
||||
*/
|
||||
private Long roundId;
|
||||
|
||||
/**
|
||||
* 发送者ID
|
||||
*/
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 类型:game游戏/random随机
|
||||
*/
|
||||
private String type;
|
||||
|
||||
/**
|
||||
* 总金额
|
||||
*/
|
||||
private BigDecimal totalAmount;
|
||||
|
||||
/**
|
||||
* 总个数
|
||||
*/
|
||||
private Integer totalCount;
|
||||
|
||||
/**
|
||||
* 剩余金额
|
||||
*/
|
||||
private BigDecimal remainAmount;
|
||||
|
||||
/**
|
||||
* 剩余个数
|
||||
*/
|
||||
private Integer remainCount;
|
||||
|
||||
/**
|
||||
* 手气王金额
|
||||
*/
|
||||
private BigDecimal luckyAmount;
|
||||
|
||||
/**
|
||||
* 手气王用户ID
|
||||
*/
|
||||
private Long luckyUserId;
|
||||
|
||||
/**
|
||||
* 手气王尾数
|
||||
*/
|
||||
private Integer luckyDigit;
|
||||
|
||||
/**
|
||||
* 状态:0进行中 1已领完 2已退款
|
||||
*/
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private LocalDateTime createTime;
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
package com.tailbet.model.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import java.math.BigDecimal;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 红包领取表
|
||||
*/
|
||||
@Data
|
||||
@TableName("red_packet_recv")
|
||||
public class RedPacketRecv {
|
||||
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 红包ID
|
||||
*/
|
||||
private Long rpId;
|
||||
|
||||
/**
|
||||
* 领取者ID
|
||||
*/
|
||||
private Long userId;
|
||||
|
||||
/**
|
||||
* 领取金额
|
||||
*/
|
||||
private BigDecimal amount;
|
||||
|
||||
/**
|
||||
* 是否手气王
|
||||
*/
|
||||
private Integer isLucky;
|
||||
|
||||
/**
|
||||
* 创建时间
|
||||
*/
|
||||
private LocalDateTime createTime;
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
package com.tailbet.model.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
/**
|
||||
* 系统配置表
|
||||
*/
|
||||
@Data
|
||||
@TableName("sys_config")
|
||||
public class SysConfig {
|
||||
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 配置键
|
||||
*/
|
||||
private String cfgKey;
|
||||
|
||||
/**
|
||||
* 配置值
|
||||
*/
|
||||
private String cfgValue;
|
||||
|
||||
/**
|
||||
* 备注
|
||||
*/
|
||||
private String remark;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
private LocalDateTime updateTime;
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
package com.tailbet.model.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 用户表
|
||||
*/
|
||||
@Data
|
||||
@TableName("user")
|
||||
public class User {
|
||||
|
||||
@TableId(type = IdType.AUTO)
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 账号
|
||||
*/
|
||||
private String username;
|
||||
|
||||
/**
|
||||
* 密码(BCrypt)
|
||||
*/
|
||||
private String password;
|
||||
|
||||
/**
|
||||
* 昵称
|
||||
*/
|
||||
private String nickname;
|
||||
|
||||
/**
|
||||
* 头像URL
|
||||
*/
|
||||
private String avatarUrl;
|
||||
|
||||
/**
|
||||
* 积分余额
|
||||
*/
|
||||
private Long points;
|
||||
|
||||
/**
|
||||
* 运营标记:0否 1是
|
||||
*/
|
||||
private Integer isOps;
|
||||
|
||||
/**
|
||||
* 机器人标记:0否 1是
|
||||
*/
|
||||
private Integer isBot;
|
||||
|
||||
/**
|
||||
* 假人托标记:0否 1是
|
||||
*/
|
||||
private Integer isFake;
|
||||
|
||||
/**
|
||||
* 加白(尾数控制)标记
|
||||
*/
|
||||
private Integer isWhite;
|
||||
|
||||
/**
|
||||
* 绑定的运营用户ID
|
||||
*/
|
||||
private Long boundOpsUserId;
|
||||
|
||||
/**
|
||||
* 状态:1正常 0封禁
|
||||
*/
|
||||
private Integer status;
|
||||
}
|
||||
Reference in New Issue
Block a user