selectField = ["id", "name", "experience", "status", "created_at", "updated_at", "deleted_at"]; $this->queryField = ['name' => '=,status=']; $this->model = MallMembershipLevelModel::class; } /** * 获取店铺会员等级列表 * @return array * @throws ContainerExceptionInterface * @throws NotFoundExceptionInterface */ public function list(): array { return $this->getPageList(); } /** * 获取店铺会员等级详情 * @param $id * @return mixed * @throws Exception */ public function detail($id) { return $this->getDetail($id); } /** * 店铺会员等级下拉列表 * @return mixed */ public function option() { $this->optionField = ['id', 'name']; return $this->getOption(); } /** * 创建店铺会员等级 * @param $params * @return mixed * @throws Exception */ public function create($params): mixed { return $this->insert($params); } /** * 编辑店铺会员等级 * @param $id * @param $params * @return mixed * @throws Exception */ public function update($id, $params): mixed { return $this->save($id, $params); } /** * 删除店铺会员等级 * @param $ids * @return mixed|true * @throws Exception */ public function delete($ids): mixed { return $this->del($ids); } }