From eb2bc039eabdce246ff27536b92336d4f69bf9c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=85=81=E6=9E=9E?= <3422692813@qq.com> Date: Wed, 9 Apr 2025 13:06:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/AppDriveSchoolTextController.java | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/controller/app/AppDriveSchoolTextController.java diff --git a/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/controller/app/AppDriveSchoolTextController.java b/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/controller/app/AppDriveSchoolTextController.java new file mode 100644 index 00000000..d7c81977 --- /dev/null +++ b/dl-module-jx/src/main/java/cn/iocoder/yudao/module/jx/controller/app/AppDriveSchoolTextController.java @@ -0,0 +1,38 @@ +package cn.iocoder.yudao.module.jx.controller.app; + + +import cn.iocoder.yudao.framework.common.pojo.CommonResult; +import cn.iocoder.yudao.framework.tenant.core.aop.TenantIgnore; +import cn.iocoder.yudao.module.jx.core.controller.BaseController; +import cn.iocoder.yudao.module.jx.domain.DriveSchoolText; +import cn.iocoder.yudao.module.jx.service.IDriveSchoolTextService; +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; + +/** + * 驾校公告Controller + * + * @author jzy + * @date 2024-04-16 + */ +@RestController +@RequestMapping("/drivingSchool/text") +public class AppDriveSchoolTextController extends BaseController +{ + @Autowired + private IDriveSchoolTextService driveSchoolTextService; + + /** + * 查询驾校公告列表 + */ + @TenantIgnore + @GetMapping("/list") + public CommonResult> list(DriveSchoolText driveSchoolText) + { + Page page = new Page<>(driveSchoolText.getPageNum(), driveSchoolText.getPageSize()); + IPage driveSchoolTextIPage = driveSchoolTextService.selectDriveSchoolTextList(driveSchoolText, page); + return CommonResult.success(driveSchoolTextIPage); + } +}