Documentation ¶
Overview ¶
@generated
@generated
@generated
Index ¶
- Variables
- type HandlerImpl
- func (h *HandlerImpl) Count(ctx context.Context, params arguments.RolePermissionCount) (int64, error)
- func (h *HandlerImpl) Delete(ctx context.Context, param arguments.RolePermissionDelete) (int64, error)
- func (h *HandlerImpl) GetByID(ctx context.Context, params arguments.RolePermissionGetByID) (models.RolePermission, error)
- func (h *HandlerImpl) GetByIDs(ctx context.Context, params arguments.RolePermissionGetByIDs) ([]models.RolePermission, error)
- func (h *HandlerImpl) GetByRoleID(ctx context.Context, roleID int64) ([]models.RolePermission, error)
- func (h *HandlerImpl) Insert(ctx context.Context, params arguments.RolePermissionInsert) (models.RolePermission, error)
- func (h *HandlerImpl) List(ctx context.Context, params arguments.RolePermissionList) ([]models.RolePermission, error)
- func (h *HandlerImpl) Update(ctx context.Context, params arguments.RolePermissionUpdate) (models.RolePermission, error)
- type ICoreHandler
- type ICoreRepository
- type IDatabase
- type IHandler
- type IRepository
- type RepositoryImpl
- func (r *RepositoryImpl) Count(ctx context.Context, params arguments.RolePermissionCount) (int64, error)
- func (r *RepositoryImpl) Delete(ctx context.Context, params arguments.RolePermissionDelete) (int64, error)
- func (r *RepositoryImpl) GetByID(ctx context.Context, params arguments.RolePermissionGetByID) (models.RolePermission, error)
- func (r *RepositoryImpl) GetByIDs(ctx context.Context, params arguments.RolePermissionGetByIDs) ([]models.RolePermission, error)
- func (r *RepositoryImpl) GetByRoleID(ctx context.Context, roleID int64) ([]models.RolePermission, error)
- func (r *RepositoryImpl) Insert(ctx context.Context, params arguments.RolePermissionInsert) (models.RolePermission, error)
- func (r *RepositoryImpl) List(ctx context.Context, params arguments.RolePermissionList) ([]models.RolePermission, error)
- func (r *RepositoryImpl) Update(ctx context.Context, params arguments.RolePermissionUpdate) (models.RolePermission, error)
- type ResolverImpl
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Type ... Type = graphql.NewObject(graphql.ObjectConfig{ Name: "RolePermission", Description: "This is type Feature", Fields: graphql.Fields{ "id": &graphql.Field{ Type: graphql.NewNonNull(graphql.Int), Description: "This is rolePermission's id", }, "roleId": &graphql.Field{ Type: graphql.NewNonNull(graphql.Int), Description: "This is rolePermission's roleId", }, "permissionId": &graphql.Field{ Type: graphql.NewNonNull(graphql.Int), Description: "This is rolePermission's permissionId", }, "createdBy": &graphql.Field{ Type: graphql.String, Description: "This is rolePermission's createdBy", }, "updatedBy": &graphql.Field{ Type: graphql.String, Description: "This is rolePermission's updatedBy", }, }, }) )
Functions ¶
This section is empty.
Types ¶
type HandlerImpl ¶
type HandlerImpl struct {
// contains filtered or unexported fields
}
HandlerImpl ...
func (*HandlerImpl) Count ¶
func (h *HandlerImpl) Count(ctx context.Context, params arguments.RolePermissionCount) (int64, error)
Count ...
func (*HandlerImpl) Delete ¶
func (h *HandlerImpl) Delete(ctx context.Context, param arguments.RolePermissionDelete) (int64, error)
Delete ...
func (*HandlerImpl) GetByID ¶
func (h *HandlerImpl) GetByID(ctx context.Context, params arguments.RolePermissionGetByID) (models.RolePermission, error)
GetByID ...
func (*HandlerImpl) GetByIDs ¶
func (h *HandlerImpl) GetByIDs(ctx context.Context, params arguments.RolePermissionGetByIDs) ([]models.RolePermission, error)
GetByIDs ...
func (*HandlerImpl) GetByRoleID ¶
func (h *HandlerImpl) GetByRoleID(ctx context.Context, roleID int64) ([]models.RolePermission, error)
GetByRoleID ...
func (*HandlerImpl) Insert ¶
func (h *HandlerImpl) Insert(ctx context.Context, params arguments.RolePermissionInsert) (models.RolePermission, error)
Insert ...
func (*HandlerImpl) List ¶
func (h *HandlerImpl) List(ctx context.Context, params arguments.RolePermissionList) ([]models.RolePermission, error)
List ...
func (*HandlerImpl) Update ¶
func (h *HandlerImpl) Update(ctx context.Context, params arguments.RolePermissionUpdate) (models.RolePermission, error)
Update ...
type ICoreHandler ¶
type ICoreHandler interface { GetByID(ctx context.Context, param arguments.RolePermissionGetByID) (models.RolePermission, error) GetByIDs(ctx context.Context, param arguments.RolePermissionGetByIDs) ([]models.RolePermission, error) Count(ctx context.Context, params arguments.RolePermissionCount) (int64, error) List(ctx context.Context, params arguments.RolePermissionList) ([]models.RolePermission, error) Insert(ctx context.Context, params arguments.RolePermissionInsert) (models.RolePermission, error) Update(ctx context.Context, params arguments.RolePermissionUpdate) (models.RolePermission, error) Delete(ctx context.Context, param arguments.RolePermissionDelete) (int64, error) }
ICoreHandler ...
type ICoreRepository ¶
type ICoreRepository interface { GetByID(ctx context.Context, param arguments.RolePermissionGetByID) (models.RolePermission, error) GetByIDs(ctx context.Context, param arguments.RolePermissionGetByIDs) ([]models.RolePermission, error) List(ctx context.Context, params arguments.RolePermissionList) ([]models.RolePermission, error) Count(ctx context.Context, params arguments.RolePermissionCount) (int64, error) Insert(ctx context.Context, params arguments.RolePermissionInsert) (models.RolePermission, error) Update(ctx context.Context, params arguments.RolePermissionUpdate) (models.RolePermission, error) Delete(ctx context.Context, param arguments.RolePermissionDelete) (int64, error) }
ICoreRepository ...
type IDatabase ¶
type IDatabase interface { Ping() error Close() error PrepareContext(ctx context.Context, query string) (database.IStmt, error) }
IDatabase ...
type IHandler ¶
type IHandler interface { ICoreHandler GetByRoleID(ctx context.Context, roleID int64) ([]models.RolePermission, error) }
IHandler ...
type IRepository ¶
type IRepository interface { ICoreRepository GetByRoleID(ctx context.Context, roleID int64) ([]models.RolePermission, error) }
IRepository ...
type RepositoryImpl ¶
type RepositoryImpl struct {
// contains filtered or unexported fields
}
RepositoryImpl ...
func (*RepositoryImpl) Count ¶
func (r *RepositoryImpl) Count(ctx context.Context, params arguments.RolePermissionCount) (int64, error)
Count ...
func (*RepositoryImpl) Delete ¶
func (r *RepositoryImpl) Delete(ctx context.Context, params arguments.RolePermissionDelete) (int64, error)
Delete ...
func (*RepositoryImpl) GetByID ¶
func (r *RepositoryImpl) GetByID(ctx context.Context, params arguments.RolePermissionGetByID) (models.RolePermission, error)
GetByID ...
func (*RepositoryImpl) GetByIDs ¶
func (r *RepositoryImpl) GetByIDs(ctx context.Context, params arguments.RolePermissionGetByIDs) ([]models.RolePermission, error)
GetByIDs ...
func (*RepositoryImpl) GetByRoleID ¶
func (r *RepositoryImpl) GetByRoleID(ctx context.Context, roleID int64) ([]models.RolePermission, error)
GetByRoleID ...
func (*RepositoryImpl) Insert ¶
func (r *RepositoryImpl) Insert(ctx context.Context, params arguments.RolePermissionInsert) (models.RolePermission, error)
Insert ...
func (*RepositoryImpl) List ¶
func (r *RepositoryImpl) List(ctx context.Context, params arguments.RolePermissionList) ([]models.RolePermission, error)
List ...
func (*RepositoryImpl) Update ¶
func (r *RepositoryImpl) Update(ctx context.Context, params arguments.RolePermissionUpdate) (models.RolePermission, error)
Update ...
type ResolverImpl ¶
type ResolverImpl struct {
// contains filtered or unexported fields
}
ResolverImpl ...
Source Files ¶
Click to show internal directories.
Click to hide internal directories.