<?php namespace app; class BaseService { protected function ok($data = null) { return new \SResult(true,null, $data); } protected function fail($message) { return new \SResult(false,$message,null); } }