更新数据库,增加apifox实体json
This commit is contained in:
38
schoolNewsServ/.doc/apifox/domain/dto/BaseDTO.json
Normal file
38
schoolNewsServ/.doc/apifox/domain/dto/BaseDTO.json
Normal file
@@ -0,0 +1,38 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "BaseDTO",
|
||||
"description": "基础数据传输对象",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"id": {
|
||||
"type": "string",
|
||||
"description": "主键ID",
|
||||
"example": "1234567890123456789"
|
||||
},
|
||||
"createTime": {
|
||||
"type": "string",
|
||||
"format": "date-time",
|
||||
"description": "创建时间",
|
||||
"example": "2025-10-05T16:00:00Z"
|
||||
},
|
||||
"updateTime": {
|
||||
"type": "string",
|
||||
"format": "date-time",
|
||||
"description": "更新时间",
|
||||
"example": "2025-10-05T16:30:00Z"
|
||||
},
|
||||
"deleteTime": {
|
||||
"type": "string",
|
||||
"format": "date-time",
|
||||
"description": "删除时间",
|
||||
"example": null
|
||||
},
|
||||
"deleted": {
|
||||
"type": "boolean",
|
||||
"description": "是否删除",
|
||||
"default": false,
|
||||
"example": false
|
||||
}
|
||||
},
|
||||
"required": ["id", "createTime", "updateTime", "deleted"]
|
||||
}
|
||||
50
schoolNewsServ/.doc/apifox/domain/dto/TbSysDept.json
Normal file
50
schoolNewsServ/.doc/apifox/domain/dto/TbSysDept.json
Normal file
@@ -0,0 +1,50 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "TbSysDept",
|
||||
"description": "系统部门信息",
|
||||
"type": "object",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "BaseDTO.json"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"deptID": {
|
||||
"type": "string",
|
||||
"description": "部门ID",
|
||||
"example": "1234567890123456789"
|
||||
},
|
||||
"parentID": {
|
||||
"type": "string",
|
||||
"description": "父部门ID",
|
||||
"example": "1234567890123456789"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "部门名称",
|
||||
"minLength": 1,
|
||||
"maxLength": 50,
|
||||
"example": "技术部"
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"description": "部门描述",
|
||||
"maxLength": 200,
|
||||
"example": "技术开发部门"
|
||||
},
|
||||
"creator": {
|
||||
"type": "string",
|
||||
"description": "创建人",
|
||||
"example": "admin"
|
||||
},
|
||||
"updater": {
|
||||
"type": "string",
|
||||
"description": "更新人",
|
||||
"example": "admin"
|
||||
}
|
||||
},
|
||||
"required": ["deptID", "name"]
|
||||
}
|
||||
]
|
||||
}
|
||||
37
schoolNewsServ/.doc/apifox/domain/dto/TbSysDeptRole.json
Normal file
37
schoolNewsServ/.doc/apifox/domain/dto/TbSysDeptRole.json
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "TbSysDeptRole",
|
||||
"description": "部门角色关联信息",
|
||||
"type": "object",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "BaseDTO.json"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"deptID": {
|
||||
"type": "string",
|
||||
"description": "部门ID",
|
||||
"example": "1234567890123456789"
|
||||
},
|
||||
"roleID": {
|
||||
"type": "string",
|
||||
"description": "角色ID",
|
||||
"example": "1234567890123456789"
|
||||
},
|
||||
"creator": {
|
||||
"type": "string",
|
||||
"description": "创建人",
|
||||
"example": "admin"
|
||||
},
|
||||
"updater": {
|
||||
"type": "string",
|
||||
"description": "更新人",
|
||||
"example": "admin"
|
||||
}
|
||||
},
|
||||
"required": ["deptID", "roleID"]
|
||||
}
|
||||
]
|
||||
}
|
||||
76
schoolNewsServ/.doc/apifox/domain/dto/TbSysLoginLog.json
Normal file
76
schoolNewsServ/.doc/apifox/domain/dto/TbSysLoginLog.json
Normal file
@@ -0,0 +1,76 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "TbSysLoginLog",
|
||||
"description": "系统登录日志信息",
|
||||
"type": "object",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "BaseDTO.json"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"userID": {
|
||||
"type": "string",
|
||||
"description": "用户ID",
|
||||
"example": "1234567890123456789"
|
||||
},
|
||||
"username": {
|
||||
"type": "string",
|
||||
"description": "用户名",
|
||||
"example": "admin"
|
||||
},
|
||||
"ipAddress": {
|
||||
"type": "string",
|
||||
"format": "ipv4",
|
||||
"description": "登录IP地址",
|
||||
"example": "192.168.1.100"
|
||||
},
|
||||
"ipSource": {
|
||||
"type": "string",
|
||||
"description": "IP来源",
|
||||
"example": "北京市"
|
||||
},
|
||||
"browser": {
|
||||
"type": "string",
|
||||
"description": "浏览器类型",
|
||||
"example": "Chrome"
|
||||
},
|
||||
"os": {
|
||||
"type": "string",
|
||||
"description": "操作系统",
|
||||
"example": "Windows 10"
|
||||
},
|
||||
"password": {
|
||||
"type": "string",
|
||||
"description": "登录密码",
|
||||
"example": "******"
|
||||
},
|
||||
"loginTime": {
|
||||
"type": "string",
|
||||
"format": "date-time",
|
||||
"description": "登录时间",
|
||||
"example": "2025-10-05T16:00:00Z"
|
||||
},
|
||||
"status": {
|
||||
"type": "integer",
|
||||
"description": "登录状态(0-失败,1-成功)",
|
||||
"enum": [0, 1],
|
||||
"example": 1
|
||||
},
|
||||
"errorCount": {
|
||||
"type": "integer",
|
||||
"description": "错误次数",
|
||||
"minimum": 0,
|
||||
"example": 0
|
||||
},
|
||||
"message": {
|
||||
"type": "string",
|
||||
"description": "登录消息",
|
||||
"example": "登录成功"
|
||||
}
|
||||
},
|
||||
"required": ["userID", "username", "ipAddress", "loginTime", "status"]
|
||||
}
|
||||
]
|
||||
}
|
||||
72
schoolNewsServ/.doc/apifox/domain/dto/TbSysMenu.json
Normal file
72
schoolNewsServ/.doc/apifox/domain/dto/TbSysMenu.json
Normal file
@@ -0,0 +1,72 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "TbSysMenu",
|
||||
"description": "系统菜单信息",
|
||||
"type": "object",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "BaseDTO.json"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"menuID": {
|
||||
"type": "string",
|
||||
"description": "菜单ID",
|
||||
"example": "1234567890123456789"
|
||||
},
|
||||
"parentID": {
|
||||
"type": "string",
|
||||
"description": "父菜单ID",
|
||||
"example": "1234567890123456789"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "菜单名称",
|
||||
"minLength": 1,
|
||||
"maxLength": 50,
|
||||
"example": "用户管理"
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"description": "菜单描述",
|
||||
"maxLength": 200,
|
||||
"example": "用户管理菜单"
|
||||
},
|
||||
"url": {
|
||||
"type": "string",
|
||||
"description": "菜单URL",
|
||||
"example": "/user/manage"
|
||||
},
|
||||
"icon": {
|
||||
"type": "string",
|
||||
"description": "菜单图标",
|
||||
"example": "user"
|
||||
},
|
||||
"orderNum": {
|
||||
"type": "integer",
|
||||
"description": "菜单顺序",
|
||||
"minimum": 0,
|
||||
"example": 1
|
||||
},
|
||||
"type": {
|
||||
"type": "integer",
|
||||
"description": "菜单类型(0-目录,1-菜单,2-按钮)",
|
||||
"enum": [0, 1, 2],
|
||||
"example": 1
|
||||
},
|
||||
"creator": {
|
||||
"type": "string",
|
||||
"description": "创建人",
|
||||
"example": "admin"
|
||||
},
|
||||
"updater": {
|
||||
"type": "string",
|
||||
"description": "更新人",
|
||||
"example": "admin"
|
||||
}
|
||||
},
|
||||
"required": ["menuID", "name", "type"]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "TbSysMenuPermission",
|
||||
"description": "菜单权限关联信息",
|
||||
"type": "object",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "BaseDTO.json"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"menuID": {
|
||||
"type": "string",
|
||||
"description": "菜单ID",
|
||||
"example": "1234567890123456789"
|
||||
},
|
||||
"permissionID": {
|
||||
"type": "string",
|
||||
"description": "权限ID",
|
||||
"example": "1234567890123456789"
|
||||
},
|
||||
"creator": {
|
||||
"type": "string",
|
||||
"description": "创建人",
|
||||
"example": "admin"
|
||||
},
|
||||
"updater": {
|
||||
"type": "string",
|
||||
"description": "更新人",
|
||||
"example": "admin"
|
||||
}
|
||||
},
|
||||
"required": ["menuID", "permissionID"]
|
||||
}
|
||||
]
|
||||
}
|
||||
52
schoolNewsServ/.doc/apifox/domain/dto/TbSysPermission.json
Normal file
52
schoolNewsServ/.doc/apifox/domain/dto/TbSysPermission.json
Normal file
@@ -0,0 +1,52 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "TbSysPermission",
|
||||
"description": "系统权限信息",
|
||||
"type": "object",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "BaseDTO.json"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"permissionID": {
|
||||
"type": "string",
|
||||
"description": "权限ID",
|
||||
"example": "1234567890123456789"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "权限名称",
|
||||
"minLength": 1,
|
||||
"maxLength": 50,
|
||||
"example": "用户管理"
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"description": "权限描述",
|
||||
"maxLength": 200,
|
||||
"example": "用户管理权限"
|
||||
},
|
||||
"code": {
|
||||
"type": "string",
|
||||
"description": "权限编码",
|
||||
"minLength": 1,
|
||||
"maxLength": 50,
|
||||
"example": "user:manage"
|
||||
},
|
||||
"creator": {
|
||||
"type": "string",
|
||||
"description": "创建人",
|
||||
"example": "admin"
|
||||
},
|
||||
"updater": {
|
||||
"type": "string",
|
||||
"description": "更新人",
|
||||
"example": "admin"
|
||||
}
|
||||
},
|
||||
"required": ["permissionID", "name", "code"]
|
||||
}
|
||||
]
|
||||
}
|
||||
45
schoolNewsServ/.doc/apifox/domain/dto/TbSysRole.json
Normal file
45
schoolNewsServ/.doc/apifox/domain/dto/TbSysRole.json
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "TbSysRole",
|
||||
"description": "系统角色信息",
|
||||
"type": "object",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "BaseDTO.json"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"roleID": {
|
||||
"type": "string",
|
||||
"description": "角色ID",
|
||||
"example": "1234567890123456789"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"description": "角色名称",
|
||||
"minLength": 1,
|
||||
"maxLength": 50,
|
||||
"example": "管理员"
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"description": "角色描述",
|
||||
"maxLength": 200,
|
||||
"example": "系统管理员角色"
|
||||
},
|
||||
"creator": {
|
||||
"type": "string",
|
||||
"description": "创建人",
|
||||
"example": "admin"
|
||||
},
|
||||
"updater": {
|
||||
"type": "string",
|
||||
"description": "更新人",
|
||||
"example": "admin"
|
||||
}
|
||||
},
|
||||
"required": ["roleID", "name"]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "TbSysRolePermission",
|
||||
"description": "角色权限关联信息",
|
||||
"type": "object",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "BaseDTO.json"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"roleID": {
|
||||
"type": "string",
|
||||
"description": "角色ID",
|
||||
"example": "1234567890123456789"
|
||||
},
|
||||
"permissionID": {
|
||||
"type": "string",
|
||||
"description": "权限ID",
|
||||
"example": "1234567890123456789"
|
||||
},
|
||||
"creator": {
|
||||
"type": "string",
|
||||
"description": "创建人",
|
||||
"example": "admin"
|
||||
},
|
||||
"updater": {
|
||||
"type": "string",
|
||||
"description": "更新人",
|
||||
"example": "admin"
|
||||
}
|
||||
},
|
||||
"required": ["roleID", "permissionID"]
|
||||
}
|
||||
]
|
||||
}
|
||||
54
schoolNewsServ/.doc/apifox/domain/dto/TbSysUser.json
Normal file
54
schoolNewsServ/.doc/apifox/domain/dto/TbSysUser.json
Normal file
@@ -0,0 +1,54 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "TbSysUser",
|
||||
"description": "系统用户信息",
|
||||
"type": "object",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "BaseDTO.json"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"username": {
|
||||
"type": "string",
|
||||
"description": "用户名",
|
||||
"minLength": 1,
|
||||
"maxLength": 50,
|
||||
"example": "admin"
|
||||
},
|
||||
"password": {
|
||||
"type": "string",
|
||||
"description": "密码",
|
||||
"minLength": 6,
|
||||
"maxLength": 20,
|
||||
"example": "123456"
|
||||
},
|
||||
"email": {
|
||||
"type": "string",
|
||||
"format": "email",
|
||||
"description": "邮箱",
|
||||
"example": "admin@example.com"
|
||||
},
|
||||
"phone": {
|
||||
"type": "string",
|
||||
"pattern": "^1[3-9]\\d{9}$",
|
||||
"description": "手机号",
|
||||
"example": "13800138000"
|
||||
},
|
||||
"wechatID": {
|
||||
"type": "string",
|
||||
"description": "微信号",
|
||||
"example": "wx_123456789"
|
||||
},
|
||||
"status": {
|
||||
"type": "integer",
|
||||
"description": "用户状态",
|
||||
"enum": [0, 1],
|
||||
"example": 1
|
||||
}
|
||||
},
|
||||
"required": ["username", "password", "email", "phone", "status"]
|
||||
}
|
||||
]
|
||||
}
|
||||
63
schoolNewsServ/.doc/apifox/domain/dto/TbSysUserInfo.json
Normal file
63
schoolNewsServ/.doc/apifox/domain/dto/TbSysUserInfo.json
Normal file
@@ -0,0 +1,63 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "TbSysUserInfo",
|
||||
"description": "用户详细信息",
|
||||
"type": "object",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "BaseDTO.json"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"userID": {
|
||||
"type": "string",
|
||||
"description": "用户ID",
|
||||
"example": "1234567890123456789"
|
||||
},
|
||||
"avatar": {
|
||||
"type": "string",
|
||||
"description": "头像",
|
||||
"example": "https://example.com/avatar.jpg"
|
||||
},
|
||||
"gender": {
|
||||
"type": "integer",
|
||||
"description": "性别(0-未知,1-女,2-男)",
|
||||
"enum": [0, 1, 2],
|
||||
"example": 1
|
||||
},
|
||||
"familyName": {
|
||||
"type": "string",
|
||||
"description": "姓",
|
||||
"maxLength": 50,
|
||||
"example": "张"
|
||||
},
|
||||
"givenName": {
|
||||
"type": "string",
|
||||
"description": "名",
|
||||
"maxLength": 50,
|
||||
"example": "三"
|
||||
},
|
||||
"fullName": {
|
||||
"type": "string",
|
||||
"description": "全名",
|
||||
"maxLength": 100,
|
||||
"example": "张三"
|
||||
},
|
||||
"idCard": {
|
||||
"type": "string",
|
||||
"description": "身份证号",
|
||||
"pattern": "^[1-9]\\d{5}(18|19|20)\\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\\d{3}[0-9Xx]$",
|
||||
"example": "110101199001011234"
|
||||
},
|
||||
"address": {
|
||||
"type": "string",
|
||||
"description": "地址",
|
||||
"maxLength": 200,
|
||||
"example": "北京市朝阳区"
|
||||
}
|
||||
},
|
||||
"required": ["userID"]
|
||||
}
|
||||
]
|
||||
}
|
||||
37
schoolNewsServ/.doc/apifox/domain/dto/TbSysUserRole.json
Normal file
37
schoolNewsServ/.doc/apifox/domain/dto/TbSysUserRole.json
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "TbSysUserRole",
|
||||
"description": "用户角色关联信息",
|
||||
"type": "object",
|
||||
"allOf": [
|
||||
{
|
||||
"$ref": "BaseDTO.json"
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"userID": {
|
||||
"type": "string",
|
||||
"description": "用户ID",
|
||||
"example": "1234567890123456789"
|
||||
},
|
||||
"roleID": {
|
||||
"type": "string",
|
||||
"description": "角色ID",
|
||||
"example": "1234567890123456789"
|
||||
},
|
||||
"creator": {
|
||||
"type": "string",
|
||||
"description": "创建人",
|
||||
"example": "admin"
|
||||
},
|
||||
"updater": {
|
||||
"type": "string",
|
||||
"description": "更新人",
|
||||
"example": "admin"
|
||||
}
|
||||
},
|
||||
"required": ["userID", "roleID"]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user