output

package
v0.0.0-...-ec85eee Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthTokenOutput

type AuthTokenOutput struct {
	AuthToken string `` /* 142-byte string literal not displayed */
}

AuthTokenOutput represents response body for auth token

func NewAuthTokenOutput

func NewAuthTokenOutput(authToken string) *AuthTokenOutput

NewAuthTokenOutput returns initialized ConfirmOutput

type CurrentUserOutput

type CurrentUserOutput struct {
	ID          uint64      `json:"id" example:"1"`
	PhoneNumber string      `json:"phoneNumber" example:"080-1111-2222"`
	FirstName   string      `json:"firstName" example:"Kanji"`
	LastName    string      `json:"lastName" example:"Yomoda"`
	DateOfBirth null.String `json:"dateOfBirth" example:"1995-07-05"`
	Gender      string      `json:"gender" example:"unknown | male | female"`
	Email       string      `json:"email" example:"test@example.com"`
	CreatedAt   string      `json:"createdAt" example:"2020-01-01T00:00:00+09:00"`
	UpdatedAt   string      `json:"updatedAt" example:"2020-01-01T00:00:00+09:00"`
	AuthToken   string      `` /* 142-byte string literal not displayed */
}

ConfirmOutput represents response body for current user

func NewCurrentUserOutput

func NewCurrentUserOutput(u *model.User) *CurrentUserOutput

NewCurrentUserOutput returns initialized current user

type SMSReconfirmationOutput

type SMSReconfirmationOutput struct {
	ID          uint64 `json:"id" example:"1"`
	PhoneNumber string `json:"phoneNumber" example:"080-1111-2222"`
	CreatedAt   string `json:"createdAt" example:"2020-01-01T00:00:00+09:00"`
}

TempUserOutput represents response body for temporary user

func NewSMSReconfirmationOutput

func NewSMSReconfirmationOutput(s *model.SmsReconfirmation) *SMSReconfirmationOutput

NewSMSReconfirmationOutput returns initialized sms reconfirmation

type TempUserOutput

type TempUserOutput struct {
	ID          uint64 `json:"id" example:"1"`
	PhoneNumber string `json:"phoneNumber" example:"080-1111-2222"`
	AuthKey     string `json:"authKey" example:"o1w.qeTWAXAl1lcueHRH"`
	CreatedAt   string `json:"createdAt" example:"2020-01-01T00:00:00+09:00"`
}

TempUserOutput represents response body for temporary user

func NewTempUserOutput

func NewTempUserOutput(u *model.TempUser) *TempUserOutput

NewTempUserOutput returns initialized temporary user

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL