|
@@ -0,0 +1,101 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+return array
|
|
|
+(
|
|
|
+
|
|
|
+ 'name' => 'col',
|
|
|
+
|
|
|
+ 'lang' => '维度管理',
|
|
|
+ 'order' => -10,
|
|
|
+ 'check' => 'key',
|
|
|
+ 'end' => array
|
|
|
+ (
|
|
|
+ 'insert' => 'stat/data.create',
|
|
|
+ 'update' => 'stat/data.create',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'struct' => array
|
|
|
+ (
|
|
|
+ 'id' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => 'ID',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+
|
|
|
+ 'order' => 'desc',
|
|
|
+ 'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'name' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-60',
|
|
|
+ 'name' => '维度名称',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '请输入维度名称',
|
|
|
+ 'match' => 'is_string',
|
|
|
+ 'update' => 'text',
|
|
|
+ 'search' => 'fulltext',
|
|
|
+ 'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'key' => array
|
|
|
+ (
|
|
|
+ 'type' => 'varchar-60',
|
|
|
+ 'name' => '维度key',
|
|
|
+ 'default' => '',
|
|
|
+ 'desc' => '请输入维度key',
|
|
|
+ 'match' => 'is_string',
|
|
|
+ 'update' => 'text',
|
|
|
+ 'search' => 'fulltext',
|
|
|
+ 'list' => true,
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'state' => array
|
|
|
+ (
|
|
|
+ 'type' => 'tinyint-1',
|
|
|
+ 'name' => '状态',
|
|
|
+ 'default' => '1',
|
|
|
+ 'desc' => '请选择状态',
|
|
|
+ 'match' => 'is_numeric',
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'cdate' => array
|
|
|
+ (
|
|
|
+ 'type' => 'int-11',
|
|
|
+ 'name' => '录入时间',
|
|
|
+ 'match' => array('is_numeric', time()),
|
|
|
+ 'desc' => '',
|
|
|
+
|
|
|
+ 'insert' => true,
|
|
|
+ 'list' => 'date("Y-m-d H:i:s", {cdate})',
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+
|
|
|
+ 'manage' => array
|
|
|
+ (
|
|
|
+
|
|
|
+ ),
|
|
|
+
|
|
|
+
|
|
|
+ 'default' => array
|
|
|
+ (
|
|
|
+ 'col' => 'name,key,state,cdate',
|
|
|
+ 'value' => array
|
|
|
+ (
|
|
|
+ '"用户信息","ua",1,' . time(),
|
|
|
+ '"是否微信","ck_wechat",1,' . time(),
|
|
|
+ '"是否手机","ck_mobile",1,' . time(),
|
|
|
+ '"ip地址","ip",1,' . time(),
|
|
|
+ '"操作系统","os",1,' . time(),
|
|
|
+ '"浏览器","browser",1,' . time(),
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+
|
|
|
+
|
|
|
+ 'request' => array
|
|
|
+ (
|
|
|
+
|
|
|
+ ),
|
|
|
+);
|