更新数据库,增加apifox实体json

This commit is contained in:
2025-10-06 16:19:35 +08:00
parent 1970865acb
commit a3e8687b31
20 changed files with 936 additions and 29 deletions

View File

@@ -0,0 +1,64 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "LoginDomain",
"description": "登录域对象",
"type": "object",
"properties": {
"user": {
"description": "用户信息",
"example": null
},
"userInfo": {
"description": "用户详细信息",
"example": null
},
"roles": {
"type": "array",
"description": "用户角色列表",
"items": {},
"example": []
},
"permissions": {
"type": "array",
"description": "用户权限列表",
"items": {},
"example": []
},
"menus": {
"type": "array",
"description": "用户菜单列表",
"items": {},
"example": []
},
"token": {
"type": "string",
"description": "JWT令牌",
"example": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
},
"tokenExpireTime": {
"type": "string",
"format": "date-time",
"description": "令牌过期时间",
"example": "2025-10-06T16:00:00Z"
},
"loginTime": {
"type": "string",
"format": "date-time",
"description": "登录时间",
"example": "2025-10-05T16:00:00Z"
},
"ipAddress": {
"type": "string",
"format": "ipv4",
"description": "登录IP地址",
"example": "192.168.1.100"
},
"loginType": {
"type": "string",
"description": "登录类型",
"enum": ["email", "username", "phone", "wechat"],
"example": "username"
}
},
"required": ["token", "loginTime", "loginType"]
}

View File

@@ -0,0 +1,56 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "LoginParam",
"description": "登录参数",
"type": "object",
"properties": {
"email": {
"type": "string",
"format": "email",
"description": "邮箱",
"example": "user@example.com"
},
"username": {
"type": "string",
"description": "用户名",
"minLength": 1,
"maxLength": 50,
"example": "admin"
},
"phone": {
"type": "string",
"pattern": "^1[3-9]\\d{9}$",
"description": "手机号",
"example": "13800138000"
},
"wechatID": {
"type": "string",
"description": "微信ID",
"example": "wx_123456789"
},
"password": {
"type": "string",
"description": "密码",
"minLength": 6,
"maxLength": 20,
"example": "123456"
},
"captcha": {
"type": "string",
"description": "验证码",
"example": "1234"
},
"loginType": {
"type": "string",
"description": "登录类型",
"enum": ["email", "username", "phone", "wechat"],
"example": "username"
},
"rememberMe": {
"type": "boolean",
"description": "记住我",
"example": false
}
},
"required": ["password", "loginType"]
}