| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134 | 
							- <?php
 
- /**
 
-  * token
 
-  */
 
- return array
 
- (
 
- 	# 表名
 
- 	'name' => 'oauth',
 
- 	# 显示给用户看的名称
 
- 	'lang' => 'oauth数据表',
 
- 	'menu' => false,
 
- 	# 数据结构
 
- 	'struct' => array
 
- 	(
 
- 		'id' 		=> array
 
- 		(
 
- 			'type' 		=> 'int-11',
 
- 			'name' 		=> 'ID',
 
- 			'default' 	=> '',
 
- 			'desc' 		=> '',
 
- 			'match' 	=> 'is_numeric',
 
- 			'search'	=> 'order',
 
- 			'list'		=> true,
 
- 		),
 
- 		'project_id'		=> array
 
- 		(
 
- 			'type' 		=> 'int-11',
 
- 			'name' 		=> '项目',
 
- 			'default' 	=> '',
 
- 			'desc' 		=> '请输入项目',
 
- 			'match' 	=> 'is_numeric',
 
- 			//'search'	=> 'order,fulltext',
 
- 			'update'	=> 'text',
 
- 			'list'		=> '{project_id} > 0 ? Dever::load("main/project-one#name", {project_id}) : "未知"',
 
- 		),
 
- 		'openid'		=> array
 
- 		(
 
- 			'type' 		=> 'varchar-60',
 
- 			'name' 		=> '用户id-如果是第三方平台,则为appid',
 
- 			'default' 	=> '',
 
- 			'desc' 		=> '用户id',
 
- 			'match' 	=> 'is_string',
 
- 			//'search'	=> 'order,fulltext',
 
- 			'update'	=> 'text',
 
- 			'list'		=> true,
 
- 		),
 
- 		'unionid'		=> array
 
- 		(
 
- 			'type' 		=> 'varchar-60',
 
- 			'name' 		=> '用户唯一id-如果是第三方平台,则为appid',
 
- 			'default' 	=> '',
 
- 			'desc' 		=> '用户唯一id',
 
- 			'match' 	=> 'is_string',
 
- 			//'search'	=> 'order,fulltext',
 
- 			'update'	=> 'text',
 
- 			'list'		=> true,
 
- 		),
 
- 		
 
- 		'value'		=> array
 
- 		(
 
- 			'type' 		=> 'varchar-255',
 
- 			'name' 		=> 'token标识',
 
- 			'default' 	=> '',
 
- 			'desc' 		=> 'token标识',
 
- 			'match' 	=> 'is_string',
 
- 			'update'	=> 'text',
 
- 			'list'		=> true,
 
- 			'modal'		=> '查看',
 
- 		),
 
- 		'refresh'		=> array
 
- 		(
 
- 			'type' 		=> 'varchar-255',
 
- 			'name' 		=> 'refresh token标识',
 
- 			'default' 	=> '',
 
- 			'desc' 		=> 'refresh token标识',
 
- 			'match' 	=> 'is_string',
 
- 			'update'	=> 'text',
 
- 			'list'		=> true,
 
- 			'modal'		=> '查看',
 
- 		),
 
- 		
 
- 		'expires'		=> array
 
- 		(
 
- 			'type' 		=> 'int-11',
 
- 			'name' 		=> '过期时间',
 
- 			'default' 	=> '',
 
- 			'desc' 		=> '过期时间',
 
- 			'match' 	=> 'is_numeric',
 
- 			'update'	=> 'text',
 
- 			'list'		=> true,
 
- 		),
 
- 		
 
- 		'mdate'		=> array
 
- 		(
 
- 			'type' 		=> 'int-11',
 
- 			'name' 		=> '更新时间',
 
- 			'match' 	=> array('is_numeric', time()),
 
- 			'desc' 		=> '',
 
- 			'list'		=> 'date("Y-m-d H:i:s", {mdate})',
 
- 		),
 
- 		
 
- 		'state'		=> array
 
- 		(
 
- 			'type' 		=> 'tinyint-1',
 
- 			'name' 		=> '状态',
 
- 			'default' 	=> '1',
 
- 			'desc' 		=> '请选择状态',
 
- 		),
 
- 		
 
- 		'cdate'		=> array
 
- 		(
 
- 			'type' 		=> 'int-11',
 
- 			'name' 		=> '录入时间',
 
- 			'match' 	=> array('is_numeric', time()),
 
- 			'desc' 		=> '',
 
- 			# 只有insert时才生效
 
- 			'insert'	=> true,
 
- 		),
 
- 	),
 
- 	//'top' => 'main/project_id',
 
- 	'manage' => array
 
- 	(
 
- 		'delete' => false,
 
- 		'insert' => false,
 
- 		'edit' => false,
 
- 	),
 
- );
 
 
  |