吴学文
2019-07-06 8a524787c88a9128cc69af890d4181a01aad0e8c
java110-code-generator/src/main/resources/web/template_1.json
@@ -1,79 +1,67 @@
{
  "templateName":"小区",
  "templateCode":"community",
  "templateKey":"communityId",
  "templateKeyName":"小区ID",
  "templateName":"应用",
  "templateCode":"app",
  "templateKey":"appId",
  "templateKeyName":"应用Id",
  "columns":[
    {
      "code":"name",
      "cnCode":"小区名称",
      "desc":"必填,请填写小区名称",
      "cnCode":"应用名称",
      "desc":"必填,请填写应用名称",
      "required":true,
      "hasDefaultValue":false,
      "inputType":"input",
      "limit":"maxin",
      "limitParam":"10,20",
      "limitErrInfo":"小区名称必须在10至20字符之间"
      "limitParam":"2,50",
      "limitErrInfo":"应用名称必须在2至50字符之间"
    },
    {
      "code":"address",
      "cnCode":"小区地址",
      "desc":"必填,请填写小区地址",
      "required":true,
      "code":"securityCode",
      "cnCode":"秘钥",
      "desc":"可填,请填写秘钥,如果填写了需要加密传输",
      "required":false,
      "hasDefaultValue":false,
      "inputType":"input",
      "limit":"maxin",
      "limit":"maxLength",
      "limitParam":"64",
      "limitErrInfo":"秘钥太长超过64位"
    },
    {
      "code":"whileListIp",
      "cnCode":"白名单",
      "desc":"可填,请填写白名单IP,以,号分割",
      "required":false,
      "hasDefaultValue":false,
      "inputType":"input",
      "limit":"maxLength",
      "limitParam":"200",
      "limitErrInfo":"小区地址不能大于200个字符"
      "limitErrInfo":"白名单内容不能超过200"
    },
    {
      "code":"nearbyLandmarks",
      "cnCode":"附近地标",
      "desc":"必填,请填写小区附近地标",
      "required":true,
      "code":"blackListIp",
      "cnCode":"黑名单",
      "desc":"可填,请填写黑名单IP,以,号分割",
      "required":false,
      "hasDefaultValue":false,
      "defaultValue":"",
      "inputType":"input",
      "limit":"maxin",
      "limitParam":"50",
      "limitErrInfo":"小区附近地标不能大于50个字符"
      "limit":"maxLength",
      "limitParam":"200",
      "limitErrInfo":"黑名单内容不能超过200"
    },
    {
      "code":"cityCode",
      "cnCode":"城市编码",
      "desc":"",
      "required":false,
      "hasDefaultValue":true,
      "defaultValue":"0971",
      "inputType":"none",
      "limit":"maxin",
      "limitParam":"12",
      "limitErrInfo":"小区城市编码不能大于4个字符"
    },
    {
      "code":"mapX",
      "cnCode":"小区维度",
      "desc":"",
      "required":false,
      "hasDefaultValue":true,
      "defaultValue":"101.33",
      "inputType":"none",
      "limit":"maxin",
      "limitParam":"20",
      "limitErrInfo":"小区城市编码不能大于4个字符"
    },
    {
      "code":"mapY",
      "cnCode":"小区经度",
      "desc":"",
      "required":false,
      "hasDefaultValue":true,
      "defaultValue":"101.33",
      "inputType":"none",
      "limit":"maxin",
      "limitParam":"20",
      "limitErrInfo":"小区城市编码不能大于4个字符"
    }
    {
      "code":"remark",
      "cnCode":"备注",
      "desc":"可填,请填写备注",
      "required":false,
      "hasDefaultValue":false,
      "defaultValue":"",
      "inputType":"textarea",
      "limit":"maxLength",
      "limitParam":"200",
      "limitErrInfo":"备注内容不能超过200"
    }
  ]
}