| | |
| | | username: ${blade.datasource.dev.username} |
| | | password: ${blade.datasource.dev.password} |
| | | |
| | | oss: |
| | | enabled: true |
| | | name: minio |
| | | tenant-mode: false |
| | | endpoint: http://s16s652780.51mypc.cn:21403 |
| | | access-key: minioadmin |
| | | secret-key: minioadmin |
| | | bucket-name: jfpt |
| | | |
| | |
| | | */ |
| | | @RestController |
| | | @AllArgsConstructor |
| | | @CrossOrigin |
| | | @RequestMapping("healthcode/healthcode") |
| | | @Api(value = "", tags = "接口") |
| | | public class healthcodeController extends BladeController { |
| | |
| | | * 统计接口 |
| | | */ |
| | | @PostMapping("/selectCount") |
| | | public R selectCount(@RequestBody String type, HttpServletResponse response) { |
| | | response.setHeader("Access-Control-Allow-Origin", "*"); |
| | | response.setHeader("Access-Control-Allow-Methods", "POST, GET, OPTIONS, DELETE"); |
| | | response.setHeader("Access-Control-Allow-Credentials","true"); |
| | | public R selectCount(@RequestBody String type) { |
| | | List<Map<String, Object>> list = new ArrayList<>(); |
| | | Date now = new Date(); |
| | | Date time = new Date(now.getYear(), now.getMonth(), now.getDate()); |
| | |
| | | } |
| | | |
| | | @PostMapping("/updateInfo") |
| | | public R updateInfo(String id, String handleP, String handName, String handletype, String type, HttpServletResponse response) { |
| | | response.setHeader("Access-Control-Allow-Origin", "*"); |
| | | response.setHeader("Access-Control-Allow-Methods", "POST, GET, OPTIONS, DELETE"); |
| | | response.setHeader("Access-Control-Allow-Credentials","true"); |
| | | public R updateInfo(String id, String handleP, String handName, String handletype, String type) { |
| | | jingdanService.updateInfo(id, handleP, handName,handletype,type); |
| | | return R.success("修改成功"); |
| | | } |
| | |
| | | @PostMapping("/submit") |
| | | @ApiOperationSupport(order = 4) |
| | | @ApiOperation(value = "新增或修改", notes = "传入User") |
| | | @PreAuth(RoleConstant.HAS_ROLE_ADMIN) |
| | | //@PreAuth(RoleConstant.HAS_ROLE_ADMIN) |
| | | public R submit(@Valid @RequestBody User user) { |
| | | CacheUtil.clear(USER_CACHE); |
| | | return R.status(userService.submit(user)); |
| | |
| | | @PostMapping("/reset-password") |
| | | @ApiOperationSupport(order = 8) |
| | | @ApiOperation(value = "初始化密码", notes = "传入userId集合") |
| | | @PreAuth(RoleConstant.HAS_ROLE_ADMIN) |
| | | //@PreAuth(RoleConstant.HAS_ROLE_ADMIN) |
| | | public R resetPassword(@ApiParam(value = "userId集合", required = true) @RequestParam String userIds) { |
| | | boolean temp = userService.resetPassword(userIds); |
| | | return R.status(temp); |