实体创建
parent
45649e0825
commit
57945362c0
@ -0,0 +1,45 @@
|
||||
package com.supervision.domain;
|
||||
|
||||
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 java.io.Serializable;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 文件表
|
||||
* @TableName ir_file
|
||||
*/
|
||||
@TableName(value ="ir_file")
|
||||
@Data
|
||||
public class IrFile implements Serializable {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 文件名称
|
||||
*/
|
||||
private String fileName;
|
||||
|
||||
/**
|
||||
* 文件字节编码
|
||||
*/
|
||||
private Object fileByte;
|
||||
|
||||
/**
|
||||
* 文件类型
|
||||
*/
|
||||
private String fileType;
|
||||
|
||||
/**
|
||||
* 文件大小
|
||||
*/
|
||||
private Integer fileSize;
|
||||
|
||||
@TableField(exist = false)
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
package com.supervision.domain;
|
||||
|
||||
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 java.io.Serializable;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 音频文件表
|
||||
* @TableName ir_voice
|
||||
*/
|
||||
@TableName(value ="ir_voice")
|
||||
@Data
|
||||
public class IrVoice implements Serializable {
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
@TableId
|
||||
private String id;
|
||||
|
||||
/**
|
||||
* 音频文件base64编码
|
||||
*/
|
||||
private String voiceBase64;
|
||||
|
||||
/**
|
||||
* 长度,以秒为单位
|
||||
*/
|
||||
private Integer length;
|
||||
|
||||
@TableField(exist = false)
|
||||
private static final long serialVersionUID = 1L;
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
package com.supervision.mapper;
|
||||
|
||||
import com.supervision.domain.IrFile;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @author flevance
|
||||
* @description 针对表【ir_file(文件表)】的数据库操作Mapper
|
||||
* @createDate 2024-03-26 16:48:08
|
||||
* @Entity com.supervision.domain.IrFile
|
||||
*/
|
||||
public interface IrFileMapper extends BaseMapper<IrFile> {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,18 @@
|
||||
package com.supervision.mapper;
|
||||
|
||||
import com.supervision.domain.IrVoice;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @author flevance
|
||||
* @description 针对表【ir_voice(音频文件表)】的数据库操作Mapper
|
||||
* @createDate 2024-03-26 16:48:08
|
||||
* @Entity com.supervision.domain.IrVoice
|
||||
*/
|
||||
public interface IrVoiceMapper extends BaseMapper<IrVoice> {
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,13 @@
|
||||
package com.supervision.service;
|
||||
|
||||
import com.supervision.domain.IrFile;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @author flevance
|
||||
* @description 针对表【ir_file(文件表)】的数据库操作Service
|
||||
* @createDate 2024-03-26 16:48:08
|
||||
*/
|
||||
public interface IrFileService extends IService<IrFile> {
|
||||
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
package com.supervision.service;
|
||||
|
||||
import com.supervision.domain.IrVoice;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @author flevance
|
||||
* @description 针对表【ir_voice(音频文件表)】的数据库操作Service
|
||||
* @createDate 2024-03-26 16:48:08
|
||||
*/
|
||||
public interface IrVoiceService extends IService<IrVoice> {
|
||||
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package com.supervision.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.supervision.domain.IrFile;
|
||||
import com.supervision.service.IrFileService;
|
||||
import com.supervision.mapper.IrFileMapper;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author flevance
|
||||
* @description 针对表【ir_file(文件表)】的数据库操作Service实现
|
||||
* @createDate 2024-03-26 16:48:08
|
||||
*/
|
||||
@Service
|
||||
public class IrFileServiceImpl extends ServiceImpl<IrFileMapper, IrFile>
|
||||
implements IrFileService{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,22 @@
|
||||
package com.supervision.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import com.supervision.domain.IrVoice;
|
||||
import com.supervision.service.IrVoiceService;
|
||||
import com.supervision.mapper.IrVoiceMapper;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
/**
|
||||
* @author flevance
|
||||
* @description 针对表【ir_voice(音频文件表)】的数据库操作Service实现
|
||||
* @createDate 2024-03-26 16:48:08
|
||||
*/
|
||||
@Service
|
||||
public class IrVoiceServiceImpl extends ServiceImpl<IrVoiceMapper, IrVoice>
|
||||
implements IrVoiceService{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
@ -0,0 +1,19 @@
|
||||
<?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.supervision.mapper.IrFileMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.supervision.domain.IrFile">
|
||||
<id property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="fileName" column="file_name" jdbcType="VARCHAR"/>
|
||||
<result property="fileByte" column="file_byte" jdbcType="OTHER"/>
|
||||
<result property="fileType" column="file_type" jdbcType="VARCHAR"/>
|
||||
<result property="fileSize" column="file_size" jdbcType="INTEGER"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,file_name,file_byte,
|
||||
file_type,file_size
|
||||
</sql>
|
||||
</mapper>
|
@ -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.supervision.mapper.IrVoiceMapper">
|
||||
|
||||
<resultMap id="BaseResultMap" type="com.supervision.domain.IrVoice">
|
||||
<id property="id" column="id" jdbcType="VARCHAR"/>
|
||||
<result property="voiceBase64" column="voice_base_64" jdbcType="VARCHAR"/>
|
||||
<result property="length" column="length" jdbcType="INTEGER"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="Base_Column_List">
|
||||
id,voice_base_64,length
|
||||
</sql>
|
||||
</mapper>
|
Loading…
Reference in New Issue