|
@@ -2,7 +2,44 @@ |
|
@@ -2,7 +2,44 @@ |
|
2
|
|
2
|
|
|
3
|
namespace App\Http\Logic\Bside\Setting;
|
3
|
namespace App\Http\Logic\Bside\Setting;
|
|
4
|
|
4
|
|
|
5
|
-class ProofreadingLogic
|
5
|
+use App\Http\Logic\Bside\BaseLogic;
|
|
|
|
6
|
+use App\Models\WebSetting\Proofreading;
|
|
|
|
7
|
+
|
|
|
|
8
|
+class ProofreadingLogic extends BaseLogic
|
|
6
|
{
|
9
|
{
|
|
|
|
10
|
+ public function __construct()
|
|
|
|
11
|
+ {
|
|
|
|
12
|
+ parent::__construct();
|
|
|
|
13
|
+ $this->model = new Proofreading();
|
|
|
|
14
|
+ $this->param = $this->requestAll;
|
|
|
|
15
|
+ }
|
|
|
|
16
|
+
|
|
|
|
17
|
+ /**
|
|
|
|
18
|
+ * @name :(校队列表)proofreadingList
|
|
|
|
19
|
+ * @author :lyh
|
|
|
|
20
|
+ * @method :post
|
|
|
|
21
|
+ * @time :2023/6/12 11:06
|
|
|
|
22
|
+ */
|
|
|
|
23
|
+ public function proofreadingList($map,$p,$row,$order = 'id',$filed = ['*']){
|
|
|
|
24
|
+ $list = $this->model->lists($map,$p,$row,$order,$filed);
|
|
|
|
25
|
+ return $this->success($list);
|
|
|
|
26
|
+ }
|
|
7
|
|
27
|
|
|
|
|
28
|
+ /**
|
|
|
|
29
|
+ * @name :(保存翻译校队)proofreadingSave
|
|
|
|
30
|
+ * @author :lyh
|
|
|
|
31
|
+ * @method :post
|
|
|
|
32
|
+ * @time :2023/6/12 11:03
|
|
|
|
33
|
+ */
|
|
|
|
34
|
+ public function proofreadingSave(){
|
|
|
|
35
|
+ if(isset($this->param['id'])){
|
|
|
|
36
|
+ $rs = $this->model->edit($this->param,['id'=>$this->param['id']]);
|
|
|
|
37
|
+ }else{
|
|
|
|
38
|
+ $rs = $this->model->add($this->param);
|
|
|
|
39
|
+ }
|
|
|
|
40
|
+ if($rs === false){
|
|
|
|
41
|
+ $this->fail('error');
|
|
|
|
42
|
+ }
|
|
|
|
43
|
+ return $this->success();
|
|
|
|
44
|
+ }
|
|
8
|
} |
45
|
} |