2024-05-13 10:07:53 +08:00
|
|
|
package com.whdc.controller;
|
|
|
|
|
|
|
|
|
|
|
2024-05-14 15:34:23 +08:00
|
|
|
import com.whdc.model.dto.CommDto;
|
2024-05-13 10:07:53 +08:00
|
|
|
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;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-05-14 15:34:23 +08:00
|
|
|
// @ApiOperation(value = "查询所有")
|
|
|
|
|
// @PostMapping(value = "find")
|
2024-05-13 10:07:53 +08:00
|
|
|
public ResultJson<Versions> find(@RequestBody Versions dto) {
|
|
|
|
|
|
|
|
|
|
return ResultJson.ok(service.find(dto));
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ApiOperation(value = "分页查询")
|
|
|
|
|
@PostMapping(value = "page")
|
2024-05-14 15:34:23 +08:00
|
|
|
public ResultJson<Versions> page(@RequestBody CommDto dto) {
|
2024-05-13 10:07:53 +08:00
|
|
|
|
|
|
|
|
return ResultJson.ok(service.page(dto));
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|