Update TODO with things to do
This commit is contained in:
parent
17ef70b297
commit
00dbca96c2
2 changed files with 20 additions and 0 deletions
|
@ -17,6 +17,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
|
|||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import me.imsonmia.epqapi.model.LoginRequest;
|
||||
import me.imsonmia.epqapi.model.Message;
|
||||
import me.imsonmia.epqapi.model.User;
|
||||
import me.imsonmia.epqapi.repository.MessageRepository;
|
||||
|
@ -74,6 +75,12 @@ public class UserController {
|
|||
return true;
|
||||
}
|
||||
|
||||
// @GetMapping("/user/validate")
|
||||
// public boolean validateLogin(@RequestBody LoginRequest login) {
|
||||
// return userRepository.findByUserName(login.getLoginUserId()).isPresent();
|
||||
// return false;
|
||||
// }
|
||||
|
||||
@GetMapping("/msg/{from}")
|
||||
public ArrayList<Message> getMessagesFromTimestamp(@PathVariable(value = "from") Long fromTimestamp) {
|
||||
if (fromTimestamp < 0) {
|
||||
|
|
13
src/main/java/me/imsonmia/epqapi/model/LoginRequest.java
Normal file
13
src/main/java/me/imsonmia/epqapi/model/LoginRequest.java
Normal file
|
@ -0,0 +1,13 @@
|
|||
package me.imsonmia.epqapi.model;
|
||||
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
public class LoginRequest {
|
||||
@Getter
|
||||
@Setter
|
||||
private String loginUserId;
|
||||
@Getter
|
||||
@Setter
|
||||
private String passwdHashInput;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue