You've already forked qlg.tsgz.moe
							
							TradeRule后台接口,待对接
This commit is contained in:
		| @@ -20,4 +20,50 @@ class TradeRule extends Base | ||||
|         $rs = $m->pageQuery(); | ||||
|         return WSTGrid($rs); | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 获取文章 | ||||
|      */ | ||||
|     public function get(){ | ||||
|         $m = new M(); | ||||
|         $rs = $m->get(Input("post.id/d",0)); | ||||
|         return $rs; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 新增 | ||||
|      */ | ||||
|     public function add(){ | ||||
|         $m = new M(); | ||||
|         $rs = $m->add(); | ||||
|         return $rs; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 编辑 | ||||
|      */ | ||||
|     public function edit(){ | ||||
|         $m = new M(); | ||||
|         $rs = $m->edit(); | ||||
|         return $rs; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 删除 | ||||
|      */ | ||||
|     public function del(){ | ||||
|         $m = new M(); | ||||
|         $rs = $m->del(); | ||||
|         return $rs; | ||||
|     } | ||||
|  | ||||
|     /** | ||||
|      * 批量删除 | ||||
|      */ | ||||
|     public function delByBatch(){ | ||||
|         $m = new M(); | ||||
|         $rs = $m->delByBatch(); | ||||
|         return $rs; | ||||
|     } | ||||
|  | ||||
| } | ||||
		Reference in New Issue
	
	Block a user