Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // OAuth2Client ... OAuth2Client OAuth2Clienter = &oauth2Client{} // OAuth2ClientInfo ... OAuth2ClientInfo OAuth2ClientInfoer = &oauth2ClientInfo{} // Admin ... Admin Adminer = &admin{} // User ... User Userer = &user{} // UserInfo ... UserInfo UserInfoer = &userInfo{} // Organization ... Organization Organizationer = &organization{} // OrganizationRole ... OrganizationRole OrganizationRoleer = &organizationRole{} // Role ... Role Roleer = &role{} // UserRole ... UserRole UserRoleer = &userRole{} )
Functions ¶
This section is empty.
Types ¶
type Adminer ¶
type Adminer interface { SelectByUsername(ctx context.Context, username string) (ma *model.Admin, err error) Insert(ctx context.Context, ma *model.Admin) (err error) Delete(ctx context.Context, id uint64) (err error) Select(ctx context.Context, id uint64) (ma *model.Admin, err error) Update(ctx context.Context, ma *model.Admin) (err error) }
Adminer ...
type OAuth2ClientInfoer ¶
type OAuth2ClientInfoer interface {
SelectByID(ctx context.Context, clientID string) (mc *model.OAuth2ClientInfo, err error)
}
OAuth2ClientInfoer oauth2 client 接口
type OAuth2Clienter ¶
type OAuth2Clienter interface {
SelectByID(ctx context.Context, clientID string) (mc *model.OAuth2Client, err error)
}
OAuth2Clienter oauth2 client 接口
type OrganizationRoleer ¶
type OrganizationRoleer interface { Insert(ctx context.Context, m *model.OrganizationRole) (err error) Delete(ctx context.Context, id uint64) (err error) Select(ctx context.Context, id uint64) (m *model.OrganizationRole, err error) Update(ctx context.Context, m *model.OrganizationRole) (err error) }
OrganizationRoleer ...
type Organizationer ¶
type Organizationer interface { Insert(ctx context.Context, m *model.Organization) (err error) Delete(ctx context.Context, id uint64) (err error) Select(ctx context.Context, id uint64) (m *model.Organization, err error) Update(ctx context.Context, m *model.Organization) (err error) }
Organizationer ...
type Roleer ¶
type Roleer interface { Insert(ctx context.Context, m *model.Role) (err error) Delete(ctx context.Context, id uint64) (err error) Select(ctx context.Context, id uint64) (m *model.Role, err error) Update(ctx context.Context, m *model.Role) (err error) }
Roleer ...
type UserInfoer ¶ added in v0.1.0
type UserInfoer interface { SelectByUserID(ctx context.Context, userID string) (mu *model.UserInfo, err error) Insert(ctx context.Context, mu *model.UserInfo) (err error) Delete(ctx context.Context, id uint64) (err error) Select(ctx context.Context, id uint64) (mu *model.UserInfo, err error) Update(ctx context.Context, mu *model.UserInfo) (err error) }
UserInfoer ...
type UserRoleer ¶
type UserRoleer interface { Insert(ctx context.Context, m *model.UserRole) (err error) Delete(ctx context.Context, id uint64) (err error) Select(ctx context.Context, id uint64) (m *model.UserRole, err error) Update(ctx context.Context, m *model.UserRole) (err error) }
UserRoleer ...
type Userer ¶
type Userer interface { SelectByUsername(ctx context.Context, username string) (mu *model.User, err error) Insert(ctx context.Context, mu *model.User) (err error) Delete(ctx context.Context, id uint64) (err error) Select(ctx context.Context, id uint64) (mu *model.User, err error) Update(ctx context.Context, mu *model.User) (err error) }
Userer ...
Click to show internal directories.
Click to hide internal directories.