feat(api): 全链路后端 + 数据库设计 + E2E 测试(65 项断言全通过)
数据库: - db/schema_phase1.sql 16 张业务表(类目/服务/地址/师傅/订单/流水/取证/报价/评价/券/钱包/提现/结算/消息) - db/seed_phase1.sql 15 类目 + 32 服务项目 + 新人券(幂等) 后端 API (application/api/controller): - Base/Auth/Home/Address/Order/Master/Review - app/common/library/OrderStatus 11 状态机 + 流转矩阵 - application/api/common.php PHP 8.5 兼容垫片(E_DEPRECATED 不再升级为异常) 测试: - tests/e2e_flow.js 用户下单→支付→师傅抢单→履约→验收→结算→评价 全链路 65 项断言 - 含异常用例:越权/重复操作/非法状态流转/2h 未联系自动回流
这个提交包含在:
60
server/composer.json
可执行文件
60
server/composer.json
可执行文件
@@ -0,0 +1,60 @@
|
||||
{
|
||||
"name": "fastadminnet/fastadmin",
|
||||
"description": "the fastest admin framework",
|
||||
"type": "project",
|
||||
"keywords": [
|
||||
"fastadmin",
|
||||
"thinkphp"
|
||||
],
|
||||
"homepage": "https://www.fastadmin.net/",
|
||||
"license": "Apache-2.0",
|
||||
"authors": [
|
||||
{
|
||||
"name": "Karson",
|
||||
"email": "karson@fastadmin.net"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=7.4.0",
|
||||
"topthink/framework": "dev-master",
|
||||
"topthink/think-captcha": "^1.0.9",
|
||||
"topthink/think-installer": "^1.0.14",
|
||||
"topthink/think-queue": "1.1.6",
|
||||
"topthink/think-helper": "^1.0.7",
|
||||
"fastadminnet/fastadmin-addons": "~1.4.0",
|
||||
"fastadminnet/fastadmin-mailer": "^2.0.0",
|
||||
"overtrue/pinyin": "^3.0",
|
||||
"phpoffice/phpspreadsheet": "^1.29.1",
|
||||
"overtrue/wechat": "^4.6",
|
||||
"ext-json": "*",
|
||||
"ext-curl": "*",
|
||||
"ext-pdo": "*",
|
||||
"ext-bcmath": "*",
|
||||
"ramsey/uuid": "^3.9"
|
||||
},
|
||||
"config": {
|
||||
"preferred-install": "dist",
|
||||
"allow-plugins": {
|
||||
"topthink/think-installer": true,
|
||||
"easywechat-composer/easywechat-composer": true
|
||||
},
|
||||
"platform": {
|
||||
"php": "7.4.0"
|
||||
}
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"addons\\": "addons/"
|
||||
}
|
||||
},
|
||||
"repositories": [
|
||||
{
|
||||
"type": "git",
|
||||
"url": "https://gitee.com/fastadminnet/framework.git"
|
||||
},
|
||||
{
|
||||
"type": "git",
|
||||
"url": "https://gitee.com/fastadminnet/think-captcha.git"
|
||||
}
|
||||
]
|
||||
}
|
||||
在新工单中引用
屏蔽一个用户