<?php
namespace We7\Table\Account;
class Toutiaoapp extends \We7Table {
protected $tableName = 'account_toutiaoapp';
protected $primaryKey = 'acid';
protected $field = array(
'uniacid',
'name',
'appid',
'key',
'secret',
'description',
);
protected $default = array(
'uniacid' => '',
'name' => '',
'appid' => '',
'key' => '',
'secret' => '',
'description' => '',
);
public function getAccount($acid) {
return $this->query->where('acid', $acid)->get();
}
}