New file |
| | |
| | | package com.dg.core.api; |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.dg.core.ResultData; |
| | | import com.dg.core.annotation.Authorization; |
| | | import com.dg.core.annotation.CurrentUser; |
| | | import com.dg.core.controller.BaseController; |
| | | import com.dg.core.db.gen.entity.AutomessageCommonProblem; |
| | | import com.dg.core.db.gen.entity.SysUser; |
| | | import com.dg.core.service.IAutomessageCommonProblemService; |
| | | import com.dg.core.util.TableDataInfo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.List; |
| | | |
| | | @Api(tags = {"常见问题小程序接口"}) |
| | | @RestController |
| | | @RequestMapping("/applets/automessageCommonProblem") |
| | | public class AutomessageCommonProblemAppletsController extends BaseController { |
| | | |
| | | @Resource |
| | | private IAutomessageCommonProblemService iAutomessageCommonProblemService; |
| | | |
| | | |
| | | /** |
| | | * 获取常见问题列表(不分页) |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "获取常见问题列表(不分页)",response = AutomessageCommonProblem.class) |
| | | @GetMapping("/selectList") |
| | | public ResultData selectList(){ |
| | | return ResultData.success(iAutomessageCommonProblemService.selectList()); |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取常见问题列表(不分页查找) |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "获取常见问题列表(不分页查找)",response = AutomessageCommonProblem.class) |
| | | @GetMapping("/queryList") |
| | | public ResultData queryList(@RequestParam(value = "title",required = false) String title){ |
| | | return ResultData.success(iAutomessageCommonProblemService.selectConfigList(title,null)); |
| | | } |
| | | |
| | | |
| | | |
| | | } |