封装创建 table 的模块

This commit is contained in:
2025-11-21 16:41:57 +08:00
parent f5c59e584a
commit de1b221bc5
13 changed files with 1073 additions and 41 deletions

14
test/common.ts Normal file
View File

@@ -0,0 +1,14 @@
import { NocoApi } from './../src/main.ts';
import { useConfig } from '@kevisual/use-config'
export const config = useConfig()
// # 签到表
const table = 'mcby44q8zrayvn9'
export const nocoApi = new NocoApi({
baseURL: config.NOCODB_URL || 'http://localhost:8080',
token: config.NOCODB_API_KEY || '',
table,
});
// console.log('nocoApi', await nocoApi.record.list())