エンドポイント追加

This commit is contained in:
ろむねこ 2024-07-16 01:06:28 +09:00
parent 71fb27849e
commit 817f15c2d9
Signed by: Fujimatsu
GPG Key ID: FA1F39A1BA37D168

View File

@ -11,6 +11,7 @@ import one.nem.kidshift.data.retrofit.model.parent.ParentInfoResponse;
import one.nem.kidshift.data.retrofit.model.parent.ParentRenameRequest;
import one.nem.kidshift.data.retrofit.model.parent.auth.ParentAuthRequest;
import one.nem.kidshift.data.retrofit.model.parent.auth.ParentAuthResponse;
import one.nem.kidshift.data.retrofit.model.parent.auth.ParentLoginCodeResponse;
import one.nem.kidshift.data.retrofit.model.task.HistoryListResponse;
import one.nem.kidshift.data.retrofit.model.task.TaskAddRequest;
import one.nem.kidshift.data.retrofit.model.task.TaskListResponse;
@ -183,6 +184,14 @@ public interface KidShiftApiService {
@Headers(AuthorizationInterceptor.HEADER_PLACEHOLDER)
Call<ChildLoginCodeResponse> issueLoginCode(@Path("id") String id);
/**
* 保護者ログインコード発行
* @return ParentLoginCodeResponse
*/
@GET("/parent/issue")
@Headers(AuthorizationInterceptor.HEADER_PLACEHOLDER)
Call<ParentLoginCodeResponse> issueParentLoginCode();
@GET("/task/history/{childId}")
@Headers(AuthorizationInterceptor.HEADER_PLACEHOLDER)
Call<HistoryListResponse> getHistory(@Path("childId") String childId);