33 lines
1.0 KiB
Java
33 lines
1.0 KiB
Java
package com.ruoyi.web.app;
|
|
|
|
import com.ruoyi.bst.article.domain.ArticleQuery;
|
|
import com.ruoyi.bst.article.service.ArticleService;
|
|
import com.ruoyi.common.annotation.Anonymous;
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
@RestController
|
|
@RequestMapping("/app/article")
|
|
public class AppArticleController extends BaseController {
|
|
|
|
|
|
@Autowired
|
|
private ArticleService articleService;
|
|
|
|
@ApiOperation("租/用车指南")
|
|
@GetMapping("/guide")
|
|
@Anonymous
|
|
public AjaxResult getGuide(ArticleQuery articleQuery) {
|
|
startPage();
|
|
return AjaxResult.success(articleService.selectArticleList(articleQuery));
|
|
}
|
|
|
|
}
|