Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StructTagToColumns ¶
structタグ("db")の付いた全部のタグ(カラム名)を取得する
Types ¶
type Auth ¶
type CommonModel ¶
type User ¶
type User struct { Id dbr.NullInt64 `db:"id"` Name string `db:"name"` Email string `db:"email"` SessionToken string `db:"session_token"` TokenExpire dbr.NullTime `db:"token_expire"` RegID dbr.NullString `db:"registration_id"` LastLoginAt dbr.NullTime `db:"last_login_at"` CreatedAt dbr.NullTime UpdatedAt dbr.NullTime }
var LoginUser *User
func (*User) FindUserBySessionToken ¶
セッショントークンをキーにUserを検索する
func (*User) SaveRegistrationID ¶
Click to show internal directories.
Click to hide internal directories.