package com.whdc.controller; import com.whdc.model.entity.Versions; import com.whdc.service.IVersionsService; import com.whdc.utils.ResultJson; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; /** * @author xusan * @date 2024-05-11 */ @Slf4j @Api(tags = "通讯录日志 - Controller") @RestController @RequestMapping("/versions") public class VersionsController { @Autowired private IVersionsService service; @ApiOperation(value = "查询所有") @PostMapping(value = "find") public ResultJson find(@RequestBody Versions dto) { return ResultJson.ok(service.find(dto)); } @ApiOperation(value = "分页查询") @PostMapping(value = "page") public ResultJson page(@RequestBody Versions dto) { return ResultJson.ok(service.page(dto)); } }