fix(bill): expose usable template group ids
- bill templates 文本输出带 ID(组 ID,可直接用于 bill spec) - getFormSpecification 自动剥离版本后缀,兼容 <groupId>:<hash> - 修复 bill spec <模板ID> 返回 NOT FOUND
This commit is contained in:
1 parent
9d7df10994
commit
782466ad80
5 files changed
+15
-7
No files matched your search
@@ -53,7 +53,7 @@ export async function handleTemplates(ctx: BillActionContext): Promise<CliResult
|
||||
lines.push(`${group.name || "未分组"}`);
|
||||
for (const spec of group.specifications) {
|
||||
const inactiveMark = spec.active ? "" : "(已停用)";
|
||||
lines.push(` - ${spec.name}${inactiveMark} [${spec.type}]`);
|
||||
lines.push(` - ${spec.name}${inactiveMark} [${spec.type}] ID: ${spec.id}`);
|
||||
}
|
||||
lines.push("");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user