更新
This commit is contained in:
parent
174a0cc263
commit
eb2bc039ea
@ -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<IPage<?>> list(DriveSchoolText driveSchoolText)
|
||||||
|
{
|
||||||
|
Page<DriveSchoolText> page = new Page<>(driveSchoolText.getPageNum(), driveSchoolText.getPageSize());
|
||||||
|
IPage<DriveSchoolText> driveSchoolTextIPage = driveSchoolTextService.selectDriveSchoolTextList(driveSchoolText, page);
|
||||||
|
return CommonResult.success(driveSchoolTextIPage);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user