diff --git a/build.gradle b/build.gradle index 61f286a..8f63d53 100644 --- a/build.gradle +++ b/build.gradle @@ -14,11 +14,15 @@ } dependencies { + compile group: 'com.fasterxml.jackson.core', name: 'jackson-core', version: '2.11.0' + compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.11.0' + compile group: 'com.fasterxml.jackson.core', name: 'jackson-annotations', version: '2.11.0' implementation 'org.springframework.boot:spring-boot-starter-jersey' implementation 'org.springframework.boot:spring-boot-starter-web' developmentOnly 'org.springframework.boot:spring-boot-devtools' providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat' testImplementation 'org.springframework.boot:spring-boot-starter-test' + } test { diff --git a/src/main/java/org/ntlab/acanthus_server/entities/Account.java b/src/main/java/org/ntlab/acanthus_server/entities/Account.java index da30156..4424d1a 100644 --- a/src/main/java/org/ntlab/acanthus_server/entities/Account.java +++ b/src/main/java/org/ntlab/acanthus_server/entities/Account.java @@ -41,15 +41,34 @@ public void setUid(){ this.uid=uid; } + + //tokenを返す + //GetとSetを実装 public String getToken() { return token; } + public void setToken(){ + this.token=token; + } //passwordをtoken認証後返す public String getPassword(String token) { //IFでトークン認証をしたのちに返す return password; } + //emailを返す + public String getEmail() { + return email; + } + public void setEmail(){ + this.email=email; + } + + //Auth関数でpassword認証 + public boolean accountAuth(String password){ + return this.password == password; + } +