feat(warning): 新增键盘告警消息实体及CRUD支持
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
package com.yolo.keyborad.mapper;
|
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
import com.yolo.keyborad.model.entity.KeyboardWarningMessage;
|
||||
|
||||
/*
|
||||
* @author: ziin
|
||||
* @date: 2026/2/28 13:39
|
||||
*/
|
||||
|
||||
public interface KeyboardWarningMessageMapper extends BaseMapper<KeyboardWarningMessage> {
|
||||
}
|
||||
@@ -0,0 +1,50 @@
|
||||
package com.yolo.keyborad.model.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableField;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import io.swagger.v3.oas.annotations.media.Schema;
|
||||
import java.util.Date;
|
||||
import lombok.Data;
|
||||
|
||||
/*
|
||||
* @author: ziin
|
||||
* @date: 2026/2/28 13:39
|
||||
*/
|
||||
|
||||
/**
|
||||
* 用户注销提示信息表
|
||||
*/
|
||||
@Schema(description="用户注销提示信息表")
|
||||
@Data
|
||||
@TableName(value = "keyboard_warning_message")
|
||||
public class KeyboardWarningMessage {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId(value = "id", type = IdType.AUTO)
|
||||
@Schema(description="主键")
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 地区
|
||||
*/
|
||||
@TableField(value = "\"locale\"")
|
||||
@Schema(description="地区")
|
||||
private String locale;
|
||||
|
||||
/**
|
||||
* 正文
|
||||
*/
|
||||
@TableField(value = "content")
|
||||
@Schema(description="正文")
|
||||
private String content;
|
||||
|
||||
/**
|
||||
* 更新时间
|
||||
*/
|
||||
@TableField(value = "updated_at")
|
||||
@Schema(description="更新时间")
|
||||
private Date updatedAt;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
package com.yolo.keyborad.service;
|
||||
|
||||
import com.yolo.keyborad.model.entity.KeyboardWarningMessage;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
/*
|
||||
* @author: ziin
|
||||
* @date: 2026/2/28 13:39
|
||||
*/
|
||||
|
||||
public interface KeyboardWarningMessageService extends IService<KeyboardWarningMessage>{
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.yolo.keyborad.service.impl;
|
||||
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import java.util.List;
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.yolo.keyborad.mapper.KeyboardWarningMessageMapper;
|
||||
import com.yolo.keyborad.model.entity.KeyboardWarningMessage;
|
||||
import com.yolo.keyborad.service.KeyboardWarningMessageService;
|
||||
/*
|
||||
* @author: ziin
|
||||
* @date: 2026/2/28 13:39
|
||||
*/
|
||||
|
||||
@Service
|
||||
public class KeyboardWarningMessageServiceImpl extends ServiceImpl<KeyboardWarningMessageMapper, KeyboardWarningMessage> implements KeyboardWarningMessageService{
|
||||
|
||||
}
|
||||
16
src/main/resources/mapper/KeyboardWarningMessageMapper.xml
Normal file
16
src/main/resources/mapper/KeyboardWarningMessageMapper.xml
Normal file
@@ -0,0 +1,16 @@
|
||||
<?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.yolo.keyborad.mapper.KeyboardWarningMessageMapper">
|
||||
<resultMap id="BaseResultMap" type="com.yolo.keyborad.model.entity.KeyboardWarningMessage">
|
||||
<!--@mbg.generated-->
|
||||
<!--@Table keyboard_warning_message-->
|
||||
<id column="id" jdbcType="BIGINT" property="id" />
|
||||
<result column="locale" jdbcType="VARCHAR" property="locale" />
|
||||
<result column="content" jdbcType="VARCHAR" property="content" />
|
||||
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" />
|
||||
</resultMap>
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
id, "locale", content, updated_at
|
||||
</sql>
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user