Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TenantActiveState int8 = 1 TenantInactiveState int8 = 0 )
Functions ¶
This section is empty.
Types ¶
type TenantRepository ¶
type TenantRepository interface { Insert(ctx context.Context, u *Tenant) error UpdateById(ctx context.Context, u *Tenant) error GetById(ctx context.Context, id uint64) (*Tenant, error) GetByUuid(ctx context.Context, uuid string) (*Tenant, error) CheckIfExistsById(ctx context.Context, id uint64) (bool, error) CheckIfExistsByName(ctx context.Context, name string) (bool, error) InsertOrUpdateById(ctx context.Context, u *Tenant) error ListAllUuids(ctx context.Context) ([]string, error) ListAllIds(ctx context.Context) ([]uint64, error) }
type User ¶
type User struct { Id uint64 `json:"id,omitempty"` Uuid string `json:"uuid,omitempty"` TenantId uint64 `json:"tenant_id,omitempty"` Email string `json:"email,omitempty"` FirstName string `json:"first_name,omitempty"` LastName string `json:"last_name,omitempty"` PasswordAlgorithm string `json:"password_algorithm,omitempty"` PasswordHash string `json:"password_hash,omitempty"` State int8 `json:"state,omitempty"` RoleId int8 `json:"role_id,omitempty"` Timezone string `json:"timezone,omitempty"` CreatedTime time.Time `json:"created_time,omitempty"` ModifiedTime time.Time `json:"modified_time,omitempty"` Salt string `json:"salt,omitempty"` WasEmailActivated bool `json:"was_email_activated,omitempty"` PrAccessCode string `json:"pr_access_code,omitempty"` PrExpiryTime time.Time `json:"pr_expiry_time,omitempty"` }
type UserRepository ¶
type UserRepository interface { Insert(ctx context.Context, u *User) error UpdateById(ctx context.Context, u *User) error UpdateByEmail(ctx context.Context, u *User) error GetById(ctx context.Context, id uint64) (*User, error) GetByEmail(ctx context.Context, email string) (*User, error) CheckIfExistsById(ctx context.Context, id uint64) (bool, error) CheckIfExistsByEmail(ctx context.Context, email string) (bool, error) InsertOrUpdateById(ctx context.Context, u *User) error InsertOrUpdateByEmail(ctx context.Context, u *User) error }
Click to show internal directories.
Click to hide internal directories.