ApiAdmin/Application/Admin/Model/ApiStoreAuthModel.class.php
2017-05-01 16:47:50 +08:00

20 lines
384 B
PHP

<?php
/**
* @since 2017-04-22
* @author zhaoxiang <zhaoxiang051405@gmail.com>
*/
namespace Admin\Model;
class ApiStoreAuthModel extends BaseModel {
public function open( $where ){
return $this->where( $where )->save( array('status' => 1) );
}
public function close( $where ){
return $this->where( $where )->save( array('status' => 0) );
}
}