【阴阳师】藏宝阁出号感悟

永远对利益保持谨慎,事前充分了解机制

public record emailDto(Long id, String email){}; @PostMapping(“email/request”) public BasicApiResponseEntity updateemail(@RequestBody emailDto dto) { if (dto.id == null || dto.email == null) { throw new BadRequestException(); } userService.updateUseremail(dto.id, dto.email); return BasicApiResponseEntity.ok(“succeed!”); }

Licensed under CC BY-NC-SA 4.0
Last updated on Sep 08, 2024 00:00 UTC
comments powered by Disqus
Built with Hugo
Theme Stack designed by Jimmy