feat: 公共表更名 common/member 前缀 + 插件命令自动加载 + 版本 1.1.1

- 18 张公共表更名(addon/attachment/configure/links/spider_log/spider_stat/sms/notice/ad/task/prop/medal/help/card -> common_*,member_wallets->member_wallet,score_rule/score_log -> member_*,addon_config->common_addonconf),模型全部对齐新表名,Db 直引用清零
- Attachment 模型补  表名绑定,修复富文本上传查 wxapp_attachment 1146 隐患
- install.sql + 迁移 SQL:backend_admin/backend_role delete_at 默认 0,修复软删除(NULL != 0)误过滤导致后台菜单为空
- AppService::boot() 支持插件 info.php 声明 commands 自动注册插件命令(psr-4 自动加载,坏类名自动跳过)
- 各插件(haonav/mqttbroker/wxchat/articles/blog/forum 等)字段与配置同步调整
- 框架版本 1.1.0 -> 1.1.1
This commit is contained in:
ywxapp
2026-08-20 20:19:15 +08:00
parent 303f548664
commit 1d49e6f5ee
395 changed files with 13342 additions and 2012 deletions
@@ -0,0 +1,161 @@
{
"info": {
"name": "YwxApp API v1",
"description": "YwxApp 标准 App 接口集合(/api/v1)。code=0 成功,非0 失败,401 未登录。登录后从响应取 access_token,通过 Tests 脚本自动写入环境变量 token。",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"variable": [
{ "key": "base_url", "value": "http://localhost/api/v1", "type": "string" },
{ "key": "token", "value": "", "type": "string" }
],
"item": [
{
"name": "Common",
"item": [
{
"name": "init 启动初始化",
"request": {
"method": "GET",
"url": "{{base_url}}/common/init"
}
},
{
"name": "config 站点配置",
"request": {
"method": "GET",
"url": "{{base_url}}/common/config"
}
}
]
},
{
"name": "User",
"item": [
{
"name": "register 注册",
"request": {
"method": "POST",
"url": "{{base_url}}/user/register",
"body": {
"mode": "urlencoded",
"urlencoded": [
{ "key": "account", "value": "testuser", "type": "text" },
{ "key": "password", "value": "123456", "type": "text" },
{ "key": "nickname", "value": "测试用户", "type": "text" }
]
}
}
},
{
"name": "login 登录",
"request": {
"method": "POST",
"url": "{{base_url}}/user/login",
"body": {
"mode": "urlencoded",
"urlencoded": [
{ "key": "account", "value": "testuser", "type": "text" },
{ "key": "password", "value": "123456", "type": "text" }
]
}
},
"event": [
{
"listen": "test",
"script": {
"exec": [
"var json = pm.response.json();",
"if (json.code === 0 && json.data && json.data.access_token) {",
" pm.collectionVariables.set('token', json.data.access_token);",
" pm.collectionVariables.set('refresh_token', json.data.refresh_token);",
"}"
],
"type": "text/javascript"
}
}
]
},
{
"name": "refresh 刷新token",
"request": {
"method": "POST",
"url": "{{base_url}}/user/refresh",
"body": {
"mode": "urlencoded",
"urlencoded": [
{ "key": "refresh_token", "value": "{{refresh_token}}", "type": "text" }
]
}
},
"event": [
{
"listen": "test",
"script": {
"exec": [
"var json = pm.response.json();",
"if (json.code === 0 && json.data && json.data.access_token) {",
" pm.collectionVariables.set('token', json.data.access_token);",
"}"
],
"type": "text/javascript"
}
}
]
},
{
"name": "profile 获取资料(需登录)",
"request": {
"method": "GET",
"url": "{{base_url}}/user/profile",
"header": [
{ "key": "Authorization", "value": "Bearer {{token}}" }
]
}
},
{
"name": "updateProfile 修改资料(需登录)",
"request": {
"method": "POST",
"url": "{{base_url}}/user/updateProfile",
"header": [
{ "key": "Authorization", "value": "Bearer {{token}}" }
],
"body": {
"mode": "urlencoded",
"urlencoded": [
{ "key": "nickname", "value": "新昵称", "type": "text" }
]
}
}
},
{
"name": "changePwd 修改密码(需登录)",
"request": {
"method": "POST",
"url": "{{base_url}}/user/changePwd",
"header": [
{ "key": "Authorization", "value": "Bearer {{token}}" }
],
"body": {
"mode": "urlencoded",
"urlencoded": [
{ "key": "oldpassword", "value": "123456", "type": "text" },
{ "key": "newpassword", "value": "654321", "type": "text" }
]
}
}
},
{
"name": "logout 退出登录(需登录)",
"request": {
"method": "POST",
"url": "{{base_url}}/user/logout",
"header": [
{ "key": "Authorization", "value": "Bearer {{token}}" }
]
}
}
]
}
]
}