登录相关
| 25 | * 登录相关 |
| 26 | */ |
| 27 | @RequestMapping("config") |
| 28 | @RestController |
| 29 | public class ConfigController{ |
| 30 | |
| 31 | @Autowired |
| 32 | private ConfigService configService; |
| 33 | |
| 34 | /** |
| 35 | * 列表 |
| 36 | */ |
| 37 | @RequestMapping("/page") |
| 38 | public R page(@RequestParam Map<String, Object> params,ConfigEntity config){ |
| 39 | EntityWrapper<ConfigEntity> ew = new EntityWrapper<ConfigEntity>(); |
| 40 | PageUtils page = configService.queryPage(params); |
| 41 | return R.ok().put("data", page); |
| 42 | } |
| 43 | |
| 44 | /** |
| 45 | * 列表 |
| 46 | */ |
| 47 | @IgnoreAuth |
| 48 | @RequestMapping("/list") |
| 49 | public R list(@RequestParam Map<String, Object> params,ConfigEntity config){ |
| 50 | EntityWrapper<ConfigEntity> ew = new EntityWrapper<ConfigEntity>(); |
| 51 | PageUtils page = configService.queryPage(params); |
| 52 | return R.ok().put("data", page); |
| 53 | } |
| 54 | |
| 55 | /** |
| 56 | * 信息 |
| 57 | */ |
| 58 | @RequestMapping("/info/{id}") |
| 59 | public R info(@PathVariable("id") String id){ |
| 60 | ConfigEntity config = configService.selectById(id); |
| 61 | return R.ok().put("data", config); |
| 62 | } |
| 63 | |
| 64 | /** |
| 65 | * 详情 |
| 66 | */ |
| 67 | @IgnoreAuth |
| 68 | @RequestMapping("/detail/{id}") |
| 69 | public R detail(@PathVariable("id") String id){ |
| 70 | ConfigEntity config = configService.selectById(id); |
| 71 | return R.ok().put("data", config); |
| 72 | } |
| 73 | |
| 74 | /** |
| 75 | * 根据name获取信息 |
| 76 | */ |
| 77 | @RequestMapping("/info") |
| 78 | public R infoByName(@RequestParam String name){ |
| 79 | ConfigEntity config = configService.selectOne(new EntityWrapper<ConfigEntity>().eq("name", "faceFile")); |
| 80 | return R.ok().put("data", config); |
| 81 | } |
| 82 | |
| 83 | /** |
| 84 | * 保存 |
nothing calls this directly
no outgoing calls
no test coverage detected