We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d631b4c commit 7e9e79cCopy full SHA for 7e9e79c
2 files changed
apijson/CodeUtil.js
@@ -711,14 +711,15 @@ var CodeUtil = {
711
712
/**获取Table变量名
713
* @param key
714
- * @return empty ? 'reqObj' : key + 'Request' 且首字母小写
+ * @return empty ? 'request' : key
715
*/
716
getTableKey: function(key) {
717
- return StringUtil.addSuffix(key, 'Request');
+ key = StringUtil.trim(key);
718
+ return key == '' ? 'request' : StringUtil.firstCase(key, false);//StringUtil.addSuffix(key, 'Request');
719
},
720
/**获取数组内Object变量名
721
722
+ * @return empty ? 'item' : key + 'Item' 且首字母小写
723
724
getItemKey: function(key) {
725
return StringUtil.addSuffix(key.substring(0, key.length - 2), 'Item');
login.html
0 commit comments