mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-07-25 14:06:11 +00:00
feat: fix compile
This commit is contained in:
@@ -17,7 +17,6 @@ import com.openisle.exception.FieldException;
|
|||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
import lombok.RequiredArgsConstructor;
|
import lombok.RequiredArgsConstructor;
|
||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
import org.springframework.security.core.Authentication;
|
|
||||||
import org.springframework.web.bind.annotation.*;
|
import org.springframework.web.bind.annotation.*;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -155,7 +154,7 @@ public class AuthController {
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (req.reason == null || req.reason.length() <= 20) {
|
if (req.getReason() == null || req.getReason().length() <= 20) {
|
||||||
return ResponseEntity.badRequest().body(Map.of(
|
return ResponseEntity.badRequest().body(Map.of(
|
||||||
"error", "Reason's length must longer than 20",
|
"error", "Reason's length must longer than 20",
|
||||||
"reason_code", "INVALID_CREDENTIALS"
|
"reason_code", "INVALID_CREDENTIALS"
|
||||||
|
|||||||
@@ -1,6 +1,10 @@
|
|||||||
package com.openisle.controller;
|
package com.openisle.controller;
|
||||||
|
|
||||||
import com.openisle.model.Comment;
|
import com.openisle.model.Comment;
|
||||||
|
import com.openisle.dto.CommentDto;
|
||||||
|
import com.openisle.dto.CommentRequest;
|
||||||
|
import com.openisle.mapper.CommentMapper;
|
||||||
|
import com.openisle.service.CaptchaService;
|
||||||
import com.openisle.service.CommentService;
|
import com.openisle.service.CommentService;
|
||||||
import com.openisle.service.CaptchaService;
|
import com.openisle.service.CaptchaService;
|
||||||
import com.openisle.service.LevelService;
|
import com.openisle.service.LevelService;
|
||||||
|
|||||||
Reference in New Issue
Block a user