瀏覽代碼

登录接口的实现及部分视频模板列表

private_deployment
谈文友 1 年之前
父節點
當前提交
b6c035cc26
共有 11 個文件被更改,包括 306 次插入0 次删除
  1. +33
    -0
      suimangAdmin/src/main/resources/db/migration/V2023071300001_wx_c_author.sql
  2. +35
    -0
      suimangAdmin/src/main/resources/db/migration/V2023071300002_wx_c_avatar.sql
  3. +32
    -0
      suimangAdmin/src/main/resources/db/migration/V2023071300003_wx_c_user_basic_info2.sql
  4. +34
    -0
      suimangAdmin/src/main/resources/db/migration/V2023071300004_wx_c_voice.sql
  5. +31
    -0
      suimangAdmin/src/main/resources/db/migration/V2023071300005_wx_c_voice_local.sql
  6. +33
    -0
      suimangAdmin/src/main/resources/db/migration/V2023071300006_wx_c_voice_style.sql
  7. +45
    -0
      suimangService/src/main/java/com/iformall/domain/po/WxCVideoTable.java
  8. +9
    -0
      suimangService/src/main/java/com/iformall/mapper/WxCVideoMapper.java
  9. +9
    -0
      suimangService/src/main/java/com/iformall/service/WxCVideoService.java
  10. +18
    -0
      suimangService/src/main/java/com/iformall/service/impl/WxCVideoServiceImpl.java
  11. +27
    -0
      suimangService/src/main/resources/mapper/WxCVideoMapper.tld

+ 33
- 0
suimangAdmin/src/main/resources/db/migration/V2023071300001_wx_c_author.sql 查看文件

