|
...
|
...
|
@@ -2,7 +2,44 @@ |
|
|
|
|
|
|
|
namespace App\Http\Logic\Bside\Setting;
|
|
|
|
|
|
|
|
class ProofreadingLogic
|
|
|
|
use App\Http\Logic\Bside\BaseLogic;
|
|
|
|
use App\Models\WebSetting\Proofreading;
|
|
|
|
|
|
|
|
class ProofreadingLogic extends BaseLogic
|
|
|
|
{
|
|
|
|
public function __construct()
|
|
|
|
{
|
|
|
|
parent::__construct();
|
|
|
|
$this->model = new Proofreading();
|
|
|
|
$this->param = $this->requestAll;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @name :(校队列表)proofreadingList
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/6/12 11:06
|
|
|
|
*/
|
|
|
|
public function proofreadingList($map,$p,$row,$order = 'id',$filed = ['*']){
|
|
|
|
$list = $this->model->lists($map,$p,$row,$order,$filed);
|
|
|
|
return $this->success($list);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @name :(保存翻译校队)proofreadingSave
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/6/12 11:03
|
|
|
|
*/
|
|
|
|
public function proofreadingSave(){
|
|
|
|
if(isset($this->param['id'])){
|
|
|
|
$rs = $this->model->edit($this->param,['id'=>$this->param['id']]);
|
|
|
|
}else{
|
|
|
|
$rs = $this->model->add($this->param);
|
|
|
|
}
|
|
|
|
if($rs === false){
|
|
|
|
$this->fail('error');
|
|
|
|
}
|
|
|
|
return $this->success();
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|