-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #35 from urashin/base-api-impl
add volunteer function : listen,accept,rush
- Loading branch information
Showing
15 changed files
with
564 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
src/main/java/org/microvolunteer/platform/domain/resource/HelpSignal.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package org.microvolunteer.platform.domain.resource; | ||
|
||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
@Data | ||
@Builder | ||
public class HelpSignal { | ||
private Integer help_id; | ||
private String area_name; | ||
private String handicap_name; | ||
private String x_geometory; | ||
private String y_geometory; | ||
private Integer distance; | ||
private Integer handicap_type; | ||
private Integer handicap_level; | ||
private String comment; | ||
private LocalDateTime created_at; | ||
private LocalDateTime updated_at; | ||
} |
12 changes: 12 additions & 0 deletions
12
src/main/java/org/microvolunteer/platform/domain/resource/SignalList.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package org.microvolunteer.platform.domain.resource; | ||
|
||
import lombok.Builder; | ||
import lombok.Data; | ||
|
||
import java.util.List; | ||
|
||
@Data | ||
@Builder | ||
public class SignalList { | ||
List<HelpSignal> help_signals; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<!doctype html> | ||
<html xmlns:th="http://www.thymeleaf.org"> | ||
<head> | ||
<!--Import Google Icon Font--> | ||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> | ||
<!--Import materialize.css--> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css"> | ||
<link type="text/css" rel="stylesheet" th:href="@{/css/my.css}" media="screen,projection"/> | ||
|
||
<!--Let browser know website is optimized for mobile--> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> | ||
<title>micro-volunteer</title> | ||
</head> | ||
<body> | ||
<header> | ||
<nav> | ||
<div class="nav-wrapper"> | ||
<a th:href="@{/v1/user/mypage/{token}(token=${token})}" method="get" class="brand-logo">micro-volunteer</a> | ||
<a href="#" data-target="mobile-demo" class="sidenav-trigger"><i class="material-icons">menu</i></a> | ||
<ul class="right hide-on-med-and-down"> | ||
<li><a href="#">checkin!</a></li> | ||
<li><a href="#">Help!</a></li> | ||
<li><a th:href="@{/v1/default/user/thanks_list/{token}(token=${token})}" method="post">Thanks</a></li> | ||
<li><a th:href="@{/v1/default/user/history/{token}(token=${token})}" method="post">history</a></li> | ||
</ul> | ||
</div> | ||
</nav> | ||
<ul class="sidenav" id="mobile-demo"> | ||
<li><a href="#">checkin!</a></li> | ||
<li><a href="#">Help!</a></li> | ||
<li><a th:href="@{/v1/default/user/thanks_list/{token}(token=${token})}" method="post">Thanks</a></li> | ||
<li><a th:href="@{/v1/default/user/history/{token}(token=${token})}" method="post">history</a></li> | ||
</ul> | ||
</header> | ||
|
||
<div class="card_list"> | ||
<ul class="collection"> | ||
<form th:action="@{/v1/default/matching/accept}" method="post" th:object="${acceptRequest}" class="col s12"> | ||
<span class="card-title">以下のHelpに応じますか?</span> | ||
<li class="collection-item avatar"> | ||
<i class="material-icons"> | ||
<img th:src="@{/img/{handicap_type}.png(handicap_type=${helpSignal.handicap_type})}" class="circle"> | ||
</i> | ||
<p>[[${helpSignal.handicap_name}]]</p> | ||
<p>障がいの程度: [[${helpSignal.handicap_level}]] <br> | ||
コメント: [[${helpSignal.comment}]] </p> | ||
<div class="input-field col s6" hidden> | ||
<input name="help_id" th:value="${helpSignal.help_id}"> | ||
<input name="y_geometry" th:value="35.7107654"> | ||
<input name="x_geometry" th:value="139.795978"> | ||
<input name="token" th:value="${token}"> | ||
</div> | ||
<button class="btn waves-effect waves-light btn-small" type="submit" name="action">accept | ||
<i class="material-icons right">directions_run</i> | ||
</button> | ||
</li> | ||
</form> | ||
</ul> | ||
<div align="center"> | ||
<a class="btn-floating btn-large waves-effect waves-light red" th:href="@{/v1/user/mypage/{token}(token=${token})}" method="get"><i class="material-icons">clear</i></a> | ||
</div> | ||
</div> | ||
<script> | ||
document.addEventListener('DOMContentLoaded', function() { | ||
var elems = document.querySelectorAll('.sidenav'); | ||
var instances = M.Sidenav.init(elems); | ||
}); | ||
</script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<!doctype html> | ||
<html xmlns:th="http://www.thymeleaf.org"> | ||
<head> | ||
<!--Import Google Icon Font--> | ||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> | ||
<!--Import materialize.css--> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/css/materialize.min.css"> | ||
<link type="text/css" rel="stylesheet" th:href="@{/css/my.css}" media="screen,projection"/> | ||
|
||
<!--Let browser know website is optimized for mobile--> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"/> | ||
<title>micro-volunteer</title> | ||
</head> | ||
<body> | ||
<header> | ||
<nav> | ||
<div class="nav-wrapper"> | ||
<a th:href="@{/v1/user/mypage/{token}(token=${token})}" method="get" class="brand-logo">micro-volunteer</a> | ||
<a href="#" data-target="mobile-demo" class="sidenav-trigger"><i class="material-icons">menu</i></a> | ||
<ul class="right hide-on-med-and-down"> | ||
<li><a href="#">checkin!</a></li> | ||
<li><a href="#">Help!</a></li> | ||
<li><a th:href="@{/v1/default/user/thanks_list/{token}(token=${token})}" method="post">Thanks</a></li> | ||
<li><a th:href="@{/v1/default/user/history/{token}(token=${token})}" method="post">history</a></li> | ||
</ul> | ||
</div> | ||
</nav> | ||
<ul class="sidenav" id="mobile-demo"> | ||
<li><a href="#">checkin!</a></li> | ||
<li><a href="#">Help!</a></li> | ||
<li><a th:href="@{/v1/default/user/thanks_list/{token}(token=${token})}" method="post">Thanks</a></li> | ||
<li><a th:href="@{/v1/default/user/history/{token}(token=${token})}" method="post">history</a></li> | ||
</ul> | ||
</header> | ||
|
||
<div class="card_list"> | ||
<ul class="collection"> | ||
<form th:action="@{/v1/default/user/help/call}" method="post" th:object="${helpRequest}" class="col s12"> | ||
<span class="card-title">以下の内ようでHelpを発信しますか?</span> | ||
<li class="collection-item avatar"> | ||
<i class="material-icons"> | ||
<img th:src="@{/img/{handicap_type}.png(handicap_type=${myHandicap.handicap_type})}" class="circle"> | ||
</i> | ||
<p>[[${myHandicap.handicap_name}]]</p> | ||
<p>障がいの程度: [[${myHandicap.handicap_level}]] <br> | ||
コメント: [[${myHandicap.comment}]] </p> | ||
<div class="input-field col s6" hidden> | ||
<input name="handicapinfo_id" th:value="${myHandicap.handicapinfo_id}"> | ||
<input name="y_geometry" th:value="35.7107654"> | ||
<input name="x_geometry" th:value="139.795978"> | ||
<input name="token" th:value="${token}"> | ||
</div> | ||
<button class="btn waves-effect waves-light btn-small" type="submit" name="action">help | ||
<i class="material-icons right">call_made</i> | ||
</button> | ||
</li> | ||
</form> | ||
</ul> | ||
<div align="center"> | ||
<a class="btn-floating btn-large waves-effect waves-light red" th:href="@{/v1/user/mypage/{token}(token=${token})}" method="get"><i class="material-icons">clear</i></a> | ||
</div> | ||
</div> | ||
<script> | ||
document.addEventListener('DOMContentLoaded', function() { | ||
var elems = document.querySelectorAll('.sidenav'); | ||
var instances = M.Sidenav.init(elems); | ||
}); | ||
</script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0/js/materialize.min.js"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.