diff --git a/readme.md b/readme.md index 145f65b..965ba49 100644 --- a/readme.md +++ b/readme.md @@ -2,9 +2,24 @@ ## 代码结构 -* `ont` 基础代码 `ontic` -* `eid` 核心代码 `eidetic` -* `pra` 业务代码 `praxic` +* `src` 源代码 `source` + * `ont` 基础计算 `ontic` + - `base.ts` 进制转换 + - `utc.ts` 时间格式 + - `adm.ts` 行政区划 + - `json.ts` JSON数据声明 + * `eid` 核心操作 `eidetic` + - `typ.ts` 数据类型声明 + - `db.ts` 数据库初始化与数据操作类型声明 + - `is.ts` 数据定义与检查 + - `id.ts` 实体数据操作 + - `usr.ts` 用户数据操作 + - `soc.ts` 俱乐部数据操作 + - `agd.ts` 活动数据操作 + - `rec.ts` 记录数据操作 + - `msg.ts` 文章数据操作 + - `aut.ts` 权限数据操作 + * `pra` 业务操作 `praxic` * `tst` 测试代码 `tests` ## [系列视频](https://space.bilibili.com/483417795/video) diff --git a/eid/agd.ts b/src/eid/agd.ts similarity index 100% rename from eid/agd.ts rename to src/eid/agd.ts diff --git a/eid/aut.ts b/src/eid/aut.ts similarity index 100% rename from eid/aut.ts rename to src/eid/aut.ts diff --git a/eid/db.ts b/src/eid/db.ts similarity index 100% rename from eid/db.ts rename to src/eid/db.ts diff --git a/eid/id.ts b/src/eid/id.ts similarity index 100% rename from eid/id.ts rename to src/eid/id.ts diff --git a/eid/is.ts b/src/eid/is.ts similarity index 100% rename from eid/is.ts rename to src/eid/is.ts diff --git a/eid/msg.ts b/src/eid/msg.ts similarity index 100% rename from eid/msg.ts rename to src/eid/msg.ts diff --git a/eid/rec.ts b/src/eid/rec.ts similarity index 100% rename from eid/rec.ts rename to src/eid/rec.ts diff --git a/eid/soc.ts b/src/eid/soc.ts similarity index 100% rename from eid/soc.ts rename to src/eid/soc.ts diff --git a/eid/typ.ts b/src/eid/typ.ts similarity index 100% rename from eid/typ.ts rename to src/eid/typ.ts diff --git a/eid/usr.ts b/src/eid/usr.ts similarity index 100% rename from eid/usr.ts rename to src/eid/usr.ts diff --git a/ont/adm.ts b/src/ont/adm.ts similarity index 100% rename from ont/adm.ts rename to src/ont/adm.ts diff --git a/ont/json.ts b/src/ont/json.ts similarity index 100% rename from ont/json.ts rename to src/ont/json.ts diff --git a/tst/eid.test.ts b/tst/eid.test.ts index a955f5e..57ffbf2 100644 --- a/tst/eid.test.ts +++ b/tst/eid.test.ts @@ -1,12 +1,12 @@ -import type { Rec } from "../eid/typ.ts" -import { coll, db } from "../eid/db.ts" -import { usr_c, usr_d, usr_r, usr_u } from "../eid/usr.ts" -import { soc_c, soc_d, soc_r, soc_u } from "../eid/soc.ts" -import { agd_c, agd_d, agd_r, agd_u } from "../eid/agd.ts" +import type { Rec } from "../src/eid/typ.ts" +import { coll, db } from "../src/eid/db.ts" +import { usr_c, usr_d, usr_r, usr_u } from "../src/eid/usr.ts" +import { soc_c, soc_d, soc_r, soc_u } from "../src/eid/soc.ts" +import { agd_c, agd_d, agd_r, agd_u } from "../src/eid/agd.ts" import { assertEquals } from "./mod.test.ts" -import { msg_c, msg_f, msg_r, msg_u } from "../eid/msg.ts" -import { aut, aut_f, aut_u } from "../eid/aut.ts" -import { cdt_u, rec_c, rec_d, rec_f, rec_r, rec_s } from "../eid/rec.ts" +import { msg_c, msg_f, msg_r, msg_u } from "../src/eid/msg.ts" +import { aut, aut_f, aut_u } from "../src/eid/aut.ts" +import { cdt_u, rec_c, rec_d, rec_f, rec_r, rec_s } from "../src/eid/rec.ts" await db("tst", true) diff --git a/tst/ont.test.ts b/tst/ont.test.ts index 59cb3de..18d6c55 100644 --- a/tst/ont.test.ts +++ b/tst/ont.test.ts @@ -1,4 +1,4 @@ -import { is_adm } from "../ont/adm.ts" +import { is_adm } from "../src/ont/adm.ts" import { assertEquals } from "./mod.test.ts" Deno.test("adm", () => {