clear store
This commit is contained in:
@@ -6,7 +6,7 @@ import (
|
||||
"cpone/db"
|
||||
)
|
||||
|
||||
func NewServicesPiechart(u Piechart, b Barchart, uStore db.PieChartStore, bStore db.BarChartStore) *ServicesPiechart {
|
||||
func NewServicesPiechart(u Piechart, b Barchart, uStore db.AppStore, bStore db.AppStore) *ServicesPiechart {
|
||||
|
||||
return &ServicesPiechart{
|
||||
Piechart: u,
|
||||
@@ -126,8 +126,8 @@ type Piechart struct {
|
||||
type ServicesPiechart struct {
|
||||
Piechart Piechart
|
||||
Barchart Barchart
|
||||
BarChartStore db.BarChartStore
|
||||
PieChartStore db.PieChartStore
|
||||
BarChartStore db.AppStore
|
||||
PieChartStore db.AppStore
|
||||
}
|
||||
|
||||
// func (su *ServicesPiechart) GetAllXsamples() ([]Piechart, error) {
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"cpone/db"
|
||||
)
|
||||
|
||||
func NewServicesEmployee(u Employee, uStore db.EmployeeStore) *ServicesEmployee {
|
||||
func NewServicesEmployee(u Employee, uStore db.AppStore) *ServicesEmployee {
|
||||
|
||||
return &ServicesEmployee{
|
||||
Employee: u,
|
||||
@@ -31,7 +31,7 @@ type EmployeeService struct {
|
||||
|
||||
type ServicesEmployee struct {
|
||||
Employee Employee
|
||||
EmployeeStore db.EmployeeStore
|
||||
EmployeeStore db.AppStore
|
||||
}
|
||||
|
||||
func (se *ServicesEmployee) GetEmployeeService() ([]EmployeeService, error) {
|
||||
|
||||
@@ -6,10 +6,10 @@ import (
|
||||
"cpone/db"
|
||||
)
|
||||
|
||||
func NewServicesLandingPage(u LandingPage, uStore db.LandingPageStore) *ServicesLandingPage {
|
||||
func NewServicesLandingPage(uStore db.AppStore) *ServicesLandingPage {
|
||||
|
||||
return &ServicesLandingPage{
|
||||
LandingPage: u,
|
||||
|
||||
LandingPageStore: uStore,
|
||||
}
|
||||
}
|
||||
@@ -54,7 +54,7 @@ type FooterNav struct {
|
||||
|
||||
type ServicesLandingPage struct {
|
||||
LandingPage LandingPage
|
||||
LandingPageStore db.LandingPageStore
|
||||
LandingPageStore db.AppStore
|
||||
}
|
||||
|
||||
func (su *ServicesLandingPage) GetAllLandingPages() ([]LandingPage, error) {
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"cpone/db"
|
||||
)
|
||||
|
||||
func NewServicesLogin(u Login, uStore db.LoginStore) *ServicesLogin {
|
||||
func NewServicesLogin(u Login, uStore db.AppStore) *ServicesLogin {
|
||||
|
||||
return &ServicesLogin{
|
||||
Login: u,
|
||||
@@ -24,7 +24,7 @@ type Login struct {
|
||||
|
||||
type ServicesLogin struct {
|
||||
Login Login
|
||||
LoginStore db.LoginStore
|
||||
LoginStore db.AppStore
|
||||
}
|
||||
|
||||
func (su *ServicesLogin) GetLogin(Email string, Password string) (Login, error) {
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
"cpone/utils"
|
||||
)
|
||||
|
||||
func NewServicesMasterMenuUserGroup(u MasterMenu, uStore db.MasterMenuUserGroupStore) *ServicesMasterMenuUserGroup {
|
||||
func NewServicesMasterMenuUserGroup(u MasterMenu, uStore db.AppStore) *ServicesMasterMenuUserGroup {
|
||||
|
||||
return &ServicesMasterMenuUserGroup{
|
||||
MasterMenu: u,
|
||||
@@ -43,7 +43,7 @@ type MasterMenu struct {
|
||||
|
||||
type ServicesMasterMenuUserGroup struct {
|
||||
MasterMenu MasterMenu
|
||||
MasterMenuUserGroupStore db.MasterMenuUserGroupStore
|
||||
MasterMenuUserGroupStore db.AppStore
|
||||
}
|
||||
|
||||
type AutoComplete struct {
|
||||
|
||||
@@ -6,7 +6,7 @@ import (
|
||||
"cpone/db"
|
||||
)
|
||||
|
||||
func NewServicesXsample(u Xsample, uStore db.XsampleStore) *ServicesXsample {
|
||||
func NewServicesXsample(u Xsample, uStore db.AppStore) *ServicesXsample {
|
||||
|
||||
return &ServicesXsample{
|
||||
Xsample: u,
|
||||
@@ -23,7 +23,7 @@ type Xsample struct {
|
||||
|
||||
type ServicesXsample struct {
|
||||
Xsample Xsample
|
||||
XsampleStore db.XsampleStore
|
||||
XsampleStore db.AppStore
|
||||
}
|
||||
|
||||
func (su *ServicesXsample) GetAllXsamples() ([]Xsample, error) {
|
||||
|
||||
Reference in New Issue
Block a user