Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoginRequest ¶
type LoginResponse ¶
type LoginResponse struct { // アクセストークン AccessToken string `json:"access_token"` // トークンの有効期限 ExpiresAt int64 `json:"expires_at"` }
LoginResponse ログインレスポンス @Description ログイン処理のレスポンス.
type PlanResponse ¶
type PlanResponse struct { // プランID ID string `example:"plan123" json:"id"` // プラン名 Name string `example:"スタンダードプラン" json:"name"` // プランの説明 Description string `example:"基本的なサービスが含まれるプランです" json:"description"` // プランの価格 Price int `example:"1000" json:"price"` // プランの期間(日数) Duration int `example:"30" json:"duration"` }
PlanResponse プラン情報レスポンス.
func ToPlanResponse ¶
func ToPlanResponse(plan *models.Plan) *PlanResponse
type ReservationResponse ¶
type ReservationResponse struct { // 予約ID ID string `example:"rsv_123456" json:"id"` // ユーザーID UserID string `example:"user123" json:"user_id"` // 予約開始時間 StartTime time.Time `example:"2024-03-20T10:00:00Z" json:"start_time"` // 予約終了時間 EndTime time.Time `example:"2024-03-20T11:00:00Z" json:"end_time"` // 予約ステータス Status string `example:"confirmed" json:"status"` // ユーザー情報 User *UserResponse `json:"user"` // プラン情報 Plan *PlanResponse `json:"plan"` }
ReservationResponse 予約情報レスポンス @Description 予約情報の詳細.
func ToReservationResponse ¶
func ToReservationResponse(reservation *models.Reservation) *ReservationResponse
type SecretLoginRequest ¶
type SecretQuestionRequest ¶
type SecretQuestionRequest struct {
UserID string `binding:"required" form:"user_id"`
}
type SecretQuestionResponse ¶
type SecretQuestionResponse struct {
SecretQuestion string `json:"secret_question"`
}
type UserResponse ¶
type UserResponse struct { // ユーザーID ID string `example:"user123" json:"id"` // ユーザー名 Name string `example:"山田太郎" json:"name"` // メールアドレス Email string `example:"taro.yamada@example.com" json:"email"` // 電話番号 Phone string `example:"FLAG_dSQVRVTEFUSU9OU19GT1JfRklOSVNISU5H" json:"phone"` }
UserResponse ユーザー情報レスポンス @Description ユーザー情報の詳細.
func ToUserResponse ¶
func ToUserResponse(user *models.User) *UserResponse
Click to show internal directories.
Click to hide internal directories.