package com.artfess.uc.controller; import com.artfess.base.annotation.ApiGroup; import com.artfess.base.constants.ApiGroupConsts; import com.artfess.base.controller.BaseController; import com.artfess.base.model.CommonResult; import com.artfess.base.query.PageList; import com.artfess.base.query.QueryFilter; import com.artfess.uc.manager.OperateLogManager; import com.artfess.uc.model.OperateLog; import io.swagger.annotations.Api; import io.swagger.annotations.ApiParam; import org.springframework.web.bind.annotation.RequestBody; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RestController; import javax.annotation.Resource; /** * 操作日志接口 * @author zhangxw * */ @RestController @RequestMapping("/api/operateLog/v1/") @Api(tags="接口操作日志") @ApiGroup(group= {ApiGroupConsts.GROUP_UC}) public class OperateLogController extends BaseController { @Resource OperateLogManager operateLogService; /** * 查询日志列表 * @param filter * @return * @throws Exception */ @RequestMapping(value="operateLogs/getLogPage",method=RequestMethod.POST, produces = { "application/json; charset=utf-8" }) public PageList getLogPage(@ApiParam(name = "queryFilter", value = "查询参数", required = true) @RequestBody QueryFilter queryFilter) throws Exception{ PageList query = operateLogService.query(queryFilter); return query; } /** * 根据id删除日志 * @param filter * @return * @throws Exception */ @RequestMapping(value="operateLogs/removeByIds",method=RequestMethod.POST, produces = { "application/json; charset=utf-8" }) public CommonResult removeByIds(@ApiParam(name = "ids", value = "id字符串,多个用“,”分割", required = true) @RequestBody String ids) throws Exception{ return operateLogService.removeByIdStr(ids); } }