代码生成:主子表的部分实现

This commit is contained in:
YunaiV
2023-11-08 09:42:16 +08:00
parent 53afc9d50a
commit 2afc2caf1d
14 changed files with 245 additions and 29 deletions

View File

@@ -24,6 +24,9 @@ public class SystemUserBaseVO {
@Schema(description = "头像", example = "https://www.iocoder.cn/1.png")
private String avatar;
@Schema(description = "视频", example = "https://www.iocoder.cn/1.mp4")
private String video;
@Schema(description = "个人简介", example = "我是介绍")
private String description;

View File

@@ -35,6 +35,10 @@ public class SystemUserDO extends BaseDO {
* 头像
*/
private String avatar;
/**
* 视频
*/
private String video;
/**
* 个人简介
*/

View File

@@ -28,6 +28,9 @@ public class SystemUserExcelVO {
@ExcelProperty("头像")
private String avatar;
@ExcelProperty("视频")
private String video;
@ExcelProperty("个人简介")
private String description;

View File

@@ -3,6 +3,7 @@ CREATE TABLE IF NOT EXISTS "system_user" (
"id" bigint NOT NULL GENERATED BY DEFAULT AS IDENTITY,
"name" varchar NOT NULL,
"avatar" varchar,
"video" varchar,
"description" varchar,
"sex1" varchar,
"sex2" int,

View File

@@ -4,6 +4,7 @@ export interface UserVO {
id: number
name: string
avatar: string
video: string
description: string
sex1: string
sex2: number

View File

@@ -86,6 +86,7 @@ const formData = ref({
id: undefined,
name: undefined,
avatar: undefined,
video: undefined,
description: undefined,
sex1: undefined,
sex2: [],
@@ -149,6 +150,7 @@ const resetForm = () => {
id: undefined,
name: undefined,
avatar: undefined,
video: undefined,
description: undefined,
sex1: undefined,
sex2: [],

View File

@@ -95,6 +95,11 @@
<dict-tag :type="DICT_TYPE.$dictType.toUpperCase()" :value="scope.row.avatar" />
</template>
</el-table-column>
<el-table-column label="视频" align="center" prop="video">
<template #default="scope">
<dict-tag :type="DICT_TYPE.$dictType.toUpperCase()" :value="scope.row.video" />
</template>
</el-table-column>
<el-table-column label="个人简介" align="center" prop="description">
<template #default="scope">
<dict-tag :type="DICT_TYPE.$dictType.toUpperCase()" :value="scope.row.description" />