Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model interface { PermissionModel db.AutoMigrater }
type Permission ¶
type PermissionModel ¶
type PermissionModel interface { ReadPermissionById(permissionId string) (*Permission, error) UpdatePermissionById(permissionId string, params PermissionParams) error DeletePermissionById(permissionId string) (*Permission, error) CreatePermission(params PermissionParams) error ReadPermissionsByKeys(keys []string) ([]*Permission, error) ReadAllPermissions() ([]*Permission, error) IsPermissionsExist([]string) ([]string, bool) ReadPermissionByQuery(ids []string, query string) ([]*Permission, error) }
type PermissionParams ¶
Click to show internal directories.
Click to hide internal directories.