Documentation
¶
Index ¶
- func APIResponse(ctx *gin.Context, StatusCode int, Message string, Data interface{})
- func AuthMiddleware(j *auth.JWTer) gin.HandlerFunc
- func ErrResponse(ctx *gin.Context, StatusCode int, Title, Message string, Err error)
- type DeleteUser
- type DeleteUserService
- type ErrRes
- type GetAccount
- type GetAccountService
- type GetNotification
- type GetNotificationService
- type GetNotifications
- type GetNotificationsService
- type GetUncheckedNotificationCount
- type GetUncheckedNotificationCountService
- type GetUsers
- type GetUsersService
- type HealthCheck
- type RegisterTemporaryUser
- type RegisterTemporaryUserService
- type RegisterUser
- type RegisterUserService
- type ResetPassword
- type ResetPasswordService
- type Responses
- type SendPoint
- type SendPointService
- type Signin
- type SigninService
- type Signout
- type SignoutService
- type UpdateAccount
- type UpdateAccountService
- type UpdateEmail
- type UpdateEmailService
- type UpdatePassword
- type UpdatePasswordService
- type UpdateTemporaryEmail
- type UpdateTemporaryEmailService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIResponse ¶
APIレスポンスの作成(成功時)
@params ctx ginのコンテキスト StatusCode ステータスコード Message メッセージ Data 返却するデータ
Types ¶
type DeleteUser ¶
type DeleteUser struct {
Service DeleteUserService
}
func NewDeleteUser ¶
func NewDeleteUser(s DeleteUserService) *DeleteUser
func (*DeleteUser) ServeHTTP ¶
func (du *DeleteUser) ServeHTTP(ctx *gin.Context)
ユーザー削除取得ハンドラー
@param ctx ginContext
type DeleteUserService ¶
type ErrRes ¶
type ErrRes struct {
StatusCode int `json:"statusCode"`
Title string `json:"title"`
Message string `json:"message"`
}
エラーのレスポンスの型
type GetAccount ¶
type GetAccount struct {
Service GetAccountService
}
func NewGetAccount ¶
func NewGetAccount(s GetAccountService) *GetAccount
func (*GetAccount) ServeHTTP ¶
func (gu *GetAccount) ServeHTTP(ctx *gin.Context)
ユーザ取得ハンドラー
@param ctx ginContext
type GetAccountService ¶
type GetAccountService interface {
GetAccount(ctx *gin.Context) (service.GetAccountResponse, error)
}
type GetNotification ¶
type GetNotification struct {
Service GetNotificationService
}
func NewGetNotification ¶
func NewGetNotification(s GetNotificationService) *GetNotification
func (*GetNotification) ServeHTTP ¶
func (gn *GetNotification) ServeHTTP(ctx *gin.Context)
お知らせ詳細取得ハンドラー
@param ctx ginContext
type GetNotificationService ¶
type GetNotificationService interface {
GetNotification(ctx *gin.Context, notificationID model.NotificationID) (service.GetNotificationResponse, error)
}
type GetNotifications ¶
type GetNotifications struct {
Service GetNotificationsService
}
func NewGetNotifications ¶
func NewGetNotifications(s GetNotificationsService) *GetNotifications
func (*GetNotifications) ServeHTTP ¶
func (gn *GetNotifications) ServeHTTP(ctx *gin.Context)
お知らせ一覧取得ハンドラー
@param ctx ginContext
type GetNotificationsService ¶
type GetUncheckedNotificationCount ¶
type GetUncheckedNotificationCount struct {
Service GetUncheckedNotificationCountService
}
func NewGetUncheckedNotificationCount ¶
func NewGetUncheckedNotificationCount(s GetUncheckedNotificationCountService) *GetUncheckedNotificationCount
func (*GetUncheckedNotificationCount) ServeHTTP ¶
func (gunc *GetUncheckedNotificationCount) ServeHTTP(ctx *gin.Context)
お知らせ数取得ハンドラー
@param ctx ginContext
type GetUsers ¶
type GetUsers struct {
Service GetUsersService
}
func NewGetUsers ¶
func NewGetUsers(s GetUsersService) *GetUsers
type GetUsersService ¶
type GetUsersService interface {
GetUsers(ctx context.Context, input service.GetUsersRequest) (service.GetUsersResponse, error)
}
type HealthCheck ¶
type HealthCheck struct{}
func NewHealthCheckHandler ¶
func NewHealthCheckHandler() *HealthCheck
func (*HealthCheck) ServeHTTP ¶
func (hc *HealthCheck) ServeHTTP(ctx *gin.Context)
type RegisterTemporaryUser ¶
type RegisterTemporaryUser struct {
Service RegisterTemporaryUserService
}
func NewRegisterTemporaryUserHandler ¶
func NewRegisterTemporaryUserHandler(s RegisterTemporaryUserService) *RegisterTemporaryUser
func (*RegisterTemporaryUser) ServeHTTP ¶
func (ru *RegisterTemporaryUser) ServeHTTP(ctx *gin.Context)
ユーザ仮登録ハンドラー
@param ctx ginContext
type RegisterUser ¶
type RegisterUser struct {
Service RegisterUserService
}
func NewRegisterUserHandler ¶
func NewRegisterUserHandler(s RegisterUserService) *RegisterUser
func (*RegisterUser) ServeHTTP ¶
func (ru *RegisterUser) ServeHTTP(ctx *gin.Context)
ユーザ本登録ハンドラー
@param ctx ginContext
type RegisterUserService ¶
type ResetPassword ¶
type ResetPassword struct {
Service ResetPasswordService
}
func NewResetPasswordHandler ¶
func NewResetPasswordHandler(s ResetPasswordService) *ResetPassword
func (*ResetPassword) ServeHTTP ¶
func (s *ResetPassword) ServeHTTP(ctx *gin.Context)
サインアウトハンドラー
@param ctx ginContext
type ResetPasswordService ¶
type Responses ¶
type Responses struct {
StatusCode int `json:"statusCode"`
Message string `json:"message"`
Data interface{} `json:"data"`
}
クライアントへの返すレスポンスの型
type SendPoint ¶
type SendPoint struct {
Service SendPointService
}
func NewSendPoint ¶
func NewSendPoint(s SendPointService) *SendPoint
type SendPointService ¶
type Signin ¶
type Signin struct {
Service SigninService
}
func NewSigninHandler ¶
func NewSigninHandler(s SigninService) *Signin
type SigninService ¶
type Signout ¶
type Signout struct {
Service SignoutService
}
func NewSignoutHandler ¶
func NewSignoutHandler(s SignoutService) *Signout
type SignoutService ¶
type UpdateAccount ¶
type UpdateAccount struct {
Service UpdateAccountService
}
func NewUpdateAccountHandler ¶
func NewUpdateAccountHandler(s UpdateAccountService) *UpdateAccount
func (*UpdateAccount) ServeHTTP ¶
func (ua *UpdateAccount) ServeHTTP(ctx *gin.Context)
アカウント情報更新ハンドラー
@param ctx ginContext
type UpdateAccountService ¶
type UpdateEmail ¶
type UpdateEmail struct {
Service UpdateEmailService
}
func NewUpdateEmailHandler ¶
func NewUpdateEmailHandler(s UpdateEmailService) *UpdateEmail
func (*UpdateEmail) ServeHTTP ¶
func (ue *UpdateEmail) ServeHTTP(ctx *gin.Context)
メール本登録ハンドラー
@param ctx ginContext @return APIレスポンス結果
type UpdateEmailService ¶
type UpdatePassword ¶
type UpdatePassword struct {
Service UpdatePasswordService
}
func NewUpdatePasswordHandler ¶
func NewUpdatePasswordHandler(s UpdatePasswordService) *UpdatePassword
func (*UpdatePassword) ServeHTTP ¶
func (rt *UpdatePassword) ServeHTTP(ctx *gin.Context)
パスワード更新ハンドラー
@param ctx ginContext
type UpdatePasswordService ¶
type UpdateTemporaryEmail ¶
type UpdateTemporaryEmail struct {
Service UpdateTemporaryEmailService
}
func NewUpdateTemporaryEmailHandler ¶
func NewUpdateTemporaryEmailHandler(s UpdateTemporaryEmailService) *UpdateTemporaryEmail
func (*UpdateTemporaryEmail) ServeHTTP ¶
func (ute *UpdateTemporaryEmail) ServeHTTP(ctx *gin.Context)
メール仮登録ハンドラー
@param ctx ginContext
Source Files
¶
- delete_user.go
- get_account.go
- get_notification.go
- get_notifications.go
- get_unchecked_notification_count.go
- get_users.go
- health_check.go
- middleware.go
- register_temporary_user.go
- register_user.go
- reset_password.go
- response.go
- send_point.go
- service.go
- signin.go
- signout.go
- update_account.go
- update_email.go
- update_password.go
- update_temporary_email.go
Click to show internal directories.
Click to hide internal directories.