function generateId(type: IDType): string;
Defined in: sapi/runtime/tools.ts:235
生成带有业务类型前缀的随机短 ID(例如 CH_a1b2c3d4)。
CH_a1b2c3d4
type
IDType
string
带前缀的唯一随机字符串。