Documentation ¶
Index ¶
- type DashboardRepo
- func (repo *DashboardRepo) Create(dash *types.Dashboard) error
- func (repo *DashboardRepo) GetAll() (types.Dashboards, error)
- func (repo *DashboardRepo) GetById(id int) (*types.Dashboard, error)
- func (repo *DashboardRepo) GetByIds(ids []int) (types.Dashboards, error)
- func (repo *DashboardRepo) GetByOwnerId(id int) (types.Dashboards, error)
- func (repo *DashboardRepo) GetShared(userId int, role int) (types.Dashboards, error)
- func (repo *DashboardRepo) GetSystemIds(role int) []int
- func (repo *DashboardRepo) Remove(id int) error
- func (repo *DashboardRepo) Update(dash *types.Dashboard) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DashboardRepo ¶
type DashboardRepo struct { DashboardMember *dashmember.DashboardMemberRepo DashboardKey *dashkey.DashboardKeyRepo // contains filtered or unexported fields }
func NewDashboardRepo ¶
func NewDashboardRepo( dashboardMemberRepo *dashmember.DashboardMemberRepo, dashboardKeyRepo *dashkey.DashboardKeyRepo, ) *DashboardRepo
func (*DashboardRepo) GetAll ¶
func (repo *DashboardRepo) GetAll() (types.Dashboards, error)
func (*DashboardRepo) GetById ¶
func (repo *DashboardRepo) GetById(id int) (*types.Dashboard, error)
func (*DashboardRepo) GetByIds ¶
func (repo *DashboardRepo) GetByIds(ids []int) (types.Dashboards, error)
func (*DashboardRepo) GetByOwnerId ¶
func (repo *DashboardRepo) GetByOwnerId(id int) (types.Dashboards, error)
func (*DashboardRepo) GetShared ¶
func (repo *DashboardRepo) GetShared(userId int, role int) (types.Dashboards, error)
func (*DashboardRepo) GetSystemIds ¶
func (repo *DashboardRepo) GetSystemIds(role int) []int
func (*DashboardRepo) Remove ¶
func (repo *DashboardRepo) Remove(id int) error
Click to show internal directories.
Click to hide internal directories.