更新数据库,增加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,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"]
}