💎一站式轻松地调用各大LLM模型接口,支持GPT4、智谱、星火、月之暗面及文生图 广告
# 组件源码 ``` /** * <b>方法描述:</b> 字符串转大写 <br/> * <b>创建者:</b> admin <br/> * <b>创建时间:</b> 2018-04-12 17:17:51 <br/> * * @param str * 入参|带转换字符串|{@link java.lang.String} * @param text * 出参|大写字符|{@link java.lang.String} * @return 0 失败<br/> * 1 成功<br/> */ @Component(label = "字符串大写", style = "判断型", type = "同步组件", comment = "转大写", version = "1.0.0", deprecated = false, author = "admin", date = "2018-04-12 05:17:51") @InParams(param = { @Param(name = "str", comment = "带转换字符串", type = java.lang.String.class) }) @OutParams(param = { @Param(name = "text", comment = "大写字符", type = java.lang.String.class) }) @Returns(returns = { @Return(id = "0", desp = "失败"), @Return(id = "1", desp = "成功") }) public static ResultBase P_toUpper(String str) { if (str != null) return ResultBase.newSuccessResult(str.toUpperCase()); else return ResultBase.newFailureResult("TPTS1010", "转换字符为空(Null)"); } ``` # 交易中组件使用方式 ![](https://img.kancloud.cn/93/36/93360ffc9b7050d5470201dec472b94c_1866x889.png) # 参数说明及示例 ## 入口参数 带转换字符串:输入一串字符串:示例: `"qwdcvfr"` ## 出口参数 大写字符:转换后的字符串,示例: `__INNER__["result"]`