1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
- namespace app\api\controller\v1;
- use app\api\controller\Base;
- use app\hander\HelpHander;
- class ImportantRecordAnnotation extends Base
- {
- // 新增/编辑
- public function save(){
- model('ImportantRecordAnnotation')->add();
- HelpHander::success([],'操作成功');
- }
- // 详情
- public function detail(){
- $id = input('id/d',0);
- $ret = model('ImportantRecordAnnotation')->info($id);
- HelpHander::success($ret);
- }
- // 列表
- public function list(){
- $id = input('id/d',0); // 节点记录id
- $ret = model('ImportantRecord')->lists($id);
- HelpHander::success($ret);
- }
- // 删除
- public function del(){
- $id = input('id/d',0);
- model('ImportantRecord')->del($id);
- HelpHander::success([],'操作成功');
- }
- }
|