title = '配送省份管理'; $this->_query($this->table)->like('title')->equal('status')->dateBetween('create_at')->order('sort asc,id desc')->page(); } /** * 添加配送省份 */ public function add() { $this->applyCsrfToken(); $this->_form($this->table, 'form'); } /** * 编辑配送省份 */ public function edit() { $this->applyCsrfToken(); $this->_form($this->table, 'form'); } /** * 启用配送省份 */ public function resume() { $this->applyCsrfToken(); $this->_save($this->table, ['status' => '1']); } /** * 禁用配送省份 */ public function forbid() { $this->applyCsrfToken(); $this->_save($this->table, ['status' => '0']); } /** * 删除配送省份 */ public function remove() { $this->applyCsrfToken(); $this->_delete($this->table); } }