Documentation ¶
Index ¶
- type User
- type UserIdentity
- type UserIdentityRepository
- type UserRepository
- type UserService
- func (s *UserService) CreateIdentity(ctx context.Context, oid, uid, idpId string, identityParam map[string]string)
- func (s *UserService) CreateUser(ctx context.Context, u *User)
- func (s *UserService) FindByOidAndName(oid string, name string) (*User, error)
- func (s *UserService) FindUser(ctx context.Context, id string) (*User, error)
- func (s *UserService) Validate(ctx context.Context, oid string, ...) (string, bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { gormx.BaseFields UserName string `json:"username" gorm:"column:name;type:varchar(256);uniqueIndex:udx_org_user"` Name string `json:"name" gorm:"column:name;type:varchar(256);uniqueIndex:udx_org_name"` Oid string `json:"oid" gorm:"column:oid;type:varchar(256);uniqueIndex:udx_org_user;uniqueIndex:udx_org_name"` }
type UserIdentity ¶
type UserIdentity struct { gormx.BaseFields Uid string `json:"uid" gorm:"column:uid;type:varchar(256)"` Oid string `json:"oid" gorm:"column:uid;type:varchar(256)"` IdpId string `json:"idp_id" gorm:"column:idp_id;type:varchar(256)"` Identity datatypes.JSON `json:"identity" gorm:"column:identity;not null"` }
func (UserIdentity) TableName ¶
func (UserIdentity) TableName() string
type UserIdentityRepository ¶
type UserIdentityRepository interface { gormx.BaseRepository[UserIdentity] FindByUidAndIdpId(context.Context, string, string) (*UserIdentity, error) Validate(context.Context, string, func(builder func() *datatypes.JSONQueryExpression) []any) (string, error) }
type UserRepository ¶
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
func NewUserService ¶
func NewUserService() *UserService
func (*UserService) CreateIdentity ¶
func (*UserService) CreateUser ¶
func (s *UserService) CreateUser(ctx context.Context, u *User)
func (*UserService) FindByOidAndName ¶
func (s *UserService) FindByOidAndName(oid string, name string) (*User, error)
Click to show internal directories.
Click to hide internal directories.