@@ -0,0 +1,33 @@
/*
Navicat Premium Data Transfer

Source Server : photo
Source Server Type : MySQL
Source Server Version : 80026 (8.0.26)
Source Host : 182.92.151.30:3306
Source Schema : mallink_suimang_test

Target Server Type : MySQL
Target Server Version : 80026 (8.0.26)
File Encoding : 65001

Date: 13/07/2023 18:41:44
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for wx_c_author
-- ----------------------------
DROP TABLE IF EXISTS `wx_c_author`;
CREATE TABLE `wx_c_author` (
`id` int NOT NULL COMMENT '用户id',
`user_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '用户名',
`type` int NULL DEFAULT NULL COMMENT '权限类型数字人0声纹1',
`resource_id` int NULL DEFAULT NULL COMMENT '对应资源id(数字人id or 声纹id)',
`expire_time` datetime NULL DEFAULT NULL COMMENT '资源权限到期时间',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;

SET FOREIGN_KEY_CHECKS = 1;

+ 35
- 0
suimangAdmin/src/main/resources/db/migration/V2023071300002_wx_c_avatar.sql 查看文件

@@ -0,0 +1,35 @@
/*
Navicat Premium Data Transfer

Source Server : photo
Source Server Type : MySQL
Source Server Version : 80026 (8.0.26)
Source Host : 182.92.151.30:3306
Source Schema : mallink_suimang_test

Target Server Type : MySQL
Target Server Version : 80026 (8.0.26)
File Encoding : 65001

Date: 13/07/2023 18:41:55
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for wx_c_avatar
-- ----------------------------
DROP TABLE IF EXISTS `wx_c_avatar`;
CREATE TABLE `wx_c_avatar` (
`id` int NOT NULL COMMENT '数字人id',
`class` int NULL DEFAULT NULL COMMENT '共享0定制1',
`name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '数字人名称',
`image` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '数字人图像',
`demo` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '数字人视频样例',
`model` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '数字人视频模板文件',
`preinfo` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '数字人预处理文件',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;

SET FOREIGN_KEY_CHECKS = 1;

+ 32
- 0
suimangAdmin/src/main/resources/db/migration/V2023071300003_wx_c_user_basic_info2.sql 查看文件

@@ -0,0 +1,32 @@
/*
Navicat Premium Data Transfer

Source Server : photo
Source Server Type : MySQL
Source Server Version : 80026 (8.0.26)
Source Host : 182.92.151.30:3306
Source Schema : mallink_suimang_test

Target Server Type : MySQL
Target Server Version : 80026 (8.0.26)
File Encoding : 65001

Date: 13/07/2023 18:42:07
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for wx_c_user_basic_info2
-- ----------------------------
DROP TABLE IF EXISTS `wx_c_user_basic_info2`;
CREATE TABLE `wx_c_user_basic_info2` (
`id` bigint NOT NULL,
`code` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL,
`version` int NULL DEFAULT NULL,
`expire_time` datetime NULL DEFAULT NULL,
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;

SET FOREIGN_KEY_CHECKS = 1;

+ 34
- 0
suimangAdmin/src/main/resources/db/migration/V2023071300004_wx_c_voice.sql 查看文件

@@ -0,0 +1,34 @@
/*
Navicat Premium Data Transfer

Source Server : photo
Source Server Type : MySQL
Source Server Version : 80026 (8.0.26)
Source Host : 182.92.151.30:3306
Source Schema : mallink_suimang_test

Target Server Type : MySQL
Target Server Version : 80026 (8.0.26)
File Encoding : 65001

Date: 13/07/2023 18:42:24
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for wx_c_voice
-- ----------------------------
DROP TABLE IF EXISTS `wx_c_voice`;
CREATE TABLE `wx_c_voice` (
`id` int NOT NULL COMMENT '声纹id',
`localel_id` int NULL DEFAULT NULL COMMENT '地区id',
`voice_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '声纹名称',
`display_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '声纹显示名称',
`gender` int NULL DEFAULT NULL COMMENT '男1女0',
`class` int NULL DEFAULT NULL COMMENT '共享0定制1',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;

SET FOREIGN_KEY_CHECKS = 1;

+ 31
- 0
suimangAdmin/src/main/resources/db/migration/V2023071300005_wx_c_voice_local.sql 查看文件

@@ -0,0 +1,31 @@
/*
Navicat Premium Data Transfer

Source Server : photo
Source Server Type : MySQL
Source Server Version : 80026 (8.0.26)
Source Host : 182.92.151.30:3306
Source Schema : mallink_suimang_test

Target Server Type : MySQL
Target Server Version : 80026 (8.0.26)
File Encoding : 65001

Date: 13/07/2023 18:42:33
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for wx_c_voice_local
-- ----------------------------
DROP TABLE IF EXISTS `wx_c_voice_local`;
CREATE TABLE `wx_c_voice_local` (
`id` int NOT NULL COMMENT '地区id',
`local_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '地区名称',
`display_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '地区名称显示',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;

SET FOREIGN_KEY_CHECKS = 1;

+ 33
- 0
suimangAdmin/src/main/resources/db/migration/V2023071300006_wx_c_voice_style.sql 查看文件

@@ -0,0 +1,33 @@
/*
Navicat Premium Data Transfer

Source Server : photo
Source Server Type : MySQL
Source Server Version : 80026 (8.0.26)
Source Host : 182.92.151.30:3306
Source Schema : mallink_suimang_test

Target Server Type : MySQL
Target Server Version : 80026 (8.0.26)
File Encoding : 65001

Date: 13/07/2023 18:42:38
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for wx_c_voice_style
-- ----------------------------
DROP TABLE IF EXISTS `wx_c_voice_style`;
CREATE TABLE `wx_c_voice_style` (
`id` int NOT NULL COMMENT '风格',
`voice_id` int NULL DEFAULT NULL COMMENT '声纹id',
`style_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '风格名称',
`display_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '风格显示名称',
`style_demo` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '样例视频',
PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_unicode_ci ROW_FORMAT = Dynamic;

SET FOREIGN_KEY_CHECKS = 1;

+ 45
- 0
suimangService/src/main/java/com/iformall/domain/po/WxCVideoTable.java 查看文件

@@ -0,0 +1,45 @@
package com.iformall.domain.po;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.iformall.domain.po.base.TenantEntityWithoutFinalTenantId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.ArrayList;
import java.util.Date;

@TableName(value = "wx_c_avatar")
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class WxCVideoTable extends TenantEntityWithoutFinalTenantId {

@TableField(exist = false)
private String userName;

@TableField(exist = false)
private String currentTime;

@TableField(exist = false)
private ArrayList<WxCVideoTable> authorList;

@io.swagger.annotations.ApiModelProperty(value="数字人id",name="id")
private int id;
@io.swagger.annotations.ApiModelProperty(value="数字人名称",name="name")
private String name;

@TableField(exist = false)
@io.swagger.annotations.ApiModelProperty(value="权限过期时间",name="expire_time")
private Date expireTime;

@io.swagger.annotations.ApiModelProperty(value="数字人封面图片链接",name="image")
private String image;
@io.swagger.annotations.ApiModelProperty(value="数字人样例视频链接",name="demo")
private String demo;
@io.swagger.annotations.ApiModelProperty(value="数字人模板预处理信息文件链接",name="preInfo")
private String preinfo;

}

+ 9
- 0
suimangService/src/main/java/com/iformall/mapper/WxCVideoMapper.java 查看文件

@@ -0,0 +1,9 @@
package com.iformall.mapper;

import com.iformall.common.CommonMapper;
import com.iformall.domain.po.WxCUserTags;
import com.iformall.domain.po.WxCVideoTable;

public interface WxCVideoMapper extends CommonMapper<WxCUserTags, String> {
WxCVideoTable findByUserName(String username);
}

+ 9
- 0
suimangService/src/main/java/com/iformall/service/WxCVideoService.java 查看文件

@@ -0,0 +1,9 @@
package com.iformall.service;

import com.iformall.domain.po.WxCVideoTable;

public interface WxCVideoService {


WxCVideoTable findByUserName(String username);
}

+ 18
- 0
suimangService/src/main/java/com/iformall/service/impl/WxCVideoServiceImpl.java 查看文件

@@ -0,0 +1,18 @@
package com.iformall.service.impl;

import com.iformall.domain.po.WxCVideoTable;
import com.iformall.mapper.WxCVideoMapper;
import com.iformall.service.WxCVideoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class WxCVideoServiceImpl implements WxCVideoService {
@Autowired
WxCVideoMapper wxCVideoMapper;
@Override
public WxCVideoTable findByUserName(String username) {
WxCVideoTable TemplateVideo = wxCVideoMapper.findByUserName(username);
return TemplateVideo;
}
}

+ 27
- 0
suimangService/src/main/resources/mapper/WxCVideoMapper.tld 查看文件

@@ -0,0 +1,27 @@
<?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.iformall.mapper.WxCVideoMapper">
<!--<resultMap id="BaseResultMap" type="com.iformall.domain.po.WxCVideoTable">
<id column="avatar_id" jdbcType="INTEGER" property="id"/>
<result column="username" jdbcType="VARCHAR" property="userName"/>
<result column="avatar_name" jdbcType="VARCHAR" property="name"/>
<result column="avatar_image" jdbcType="VARCHAR" property="image"/>
<result column="avatar_demo" jdbcType="INTEGER" property="demo"/>
<result column="avatar_pre_info" jdbcType="VARCHAR" property="preInfo"/>
<result column="expire_time" jdbcType="VARCHAR" property="expireTime"/>
</resultMap>-->
<resultMap id="BaseResultMap" type="com.iformall.domain.po.WxCVideoTable">
<id column="id" jdbcType="INTEGER" property="id"/>
<result column="user_name" jdbcType="VARCHAR" property="userName"/>
<result column="name" jdbcType="VARCHAR" property="name"/>
<result column="image" jdbcType="VARCHAR" property="image"/>
<result column="demo" jdbcType="INTEGER" property="demo"/>
<result column="preinfo" jdbcType="VARCHAR" property="preinfo"/>
<result column="expire_time" jdbcType="VARCHAR" property="expireTime"/>
</resultMap>
<select id="findByUserName" resultType="com.iformall.domain.po.WxCVideoTable">

</select>


</mapper>

Loading…
取消
儲存