💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# 组件源码 /** * <b>方法描述:</b> 生成ID <br/> * <b>创建者:</b> admin <br/> * <b>创建时间:</b> 2020-07-01 16:38:27 <br/> * * @param id 出参|主键ID|long * @return 1 成功<br/> */ @Component(label = "生成ID", style = "处理型", type = "同步组件", comment = "生成ID", version = "1.0.0", deprecated = false, author = "admin", date = "2020-07-01 04:38:27") @OutParams(param = { @Param(name = "id", comment = "主键ID", type = long.class) }) @Returns(returns = { @Return(id = "1", desp = "成功") }) public static ResultBase A_generateId() { FgbpSnowflakeUtil snowflake = SnowflakeIdUtil.createSnowflake(1, 1); return ResultBase.newSuccessResult(snowflake.nextId()); } 交易中组件使用方式: ![](https://img.kancloud.cn/4a/7a/4a7abd5cc46b3afd94e7d4ad2f9627eb_950x750.jpg) ## 参数说明及示例 主键ID:主键ID,示例: `__INNER__["result"]` > 生成ID