feat(testing): Flows/FromCase、增量 swagger 与 Doc-Driven 门禁

补齐多接口流程联调与控制台体验,并落地仓内 Doc-Driven+TDD 总规则与文档。

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-13 18:11:08 +08:00
parent 9fe4ab2758
commit 16496a8dc0
14 changed files with 4178 additions and 418 deletions
+3 -2
View File
@@ -145,9 +145,10 @@ func testBasicCRUD(that *Context) Map {
now := nowFunc(that)
insertTest := Map{"name": "Insert 插入测试 (admin表)"}
uniq := time.Now().UnixNano()
adminId := that.Db.Insert("admin", Map{
"name": "测试管理员_" + fmt.Sprintf("%d", time.Now().Unix()),
"phone": fmt.Sprintf("138%d", time.Now().Unix()%100000000),
"name": "测试管理员_" + fmt.Sprintf("%d", uniq),
"phone": fmt.Sprintf("139%08d", uniq%100000000),
"state": 1,
"password": "test123456",
"role_id": 1,