dataLists(new TeamasterAccountLogLists()); } /** * @notes 添加 * @return \think\response\Json * @author likeadmin * @date 2026/02/02 02:11 */ public function add() { $params = (new TeamasterAccountLogValidate())->post()->goCheck('add'); $result = TeamasterAccountLogLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(TeamasterAccountLogLogic::getError()); } /** * @notes 编辑 * @return \think\response\Json * @author likeadmin * @date 2026/02/02 02:11 */ public function edit() { $params = (new TeamasterAccountLogValidate())->post()->goCheck('edit'); $result = TeamasterAccountLogLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(TeamasterAccountLogLogic::getError()); } /** * @notes 删除 * @return \think\response\Json * @author likeadmin * @date 2026/02/02 02:11 */ public function delete() { $params = (new TeamasterAccountLogValidate())->post()->goCheck('delete'); TeamasterAccountLogLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取详情 * @return \think\response\Json * @author likeadmin * @date 2026/02/02 02:11 */ public function detail() { $params = (new TeamasterAccountLogValidate())->goCheck('detail'); $result = TeamasterAccountLogLogic::detail($params); return $this->data($result); } /** * @notes 获取统计数据 * @return array|\think\response\Json * @author 胥聪 * @date 2026/02/03 2:53 */ public function statistics() { $params = $this->request->post(); $params['action'] = 2; $params['c_type'] = 5; $tixian = TeamasterAccountLogLogic::allTotal($params); $params['action'] = 1; $params['c_type'] = 1; $yueding = TeamasterAccountLogLogic::allTotal($params); $params['c_type'] = 2; $xuding = TeamasterAccountLogLogic::allTotal($params); $data['data']['tixian'] = $tixian; $data['data']['yueding'] = $yueding; $data['data']['xuding'] = $xuding; $data['code'] = 1; return $data; } }