1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <?php
- return array
- (
- # 表名
- 'name' => 'action',
- # 显示给用户看的名称
- 'lang' => '用户行为配置',
- 'order' => 10,
- 'check' => 'key',
- # 数据结构
- 'struct' => array
- (
- 'id' => array
- (
- 'type' => 'int-11',
- 'name' => 'ID',
- 'default' => '',
- 'desc' => '',
- 'match' => 'is_numeric',
- ),
-
- 'name' => array
- (
- 'type' => 'varchar-80',
- 'name' => '行为名称',
- 'default' => '',
- 'desc' => '请输入行为名称',
- 'match' => 'is_string',
- 'update' => 'text',
- 'search' => 'fulltext',
- 'list' => true,
- ),
- 'key' => array
- (
- 'type' => 'varchar-80',
- 'name' => '行为标识-用于程序中统计积分总数',
- 'default' => '',
- 'desc' => '行为标识',
- '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,
- ),
- ),
- 'manage' => array
- (
- 'insert' => false,
- 'delete' => false,
- 'edit' => false,
- # 列表
- 'list_button' => array
- (
- 'list' => array('未计算日志', '"action_log&search_option_action_id={id}&oper_parent=action"'),
- 'list1' => array('已计算日志', '"action_log_finish&search_option_action_id={id}&oper_parent=action"'),
- ),
- ),
- # request 请求接口定义
- 'request' => array
- (
- 'getData' => array
- (
- # 匹配的正则或函数 选填项
- 'option' => array
- (
- 'state' => 1,
- ),
- 'type' => 'all',
- 'order' => array('id' => 'desc'),
- 'col' => '*|id',
- ),
- )
- );
|