更新版本号至0.0.15,并优化CNB和Workspace类的构造函数以支持更多选项

This commit is contained in:
2026-02-05 19:45:01 +08:00
parent ddaa4726ff
commit ed6a9c5bbc
3 changed files with 16 additions and 14 deletions

View File

@@ -6,7 +6,7 @@
*/
import { Result } from "@kevisual/query/query";
import { CNBCore } from "../cnb-core.ts";
import { CNBCore, CNBCoreOptions } from "../cnb-core.ts";
/**
* 工作空间列表查询参数
@@ -33,8 +33,8 @@ export interface ListParams {
* https://api.cnb.cool/#/operations/GetWorkspaceDetail
*/
export class Workspace extends CNBCore {
constructor(token: string) {
super({ token });
constructor(options: CNBCoreOptions) {
super(options);
}
/**
* 删除我的云原生开发环境