dataLists(new GroupActivityCategoryLists()); } /** * @notes 添加 * @return \think\response\Json * @author likeadmin * @date 2025/03/13 10:31 */ public function add() { $params = (new GroupActivityCategoryValidate())->post()->goCheck('add'); $result = GroupActivityCategoryLogic::add($params); if (true === $result) { return $this->success('添加成功', [], 1, 1); } return $this->fail(GroupActivityCategoryLogic::getError()); } /** * @notes 编辑 * @return \think\response\Json * @author likeadmin * @date 2025/03/13 10:31 */ public function edit() { $params = (new GroupActivityCategoryValidate())->post()->goCheck('edit'); $result = GroupActivityCategoryLogic::edit($params); if (true === $result) { return $this->success('编辑成功', [], 1, 1); } return $this->fail(GroupActivityCategoryLogic::getError()); } /** * @notes 删除 * @return \think\response\Json * @author likeadmin * @date 2025/03/13 10:31 */ public function delete() { $params = (new GroupActivityCategoryValidate())->post()->goCheck('delete'); GroupActivityCategoryLogic::delete($params); return $this->success('删除成功', [], 1, 1); } /** * @notes 获取详情 * @return \think\response\Json * @author likeadmin * @date 2025/03/13 10:31 */ public function detail() { $params = (new GroupActivityCategoryValidate())->goCheck('detail'); $result = GroupActivityCategoryLogic::detail($params); return $this->data($result); } /** * 获取活动分类二维码 */ public function getQRCode() { $params = (new GroupActivityCategoryValidate())->post()->goCheck('detail'); return $this->success('',['qrcode'=>GroupActivityCategoryLogic::getQRCode($params, $this->request->domain())], 1, 1); } }