'ranking', # 显示给用户看的名称 'lang' => '积分榜单', # 是否显示在后台菜单 'order' => 1, # 数据结构 'struct' => array ( 'id' => array ( 'type' => 'int-11', 'name' => 'ID', 'default' => '', 'desc' => '', 'match' => 'is_numeric', 'list' => true, ), 'user_id' => array ( 'type' => 'int-11', 'name' => '用户参与id', 'default' => '', 'desc' => '用户参与id', 'match' => 'is_numeric', //'list' => true, ), 'uid' => array ( 'type' => 'int-11', 'name' => '用户', 'default' => '', 'desc' => '用户', 'match' => 'is_numeric', 'list' => true, ), 'score' => array ( 'type' => 'int-11', 'name' => '本次分数', 'default' => '0', 'desc' => '本次分数', 'match' => 'is_numeric', 'update' => 'text', 'order' => 'desc', 'list' => true, ), 'times' => array ( 'type' => 'int-11', 'name' => '本次答题次数', 'default' => '0', 'desc' => '本次答题次数', 'match' => 'is_string', 'update' => 'text', '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' => '', 'search' => 'date', 'order' => 'desc', 'list' => 'date("Y-m-d H:i:s", {cdate})', ), ), 'manage' => array ( 'insert' => false, 'edit' => false, 'delete' => false, ), 'request' => array ( ) );