| | |
| | | package com.whyc.constant; |
| | | |
| | | import com.alibaba.fastjson.annotation.JSONType; |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | |
| | | /**用户操作类型*/ |
| | | @JsonFormat(shape = JsonFormat.Shape.OBJECT) |
| | | public enum UserOperation { |
| | | /**操作类型*/ |
| | | TYPE_LOGIN(1,"登录系统"), |
| | |
| | | public Response searchLog(@RequestParam int pageCurr, @RequestParam int pageSize){ |
| | | return service.searchLog(pageCurr,pageSize); |
| | | } |
| | | @ApiOperation(value = "操作对应关系") |
| | | @GetMapping("getOperate") |
| | | public Response getOperate(){ |
| | | return service.getOperate(); |
| | | } |
| | | } |
| | |
| | | PageInfo pageInfo=new PageInfo(list); |
| | | return new Response().setII(1,list.size()>0?true:false,pageInfo,"数据返回"); |
| | | } |
| | | //操作对应关系 |
| | | public Response getOperate() { |
| | | return new Response().setII(1,true,UserOperation.values(),"数据返回"); |
| | | } |
| | | } |