package com.whyc.controller; import com.whyc.dto.Response; import com.whyc.pojo.db_user.OperationLog; import com.whyc.service.OperationLogService; import io.swagger.annotations.Api; import io.swagger.annotations.ApiOperation; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @RestController @RequestMapping("operationLog") @Api(tags = "操作日志") public class OperationLogController { @Autowired private OperationLogService service; @PostMapping("getPage") @ApiOperation("分页-查询") public Response getPage(@RequestBody OperationLog param){ return service.getPage(param); } @GetMapping("getTypes") @ApiOperation("事件类型-查询") public Response getEnumTypes(){ return service.getEnumTypes(); } }