|
@@ -13,9 +13,7 @@ import com.yonge.cooleshow.common.controller.BaseController;
|
|
|
import com.yonge.cooleshow.common.entity.HttpResponseResult;
|
|
|
import com.yonge.cooleshow.common.page.PageInfo;
|
|
|
import com.yonge.toolset.utils.string.StringUtil;
|
|
|
-import io.swagger.annotations.Api;
|
|
|
-import io.swagger.annotations.ApiOperation;
|
|
|
-import io.swagger.annotations.ApiParam;
|
|
|
+import io.swagger.annotations.*;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
@@ -33,9 +31,12 @@ public class TeacherAuthEntryRecordController extends BaseController {
|
|
|
/**
|
|
|
* 查询单条详情
|
|
|
*/
|
|
|
- @GetMapping("/detail")
|
|
|
- @ApiOperation(value = "详情", notes = "传入teacherAuthEntryRecord")
|
|
|
- public HttpResponseResult<TeacherAuthEntryRecordVo> detail(@ApiParam(value = "主键", required = true) @RequestParam Long id) {
|
|
|
+ @GetMapping("/detail/{id}")
|
|
|
+ @ApiOperation(value = "详情", notes = "传入id")
|
|
|
+ @ApiImplicitParams({
|
|
|
+ @ApiImplicitParam(name = "id", value = "id", paramType = "path", dataType = "long", required = true),
|
|
|
+ })
|
|
|
+ public HttpResponseResult<TeacherAuthEntryRecordVo> detail(@PathVariable("id") Long id) {
|
|
|
TeacherAuthEntryRecordVo detail = teacherAuthEntryRecordService.detail(id);
|
|
|
return succeed(detail);
|
|
|
}
|
|
@@ -45,8 +46,8 @@ public class TeacherAuthEntryRecordController extends BaseController {
|
|
|
*/
|
|
|
@PostMapping("/page")
|
|
|
@ApiOperation(value = "查询分页", notes = "传入teacherAuthEntryRecord")
|
|
|
- public HttpResponseResult<PageInfo<TeacherAuthEntryRecordVo>> page(AuthEntryRecordSearch search, Query query) {
|
|
|
- IPage<TeacherAuthEntryRecordVo> pages = teacherAuthEntryRecordService.selectPage(Condition.getPage(query), search);
|
|
|
+ public HttpResponseResult<PageInfo<TeacherAuthEntryRecordVo>> page(@RequestBody AuthEntryRecordSearch search) {
|
|
|
+ IPage<TeacherAuthEntryRecordVo> pages = teacherAuthEntryRecordService.selectPage(Condition.getPage(search), search);
|
|
|
return succeed(Condition.pageInfo(pages));
|
|
|
}
|
|
|
|