From 69e2baf5518079bfc16cfadc2fb29842fb3de85d Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期二, 14 一月 2020 21:02:48 +0800
Subject: [PATCH] 加入userName
---
java110-code-generator/src/main/resources/web/template_1.json | 212 +++++++++++++++++-----------------------------------
1 files changed, 71 insertions(+), 141 deletions(-)
diff --git a/java110-code-generator/src/main/resources/web/template_1.json b/java110-code-generator/src/main/resources/web/template_1.json
index d2e7f27..49d5e45 100644
--- a/java110-code-generator/src/main/resources/web/template_1.json
+++ b/java110-code-generator/src/main/resources/web/template_1.json
@@ -1,182 +1,112 @@
{
- "templateName":"鏈嶅姟",
- "templateCode":"service",
- "templateKey":"serviceId",
- "templateKeyName":"鏈嶅姟ID",
- "searchCode": "name",
- "searchName": "鏈嶅姟鍚嶇О",
+ "templateName":"娲诲姩",
+ "templateCode":"activities",
+ "templateKey":"activitiesId",
+ "templateKeyName":"娲诲姩ID",
+ "searchCode": "title",
+ "searchName": "娲诲姩鏍囬",
"conditions": [
{
- "name": "搴旂敤鍚嶇О",
- "inputType": "choose",
- "code": "appName",
+ "name": "娲诲姩鏍囬",
+ "inputType": "input",
+ "code": "title",
"whereCondition": "equal"
},
{
- "name": "鏈嶅姟鍚嶇О",
- "inputType": "input",
- "code": "serviceName",
- "whereCondition": "like"
+ "name": "娲诲姩绫诲瀷",
+ "inputType": "select",
+ "selectValue":"10001,10002",
+ "selectValueName":"灏忓尯鏂囧寲,鍏朵粬",
+ "code": "typeCd",
+ "whereCondition": "equal"
},
{
- "name": "鏈嶅姟缂栫爜",
+ "name": "鍛樺伐鍚嶇О",
"inputType": "input",
- "code": "serviceCode",
- "whereCondition": "like"
+ "code": "userName",
+ "whereCondition": "equal"
},
{
- "name": "璋冪敤鍦板潃",
+ "name": "娲诲姩ID",
"inputType": "input",
- "code": "serviceUrl",
- "whereCondition": "like"
+ "code": "activitiesId",
+ "whereCondition": "equal"
}
],
"columns":[
{
- "code":"name",
- "cnCode":"鏈嶅姟鍚嶇О",
- "desc":"蹇呭~锛岃濉啓鏈嶅姟鍚嶇О",
- "required":true,
- "hasDefaultValue":false,
- "inputType":"input",
- "limit":"maxLength",
- "limitParam":"50",
- "limitErrInfo":"鏈嶅姟鍚嶇О涓嶈兘瓒呰繃50",
- "show": true
- },
- {
- "code":"serviceCode",
- "cnCode":"鏈嶅姟缂栫爜",
- "desc":"蹇呭~锛岃濉啓鏈嶅姟缂栫爜濡� service.saveService",
+ "code":"title",
+ "cnCode":"娲诲姩鏍囬",
+ "desc":"蹇呭~锛岃濉啓涓氭椿鍔ㄦ爣棰�",
"required":true,
"hasDefaultValue":false,
"inputType":"input",
"limit":"maxin",
- "limitParam":"2,50",
- "limitErrInfo":"鏈嶅姟缂栫爜蹇呴』鍦�2鑷�50瀛楃涔嬮棿",
+ "limitParam":"1,200",
+ "limitErrInfo":"娲诲姩鏍囬涓嶈兘瓒呰繃200浣�",
"show": true
},
{
- "code":"businessTypeCd",
- "cnCode":"绉橀挜",
- "desc":"鍙~锛岃濉啓绉橀挜锛屽鏋滃~鍐欎簡闇�瑕佸姞瀵嗕紶杈�",
+ "code": "typeCd",
+ "cnCode":"娲诲姩绫诲瀷",
+ "desc":"蹇呭~锛岃閫夋嫨娲诲姩绫诲瀷",
"required":true,
- "hasDefaultValue":true,
- "defaultValue":"API",
- "inputType":"none",
+ "hasDefaultValue":false,
+ "inputType": "select",
+ "selectValue":"10001,10002",
+ "selectValueName":"灏忓尯鏂囧寲,鍏朵粬",
+ "limit":"num",
+ "limitParam":"",
+ "limitErrInfo":"娲诲姩绫诲瀷鏍煎紡閿欒",
+ "show": true
+ },
+ {
+ "code": "headerImg",
+ "cnCode":"澶撮儴鐓х墖",
+ "desc":"蹇呭~锛岃閫夋嫨澶撮儴鐓х墖",
+ "required":true,
+ "hasDefaultValue":false,
+ "inputType": "input",
"limit":"maxin",
- "limitParam":"2,4",
- "limitErrInfo":"涓氬姟绫诲瀷蹇呴』涓篈PI",
- "show": false
- },
-
- {
- "code":"seq",
- "cnCode":"搴忓垪",
- "desc":"蹇呭~锛岃濉啓搴忓垪",
- "required":true,
- "hasDefaultValue":true,
- "defaultValue":"1",
- "inputType":"none",
- "limit":"maxLength",
- "limitParam":"1",
- "limitErrInfo":"搴忓垪鏍煎紡閿欒",
- "show": false
- },
- {
- "code":"messageQueueName",
- "cnCode":"娑堟伅闃熷垪",
- "desc":"鍙~锛岃濉啓娑堟伅闃熷垪锛岃鍗曞湪寮傛璋冪敤鏃朵娇鐢�",
- "required":false,
- "hasDefaultValue":false,
- "defaultValue":"",
- "inputType":"input",
- "limit":"maxLength",
- "limitParam":"50",
- "limitErrInfo":"娑堟伅闃熷垪涓嶈兘瓒呰繃50",
+ "limitParam":"1,200",
+ "limitErrInfo":"澶撮儴鐓х墖鏍煎紡閿欒",
"show": true
},
{
- "code":"isInstance",
- "cnCode":"鏄惁瀹炰緥",
- "desc":"鍙~锛岃濉啓瀹炰緥 Y 鎴朜",
- "required":true,
- "hasDefaultValue":true,
- "defaultValue":"Y",
- "inputType":"input",
- "limit":"maxLength",
- "limitParam":"50",
- "limitErrInfo":"瀹炰緥涓嶈兘瓒呰繃50",
- "show": false
- }
- ,
-
- {
- "code":"url",
- "cnCode":"璋冪敤鍦板潃",
- "desc":"鍙~锛岃濉啓璋冪敤鍦板潃",
- "required":false,
- "hasDefaultValue":true,
- "defaultValue":"http://order-service/orderApi/service",
- "inputType":"input",
- "limit":"maxLength",
- "limitParam":"200",
- "limitErrInfo":"璋冪敤鍦板潃涓嶈兘瓒呰繃200",
- "show": true
- },
- {
- "code":"method",
- "cnCode":"璋冪敤鏂瑰紡",
- "desc":"蹇呭~锛岃濉啓璋冪敤鏂瑰紡",
+ "code": "context",
+ "cnCode":"娲诲姩鍐呭",
+ "desc":"蹇呭~锛岃濉啓娲诲姩鍐呭",
"required":true,
"hasDefaultValue":false,
- "inputType":"select",
- "selectValue":"GET,POST",
- "selectValueName":"http get,http post",
- "limit":"maxLength",
- "limitParam":"50",
- "limitErrInfo":"璋冪敤鏂瑰紡涓嶈兘瓒呰繃50",
+ "inputType": "input",
+ "limit":"maxin",
+ "limitParam":"1,4000",
+ "limitErrInfo":"娲诲姩鍐呭澶暱",
"show": true
},
{
- "code":"timeout",
- "cnCode":"瓒呮椂鏃堕棿",
- "desc":"蹇呭~锛岃濉啓瓒呮椂鏃堕棿",
+ "code": "startTime",
+ "cnCode":"寮�濮嬫椂闂�",
+ "desc":"蹇呭~锛岃閫夋嫨寮�濮嬫椂闂�",
"required":true,
- "hasDefaultValue":true,
- "defaultValue":"60",
- "inputType":"input",
- "limit":"num",
+ "hasDefaultValue":false,
+ "inputType": "input",
+ "limit":"date",
"limitParam":"",
- "limitErrInfo":"瓒呮椂鏃堕棿蹇呴』涓烘暟瀛�",
- "show": false
+ "limitErrInfo":"寮�濮嬫椂闂存牸寮忛敊璇�",
+ "show": true
},
{
- "code":"retryCount",
- "cnCode":"閲嶈瘯娆℃暟",
- "desc":"蹇呭~锛岃濉啓閲嶈瘯娆℃暟",
+ "code": "endTime",
+ "cnCode":"缁撴潫鏃堕棿",
+ "desc":"蹇呭~锛岃閫夋嫨缁撴潫鏃堕棿",
"required":true,
- "hasDefaultValue":true,
- "defaultValue":"3",
- "inputType":"input",
- "limit":"num",
+ "hasDefaultValue":false,
+ "inputType": "input",
+ "limit":"date",
"limitParam":"",
- "limitErrInfo":"閲嶈瘯娆℃暟蹇呴』涓烘暟瀛�",
- "show": false
- },
- {
- "code":"provideAppId",
- "cnCode":"鎻愪緵鏈嶅姟",
- "desc":"蹇呭~锛岃濉啓鎻愪緵鏈嶅姟",
- "required":true,
- "hasDefaultValue":true,
- "defaultValue":"8000418002",
- "inputType":"none",
- "limit":"num",
- "limitParam":"",
- "limitErrInfo":"閲嶈瘯娆℃暟蹇呴』涓烘暟瀛�",
- "show": false
+ "limitErrInfo":"缁撴潫鏃堕棿鏍煎紡閿欒",
+ "show": true
}
- ],
- "sql": ""
+ ]
}
\ No newline at end of file
--
Gitblit v1.8.0