docs: 支付模块开发文档 + git 域名更新
- 新增 backend/design/支付模块架构概览.md - 新增 backend/design/支付模块数据库设计.md (21张表 DDL) - 新增 backend/design/支付模块接口设计.md - git.dev.vifo.cc → git.vifo.cc 全局替换
This commit is contained in:
+12
-12
@@ -10,11 +10,11 @@
|
||||
|
||||
| 仓库 | Git 地址 | API Issue 端点 |
|
||||
|------|---------|---------------|
|
||||
| rui-framework | `ssh://git@git.dev.vifo.cc:222/rui/rui-framework.git` | `https://git.dev.vifo.cc/api/v1/repos/rui/rui-framework/issues` |
|
||||
| rui-cashier | `ssh://git@git.dev.vifo.cc:222/rui/rui-cashier.git` | `https://git.dev.vifo.cc/api/v1/repos/rui/rui-cashier/issues` |
|
||||
| rui-payment | `ssh://git@git.dev.vifo.cc:222/rui/rui-payment.git` | `https://git.dev.vifo.cc/api/v1/repos/rui/rui-payment/issues` |
|
||||
| rui-frontend | `ssh://git@git.dev.vifo.cc:222/rui/rui-frontend.git` | `https://git.dev.vifo.cc/api/v1/repos/rui/rui-frontend/issues` |
|
||||
| rui-docs | `ssh://git@git.dev.vifo.cc:222/rui/rui-docs.git` | `https://git.dev.vifo.cc/api/v1/repos/rui/rui-docs/issues` |
|
||||
| rui-framework | `ssh://git@git.vifo.cc:222/rui/rui-framework.git` | `https://git.vifo.cc/api/v1/repos/rui/rui-framework/issues` |
|
||||
| rui-cashier | `ssh://git@git.vifo.cc:222/rui/rui-cashier.git` | `https://git.vifo.cc/api/v1/repos/rui/rui-cashier/issues` |
|
||||
| rui-payment | `ssh://git@git.vifo.cc:222/rui/rui-payment.git` | `https://git.vifo.cc/api/v1/repos/rui/rui-payment/issues` |
|
||||
| rui-frontend | `ssh://git@git.vifo.cc:222/rui/rui-frontend.git` | `https://git.vifo.cc/api/v1/repos/rui/rui-frontend/issues` |
|
||||
| rui-docs | `ssh://git@git.vifo.cc:222/rui/rui-docs.git` | `https://git.vifo.cc/api/v1/repos/rui/rui-docs/issues` |
|
||||
|
||||
## 工单路由规则
|
||||
|
||||
@@ -68,7 +68,7 @@ curl -s -X POST \
|
||||
-H "Authorization: token ${TOKEN}" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d @/tmp/issue.json \
|
||||
"https://git.dev.vifo.cc/api/v1/repos/{owner}/{repo}/issues"
|
||||
"https://git.vifo.cc/api/v1/repos/{owner}/{repo}/issues"
|
||||
```
|
||||
|
||||
**示例**(提交到 rui-framework 仓库):
|
||||
@@ -79,7 +79,7 @@ curl -s -X POST \
|
||||
-H "Authorization: token ${TOKEN}" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d @/tmp/issue.json \
|
||||
"https://git.dev.vifo.cc/api/v1/repos/rui/rui-framework/issues"
|
||||
"https://git.vifo.cc/api/v1/repos/rui/rui-framework/issues"
|
||||
```
|
||||
|
||||
**返回示例**:
|
||||
@@ -88,7 +88,7 @@ curl -s -X POST \
|
||||
"id": 7,
|
||||
"number": 2,
|
||||
"title": "[API-REQ] 用户编辑接口密码字段处理优化",
|
||||
"html_url": "https://git.dev.vifo.cc/rui/rui-framework/issues/2",
|
||||
"html_url": "https://git.vifo.cc/rui/rui-framework/issues/2",
|
||||
"state": "open"
|
||||
}
|
||||
```
|
||||
@@ -98,7 +98,7 @@ curl -s -X POST \
|
||||
```bash
|
||||
TOKEN=$(cat ~/.config/gitea/token)
|
||||
curl -s -H "Authorization: token ${TOKEN}" \
|
||||
"https://git.dev.vifo.cc/api/v1/repos/{owner}/{repo}/issues/{id}"
|
||||
"https://git.vifo.cc/api/v1/repos/{owner}/{repo}/issues/{id}"
|
||||
```
|
||||
|
||||
## 列出仓库所有 Issue
|
||||
@@ -106,7 +106,7 @@ curl -s -H "Authorization: token ${TOKEN}" \
|
||||
```bash
|
||||
TOKEN=$(cat ~/.config/gitea/token)
|
||||
curl -s -H "Authorization: token ${TOKEN}" \
|
||||
"https://git.dev.vifo.cc/api/v1/repos/{owner}/{repo}/issues?state=open"
|
||||
"https://git.vifo.cc/api/v1/repos/{owner}/{repo}/issues?state=open"
|
||||
```
|
||||
|
||||
## 回复 Issue 评论
|
||||
@@ -117,7 +117,7 @@ curl -s -X POST \
|
||||
-H "Authorization: token ${TOKEN}" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"body": "✅ 已完成\n\n完成内容..."}' \
|
||||
"https://git.dev.vifo.cc/api/v1/repos/{owner}/{repo}/issues/{id}/comments"
|
||||
"https://git.vifo.cc/api/v1/repos/{owner}/{repo}/issues/{id}/comments"
|
||||
```
|
||||
|
||||
## 关闭 Issue
|
||||
@@ -128,7 +128,7 @@ curl -s -X PATCH \
|
||||
-H "Authorization: token ${TOKEN}" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"state": "closed"}' \
|
||||
"https://git.dev.vifo.cc/api/v1/repos/{owner}/{repo}/issues/{id}"
|
||||
"https://git.vifo.cc/api/v1/repos/{owner}/{repo}/issues/{id}"
|
||||
```
|
||||
|
||||
## 常用端点
|
||||
|
||||
Reference in New Issue
Block a user