From b6324e71edfc0d5c061ee5017a5c8eb2065e6b6b Mon Sep 17 00:00:00 2001
From: wuxw <928255095@qq.com>
Date: 星期日, 01 九月 2019 23:06:24 +0800
Subject: [PATCH] 服务提供代码开发完成
---
java110-code-generator/src/main/resources/relationship/template_1.json | 289 ++++++++++++++++++++++++++++++---------------------------
1 files changed, 150 insertions(+), 139 deletions(-)
diff --git a/java110-code-generator/src/main/resources/relationship/template_1.json b/java110-code-generator/src/main/resources/relationship/template_1.json
index e4565d6..979ea0d 100644
--- a/java110-code-generator/src/main/resources/relationship/template_1.json
+++ b/java110-code-generator/src/main/resources/relationship/template_1.json
@@ -1,148 +1,159 @@
{
- "templateName":"鏈嶅姟",
- "templateCode":"service",
- "templateKey":"serviceId",
- "templateKeyName":"鏈嶅姟ID",
- "searchCode": "name",
- "searchName": "鏈嶅姟鍚嶇О",
- "columns":[
+ "templateName":"閰嶇疆鑿滃崟",
+ "templateCode":"configMenu",
+ "templateKey":"mId",
+ "templateKeyName":"鑿滃崟ID",
+ "package": "menuPackage",
+ "successUrl": "/flow/menuFlow",
+ "needAffirm": false,
+ "flows":[
{
- "code":"name",
- "cnCode":"鏈嶅姟鍚嶇О",
- "desc":"蹇呭~锛岃濉啓鏈嶅姟鍚嶇О",
- "required":true,
- "hasDefaultValue":false,
- "inputType":"input",
- "limit":"maxLength",
- "limitParam":"50",
- "limitErrInfo":"鏈嶅姟鍚嶇О涓嶈兘瓒呰繃50"
+ "index": 0,
+ "code":"menuGroup",
+ "flowKey": "gId",
+ "cnCode":"閫夋嫨鑿滃崟缁�",
+ "vcName":"viewMenuGroupInfo",
+ "businessName": "businessMenuGroup",
+ "businessType": "BUSINESS_TYPE_SAVE_MENU_GROUP_INFO",
+ "existsComponent": true
},
{
- "code":"serviceCode",
- "cnCode":"鏈嶅姟缂栫爜",
- "desc":"蹇呭~锛岃濉啓鏈嶅姟缂栫爜濡� service.saveService",
- "required":true,
- "hasDefaultValue":false,
- "inputType":"input",
- "limit":"maxin",
- "limitParam":"2,50",
- "limitErrInfo":"鏈嶅姟缂栫爜蹇呴』鍦�2鑷�50瀛楃涔嬮棿"
+ "index": 1,
+ "code":"menu",
+ "flowKey": "mId",
+ "cnCode":"鑿滃崟淇℃伅",
+ "vcName":"addMenuView",
+ "businessName": "businessMenu",
+ "businessType": "BUSINESS_TYPE_SAVE_MENU_INFO",
+ "existsComponent": false
},
{
- "code":"businessTypeCd",
- "cnCode":"绉橀挜",
- "desc":"鍙~锛岃濉啓绉橀挜锛屽鏋滃~鍐欎簡闇�瑕佸姞瀵嗕紶杈�",
- "required":true,
- "hasDefaultValue":true,
- "defaultValue":"API",
- "inputType":"none",
- "limit":"maxin",
- "limitParam":"2,4",
- "limitErrInfo":"涓氬姟绫诲瀷蹇呴』涓篈PI"
- },
-
- {
- "code":"seq",
- "cnCode":"搴忓垪",
- "desc":"蹇呭~锛岃濉啓搴忓垪",
- "required":true,
- "hasDefaultValue":true,
- "defaultValue":"1",
- "inputType":"none",
- "limit":"maxLength",
- "limitParam":"1",
- "limitErrInfo":"搴忓垪鏍煎紡閿欒"
- },
-
- {
- "code":"messageQueueName",
- "cnCode":"娑堟伅闃熷垪",
- "desc":"鍙~锛岃濉啓娑堟伅闃熷垪锛岃鍗曞湪寮傛璋冪敤鏃朵娇鐢�",
- "required":false,
- "hasDefaultValue":false,
- "defaultValue":"",
- "inputType":"input",
- "limit":"maxLength",
- "limitParam":"50",
- "limitErrInfo":"娑堟伅闃熷垪涓嶈兘瓒呰繃50"
+ "index": 2,
+ "code":"privilege",
+ "flowKey": "pId",
+ "cnCode":"鏉冮檺淇℃伅",
+ "vcName":"addPrivilegeView",
+ "businessName": "businessPrivilege",
+ "businessType": "BUSINESS_TYPE_SAVE_PRIVILEGE_INFO",
+ "existsComponent": false
}
- ,
-
- {
- "code":"isInstance",
- "cnCode":"鏄惁瀹炰緥",
- "desc":"鍙~锛岃濉啓瀹炰緥 Y 鎴朜",
- "required":true,
- "hasDefaultValue":true,
- "defaultValue":"Y",
- "inputType":"input",
- "limit":"maxLength",
- "limitParam":"50",
- "limitErrInfo":"瀹炰緥涓嶈兘瓒呰繃50"
+ ],
+ "components": {
+ "addMenuView": {
+ "templateName":"鑿滃崟淇℃伅",
+ "templateCode":"addMenu",
+ "package": "menuPackage",
+ "columns":[
+ {
+ "code":"name",
+ "cnCode":"鑿滃崟鍚嶇О",
+ "desc":"蹇呭~锛岃濉啓鑿滃崟鍚嶇О",
+ "required":true,
+ "hasDefaultValue":false,
+ "inputType":"input",
+ "limit":"maxin",
+ "limitParam":"2,10",
+ "limitErrInfo":"鑿滃崟鍚嶇О蹇呴』鍦�2鑷�10瀛楃涔嬮棿",
+ "show": true
+ },
+ {
+ "code":"url",
+ "cnCode":"鑿滃崟鍦板潃",
+ "desc":"蹇呭~锛岃鑿滃崟鑿滃崟鍦板潃",
+ "required":true,
+ "hasDefaultValue":false,
+ "inputType":"input",
+ "limit":"maxin",
+ "limitParam":"2,10",
+ "limitErrInfo":"鑿滃崟鍚嶇О蹇呴』鍦�2鑷�10瀛楃涔嬮棿",
+ "show": true
+ },
+ {
+ "code":"seq",
+ "cnCode":"搴忓垪",
+ "desc":"蹇呭~锛岃濉啓搴忓垪",
+ "required":true,
+ "hasDefaultValue":false,
+ "inputType":"input",
+ "limit":"num",
+ "limitParam":"",
+ "limitErrInfo":"搴忓垪蹇呴』涓烘暣鏁�",
+ "show": true
+ },
+ {
+ "code":"isShow",
+ "cnCode":"鑿滃崟鏄剧ず",
+ "desc":"蹇呭~锛岃閫夋嫨鏄惁鏄剧ず鑿滃崟",
+ "required":true,
+ "hasDefaultValue":false,
+ "inputType":"select",
+ "selectValue":"Y,N",
+ "selectValueName":"鏄剧ず鑿滃崟,涓嶆樉绀鸿彍鍗�",
+ "limit":"maxin",
+ "limitParam":"1,12",
+ "limitErrInfo":"鑿滃崟鏄剧ず閿欒",
+ "show": true
+ },
+ {
+ "code":"description",
+ "cnCode":"鎻忚堪",
+ "desc":"鍙~锛岃濉啓鎻忚堪",
+ "required":false,
+ "hasDefaultValue":false,
+ "defaultValue":"",
+ "inputType":"textarea",
+ "limit":"maxLength",
+ "limitParam":"200",
+ "limitErrInfo":"澶囨敞鍐呭涓嶈兘瓒呰繃200",
+ "show": false
+ }
+ ]
+ },
+ "addPrivilegeView": {
+ "templateName":"鏉冮檺淇℃伅",
+ "templateCode":"addPrivilege",
+ "package": "privilegePackage",
+ "columns":[
+ {
+ "code":"name",
+ "cnCode":"鏉冮檺鍚嶇О",
+ "desc":"蹇呭~锛岃濉啓鏉冮檺鍚嶇О",
+ "required":true,
+ "hasDefaultValue":false,
+ "inputType":"input",
+ "limit":"maxin",
+ "limitParam":"2,10",
+ "limitErrInfo":"鏉冮檺鍚嶇О蹇呴』鍦�2鑷�10瀛楃涔嬮棿",
+ "show": true
+ },
+ {
+ "code":"domain",
+ "cnCode":"鍟嗘埛绫诲瀷",
+ "desc":"蹇呭~锛岃閫夋嫨鍟嗘埛绫诲瀷",
+ "required":true,
+ "hasDefaultValue":false,
+ "inputType":"select",
+ "selectValue":"800900000001,800900000002,800900000003,800900000000",
+ "selectValueName":"杩愯惀鍥㈤槦,浠g悊鍟�,鐗╀笟,寮�鍙戝洟闃�",
+ "limit":"maxin",
+ "limitParam":"1,12",
+ "limitErrInfo":"鍟嗘埛绫诲瀷閿欒",
+ "show": true
+ },
+ {
+ "code":"description",
+ "cnCode":"鎻忚堪",
+ "desc":"鍙~锛岃濉啓鎻忚堪",
+ "required":false,
+ "hasDefaultValue":false,
+ "defaultValue":"",
+ "inputType":"textarea",
+ "limit":"maxLength",
+ "limitParam":"200",
+ "limitErrInfo":"澶囨敞鍐呭涓嶈兘瓒呰繃200",
+ "show": false
+ }
+ ]
}
- ,
-
- {
- "code":"url",
- "cnCode":"璋冪敤鍦板潃",
- "desc":"鍙~锛岃濉啓璋冪敤鍦板潃",
- "required":false,
- "hasDefaultValue":true,
- "defaultValue":"http://order-service/orderApi/service",
- "inputType":"input",
- "limit":"maxLength",
- "limitParam":"200",
- "limitErrInfo":"璋冪敤鍦板潃涓嶈兘瓒呰繃200"
- },
- {
- "code":"method",
- "cnCode":"璋冪敤鏂瑰紡",
- "desc":"蹇呭~锛岃濉啓璋冪敤鏂瑰紡",
- "required":true,
- "hasDefaultValue":false,
- "inputType":"select",
- "selectValue":"GET,POST",
- "selectValueName":"http get,http post",
- "limit":"maxLength",
- "limitParam":"50",
- "limitErrInfo":"璋冪敤鏂瑰紡涓嶈兘瓒呰繃50"
- },
- {
- "code":"timeout",
- "cnCode":"瓒呮椂鏃堕棿",
- "desc":"蹇呭~锛岃濉啓瓒呮椂鏃堕棿",
- "required":true,
- "hasDefaultValue":true,
- "defaultValue":"60",
- "inputType":"input",
- "limit":"num",
- "limitParam":"",
- "limitErrInfo":"瓒呮椂鏃堕棿蹇呴』涓烘暟瀛�"
- },
- {
- "code":"retryCount",
- "cnCode":"閲嶈瘯娆℃暟",
- "desc":"蹇呭~锛岃濉啓閲嶈瘯娆℃暟",
- "required":true,
- "hasDefaultValue":true,
- "defaultValue":"3",
- "inputType":"input",
- "limit":"num",
- "limitParam":"",
- "limitErrInfo":"閲嶈瘯娆℃暟蹇呴』涓烘暟瀛�"
- },
- {
- "code":"provideAppId",
- "cnCode":"鎻愪緵鏈嶅姟",
- "desc":"蹇呭~锛岃濉啓鎻愪緵鏈嶅姟",
- "required":true,
- "hasDefaultValue":true,
- "defaultValue":"8000418002",
- "inputType":"none",
- "limit":"num",
- "limitParam":"",
- "limitErrInfo":"閲嶈瘯娆℃暟蹇呴』涓烘暟瀛�"
- }
-
- ]
+ }
}
\ No newline at end of file
--
Gitblit v1.8.0