添加图片信息表,我的数字人设置表
parent
883925c287
commit
67f2738851
@ -0,0 +1,16 @@
|
||||
package com.pjilisense.flxai.dao;
|
||||
|
||||
import com.pjilisense.flxai.base.dao.BaseDao;
|
||||
import com.pjilisense.flxai.entity.DigitalImgEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* ${comments}
|
||||
*
|
||||
* @author liushujing liushujing@philisense.com
|
||||
* @since 1.0.0 2025-02-26
|
||||
*/
|
||||
@Mapper
|
||||
public interface DigitalImgDao extends BaseDao<DigitalImgEntity> {
|
||||
|
||||
}
|
@ -0,0 +1,16 @@
|
||||
package com.pjilisense.flxai.dao;
|
||||
|
||||
import com.pjilisense.flxai.base.dao.BaseDao;
|
||||
import com.pjilisense.flxai.entity.MyDigitalHumanEntity;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
/**
|
||||
* ${comments}
|
||||
*
|
||||
* @author liushujing liushujing@philisense.com
|
||||
* @since 1.0.0 2025-02-26
|
||||
*/
|
||||
@Mapper
|
||||
public interface MyDigitalHumanDao extends BaseDao<MyDigitalHumanEntity> {
|
||||
|
||||
}
|
@ -0,0 +1,35 @@
|
||||
package com.pjilisense.flxai.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
|
||||
/**
|
||||
* ${comments}
|
||||
*
|
||||
* @author liushujing liushujing@philisense.com
|
||||
* @since 1.0.0 2025-02-26
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "${comments}")
|
||||
public class DigitalImgDTO implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "主键")
|
||||
private String id;
|
||||
|
||||
@ApiModelProperty(value = "名称")
|
||||
private String name;
|
||||
|
||||
@ApiModelProperty(value = "图片存放的相对路径")
|
||||
private String imgPath;
|
||||
|
||||
@ApiModelProperty(value = "图片类型1数字人形象2数字人场景3数字人背景")
|
||||
private String imgType;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,62 @@
|
||||
package com.pjilisense.flxai.dto;
|
||||
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.Data;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.util.Date;
|
||||
|
||||
|
||||
/**
|
||||
* ${comments}
|
||||
*
|
||||
* @author liushujing liushujing@philisense.com
|
||||
* @since 1.0.0 2025-02-26
|
||||
*/
|
||||
@Data
|
||||
@ApiModel(value = "${comments}")
|
||||
public class MyDigitalHumanDTO implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@ApiModelProperty(value = "主键")
|
||||
private String id;
|
||||
|
||||
@ApiModelProperty(value = "用户表ID")
|
||||
private String userid;
|
||||
|
||||
@ApiModelProperty(value = "数字形象ID数字图片表ID")
|
||||
private String imageid;
|
||||
|
||||
@ApiModelProperty(value = "场景ID数字图片表ID")
|
||||
private String sceneimgid;
|
||||
|
||||
@ApiModelProperty(value = "背景ID数字图片表ID")
|
||||
private String bkimgid;
|
||||
|
||||
@ApiModelProperty(value = "选择的声音ID")
|
||||
private String voiceid;
|
||||
|
||||
@ApiModelProperty(value = "声音的语言")
|
||||
private String voicelanguage;
|
||||
|
||||
@ApiModelProperty(value = "声音风格ID")
|
||||
private String voicestyleid;
|
||||
|
||||
@ApiModelProperty(value = "语速")
|
||||
private String speedspeech;
|
||||
|
||||
@ApiModelProperty(value = "语调")
|
||||
private String intonation;
|
||||
|
||||
@ApiModelProperty(value = "音量")
|
||||
private String volume;
|
||||
|
||||
@ApiModelProperty(value = "视频存放目录")
|
||||
private String videodir;
|
||||
|
||||
@ApiModelProperty(value = "声音存放目录")
|
||||
private String voicedir;
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
package com.pjilisense.flxai.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* ${comments}
|
||||
*
|
||||
* @author liushujing liushujing@philisense.com
|
||||
* @since 1.0.0 2025-02-26
|
||||
*/
|
||||
@Data
|
||||
@TableName("digital_img")
|
||||
public class DigitalImgEntity {
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
private String id;
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
private String name;
|
||||
/**
|
||||
* 图片存放的相对路径
|
||||
*/
|
||||
private String imgPath;
|
||||
/**
|
||||
* 图片类型1数字人形象2数字人场景3数字人背景
|
||||
*/
|
||||
private String imgType;
|
||||
}
|
@ -0,0 +1,70 @@
|
||||
package com.pjilisense.flxai.entity;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import lombok.Data;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* ${comments}
|
||||
*
|
||||
* @author liushujing liushujing@philisense.com
|
||||
* @since 1.0.0 2025-02-26
|
||||
*/
|
||||
@Data
|
||||
@TableName("my_digital_human")
|
||||
public class MyDigitalHumanEntity {
|
||||
|
||||
/**
|
||||
* 主键
|
||||
*/
|
||||
private String id;
|
||||
/**
|
||||
* 用户表ID
|
||||
*/
|
||||
private String userid;
|
||||
/**
|
||||
* 数字形象ID数字图片表ID
|
||||
*/
|
||||
private String imageid;
|
||||
/**
|
||||
* 场景ID数字图片表ID
|
||||
*/
|
||||
private String sceneimgid;
|
||||
/**
|
||||
* 背景ID数字图片表ID
|
||||
*/
|
||||
private String bkimgid;
|
||||
/**
|
||||
* 选择的声音ID
|
||||
*/
|
||||
private String voiceid;
|
||||
/**
|
||||
* 声音的语言
|
||||
*/
|
||||
private String voicelanguage;
|
||||
/**
|
||||
* 声音风格ID
|
||||
*/
|
||||
private String voicestyleid;
|
||||
/**
|
||||
* 语速
|
||||
*/
|
||||
private String speedspeech;
|
||||
/**
|
||||
* 语调
|
||||
*/
|
||||
private String intonation;
|
||||
/**
|
||||
* 音量
|
||||
*/
|
||||
private String volume;
|
||||
/**
|
||||
* 视频存放目录
|
||||
*/
|
||||
private String videodir;
|
||||
/**
|
||||
* 声音存放目录
|
||||
*/
|
||||
private String voicedir;
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
package com.pjilisense.flxai.service;
|
||||
|
||||
import com.pjilisense.flxai.base.service.CrudService;
|
||||
import com.pjilisense.flxai.dto.DigitalImgDTO;
|
||||
import com.pjilisense.flxai.entity.DigitalImgEntity;
|
||||
|
||||
/**
|
||||
* ${comments}
|
||||
*
|
||||
* @author liushujing liushujing@philisense.com
|
||||
* @since 1.0.0 2025-02-26
|
||||
*/
|
||||
public interface DigitalImgService extends CrudService<DigitalImgEntity, DigitalImgDTO> {
|
||||
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
package com.pjilisense.flxai.service;
|
||||
|
||||
import com.pjilisense.flxai.base.service.CrudService;
|
||||
import com.pjilisense.flxai.dto.MyDigitalHumanDTO;
|
||||
import com.pjilisense.flxai.entity.MyDigitalHumanEntity;
|
||||
|
||||
/**
|
||||
* ${comments}
|
||||
*
|
||||
* @author liushujing liushujing@philisense.com
|
||||
* @since 1.0.0 2025-02-26
|
||||
*/
|
||||
public interface MyDigitalHumanService extends CrudService<MyDigitalHumanEntity, MyDigitalHumanDTO> {
|
||||
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
package com.pjilisense.flxai.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.pjilisense.flxai.base.service.impl.CrudServiceImpl;
|
||||
import com.pjilisense.flxai.dao.DigitalImgDao;
|
||||
import com.pjilisense.flxai.dto.DigitalImgDTO;
|
||||
import com.pjilisense.flxai.entity.DigitalImgEntity;
|
||||
import com.pjilisense.flxai.service.DigitalImgService;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* ${comments}
|
||||
*
|
||||
* @author liushujing liushujing@philisense.com
|
||||
* @since 1.0.0 2025-02-26
|
||||
*/
|
||||
@Service
|
||||
public class DigitalImgServiceImpl extends CrudServiceImpl<DigitalImgDao, DigitalImgEntity, DigitalImgDTO> implements DigitalImgService {
|
||||
|
||||
@Override
|
||||
public QueryWrapper<DigitalImgEntity> getWrapper(Map<String, Object> params){
|
||||
String id = (String)params.get("id");
|
||||
|
||||
QueryWrapper<DigitalImgEntity> wrapper = new QueryWrapper<>();
|
||||
wrapper.eq(StrUtil.isNotBlank(id), "id", id);
|
||||
|
||||
return wrapper;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,34 @@
|
||||
package com.pjilisense.flxai.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.pjilisense.flxai.base.service.impl.CrudServiceImpl;
|
||||
import com.pjilisense.flxai.dao.MyDigitalHumanDao;
|
||||
import com.pjilisense.flxai.dto.MyDigitalHumanDTO;
|
||||
import com.pjilisense.flxai.entity.MyDigitalHumanEntity;
|
||||
import com.pjilisense.flxai.service.MyDigitalHumanService;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* ${comments}
|
||||
*
|
||||
* @author liushujing liushujing@philisense.com
|
||||
* @since 1.0.0 2025-02-26
|
||||
*/
|
||||
@Service
|
||||
public class MyDigitalHumanServiceImpl extends CrudServiceImpl<MyDigitalHumanDao, MyDigitalHumanEntity, MyDigitalHumanDTO> implements MyDigitalHumanService {
|
||||
|
||||
@Override
|
||||
public QueryWrapper<MyDigitalHumanEntity> getWrapper(Map<String, Object> params){
|
||||
String id = (String)params.get("id");
|
||||
|
||||
QueryWrapper<MyDigitalHumanEntity> wrapper = new QueryWrapper<>();
|
||||
wrapper.eq(StrUtil.isNotBlank(id), "id", id);
|
||||
|
||||
return wrapper;
|
||||
}
|
||||
|
||||
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
<?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.pjilisense.flxai.dao.DigitalImgDao">
|
||||
|
||||
<resultMap type="com.pjilisense.flxai.entity.DigitalImgEntity" id="digitalImgMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="name" column="name"/>
|
||||
<result property="imgPath" column="img_path"/>
|
||||
<result property="imgType" column="img_type"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
@ -0,0 +1,23 @@
|
||||
<?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.pjilisense.flxai.dao.MyDigitalHumanDao">
|
||||
|
||||
<resultMap type="com.pjilisense.flxai.entity.MyDigitalHumanEntity" id="myDigitalHumanMap">
|
||||
<result property="id" column="id"/>
|
||||
<result property="userid" column="userid"/>
|
||||
<result property="imageid" column="imageid"/>
|
||||
<result property="sceneimgid" column="sceneimgid"/>
|
||||
<result property="bkimgid" column="bkimgid"/>
|
||||
<result property="voiceid" column="voiceid"/>
|
||||
<result property="voicelanguage" column="voicelanguage"/>
|
||||
<result property="voicestyleid" column="voicestyleid"/>
|
||||
<result property="speedspeech" column="speedspeech"/>
|
||||
<result property="intonation" column="intonation"/>
|
||||
<result property="volume" column="volume"/>
|
||||
<result property="videodir" column="videodir"/>
|
||||
<result property="voicedir" column="voicedir"/>
|
||||
</resultMap>
|
||||
|
||||
|
||||
</mapper>
|
Loading…
Reference in New Issue