Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bank ¶
type OauthAccessToken ¶
type OauthAccessToken struct { ID uuid.UUID `json:"id" gorm:"type:uuid;default:uuid_generate_v4();primaryKey"` ClientId uuid.UUID `json:"client_id" gorm:"type:uuid;primaryKey;column:client_id"` UserId *uuid.UUID `json:"user_id" gorm:"type:uuid;column:user_id"` GrantType string `json:"grant_type" gorm:"column:grant_type"` Scopes pq.StringArray `json:"scopes" gorm:"type:varchar(100)[];column:scopes"` CreatedAt time.Time `json:"created_at" gorm:"column:created_at"` UpdatedAt time.Time `json:"updated_at" gorm:"column:updated_at"` ExpiresAt time.Time `json:"expires_at" gorm:"column:expires_at"` DeletedAt *time.Time `json:"revoked_at" gorm:"column:deleted_at"` }
func CreateModelFromEntityOauthAccessToken ¶
func CreateModelFromEntityOauthAccessToken(entity domainModelEntities.OauthAccessToken) *OauthAccessToken
func (*OauthAccessToken) BeforeCreate ¶
func (o *OauthAccessToken) BeforeCreate(db *gorm.DB) (err error)
func (*OauthAccessToken) ToEntity ¶
func (o *OauthAccessToken) ToEntity() (*domainModelEntities.OauthAccessToken, errors.DomainError)
type OauthClient ¶
type OauthClient struct { ID uuid.UUID `json:"id" gorm:"type:uuid;primaryKey;column:id;default:uuid_generate_v4()"` Name string `json:"name" gorm:"column:name"` EnabledGrantType pq.StringArray `json:"enabled_grant_type" gorm:"type:varchar(100)[];column:enabled_grant_type"` Secret string `json:"secret" gorm:"column:secret"` Redirect string `json:"redirect" gorm:"column:redirect"` CreatedAt *time.Time `json:"created_at" gorm:"column:created_at"` UpdatedAt *time.Time `json:"updated_at" gorm:"column:updated_at"` DeletedAt gorm.DeletedAt `json:"deleted_at" gorm:"column:deleted_at"` }
func (*OauthClient) ToEntity ¶
func (oauthClient *OauthClient) ToEntity() (*entities.OauthClient, errors.DomainError)
type User ¶
type User struct { ID string `json:"id" gorm:"column:id,primaryKey"` Username string `json:"username" gorm:"column:username"` Password string `json:"password" gorm:"column:password"` CreatedAt time.Time `json:"created_at" gorm:"column:created_at"` UpdatedAt time.Time `json:"updated_at" gorm:"column:updated_at"` DeletedAt time.Time `json:"deleted_at" gorm:"column:deleted_at"` }
Click to show internal directories.
Click to hide internal directories.