mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
23 lines
485 B
PHP
23 lines
485 B
PHP
<?php
|
|
/**
|
|
*
|
|
* @since 2017/03/07 创建
|
|
* @author zhaoxiang <zhaoxiang051405@gmail.com>
|
|
*/
|
|
|
|
namespace Admin\Model;
|
|
|
|
|
|
class ApiAppModel extends BaseModel {
|
|
public function open( $where ){
|
|
return $this->where( $where )->save( array('app_status' => 1) );
|
|
}
|
|
|
|
public function close( $where ){
|
|
return $this->where( $where )->save( array('app_status' => 0) );
|
|
}
|
|
|
|
public function del( $where ){
|
|
return $this->where( $where )->delete();
|
|
}
|
|
} |