فهرست منبع

feat : 新增游戏密钥表

bilingfeng 2 سال پیش
والد
کامیت
85c555f4b3

+ 58 - 0
game-module/game-mybatis/src/main/java/com/zanxiang/mybatis/entity/GameKey.java

@@ -0,0 +1,58 @@
+package com.zanxiang.mybatis.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+import lombok.*;
+
+import java.time.LocalDateTime;
+
+/**
+ * @author : lingfeng
+ * @time : 2022-09-23
+ * @description : 游戏密钥
+ */
+@Data
+@NoArgsConstructor
+@AllArgsConstructor
+@ToString
+@Builder
+@TableName("h_game_key")
+public class GameKey {
+
+    /**
+     * 主键
+     */
+    @TableId(value = "id", type = IdType.AUTO)
+    private Long id;
+
+    /**
+     * 游戏id
+     */
+    private Long gameId;
+
+    /**
+     * 游戏key
+     */
+    private String appKey;
+
+    /**
+     * 登录,服务端验证key
+     */
+    private String loginKey;
+
+    /**
+     * 充值回调key
+     */
+    private String payKey;
+
+    /**
+     * 创建时间
+     */
+    private LocalDateTime createTime;
+
+    /**
+     * 更新时间
+     */
+    private LocalDateTime updateTime;
+}

+ 12 - 0
game-module/game-mybatis/src/main/java/com/zanxiang/mybatis/mapper/GameKeyMapper.java

@@ -0,0 +1,12 @@
+package com.zanxiang.mybatis.mapper;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.zanxiang.mybatis.entity.GameKey;
+
+/**
+ * @author : lingfeng
+ * @time : 2022-09-23
+ * @description : ${description}
+ */
+public interface GameKeyMapper extends BaseMapper<GameKey> {
+}

+ 4 - 0
game-module/game-mybatis/src/main/resources/mapper/GameKeyMapper.xml

@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.zanxiang.mybatis.mapper.GameKeyMapper">
+</mapper>