| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 | 
							- <?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',
 
- 			//'search'	=> 'order',
 
- 			'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时才生效
 
- 			'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 请求接口定义
 
- 	'request' => array
 
- 	(
 
- 		
 
- 	),
 
- );
 
 
  |