forked from php-danfu.shenzhenbenwo.com

lefengyang
2025-09-10 9753a88eceb52a0f2e3084cf72f3474d2d7d7f1b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
    /**
     * 删除
     * @param $id
     * @return \think\Response
     * @date {%DATE%}
     */
    public function delete($id)
    {
        if (!$id) {
            return app('json')->fail(100100);
        }
 
        if ($this->service->destroy((int)$id)) {
            return app('json')->success(100002);
        } else {
            return app('json')->success(100008);
        }
    }