forked from php-danfu.shenzhenbenwo.com

lefengyang
2025-09-10 3c9dcaf742cfa3e3c2b0843c8752cf7713aaf1fc
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);
        }
    }