提交
This commit is contained in:
5
modules/space/service/service.go
Normal file
5
modules/space/service/service.go
Normal file
@@ -0,0 +1,5 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
_ "github.com/cool-team-official/cool-admin-go/modules/space/model"
|
||||
)
|
||||
20
modules/space/service/space_info.go
Normal file
20
modules/space/service/space_info.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"github.com/cool-team-official/cool-admin-go/cool"
|
||||
"github.com/cool-team-official/cool-admin-go/modules/space/model"
|
||||
)
|
||||
|
||||
type SpaceInfoService struct {
|
||||
*cool.Service
|
||||
}
|
||||
|
||||
func NewSpaceInfoService() *SpaceInfoService {
|
||||
return &SpaceInfoService{
|
||||
&cool.Service{
|
||||
Model: model.NewSpaceInfo(),
|
||||
},
|
||||
|
||||
// Service: cool.NewService(model.NewSpaceInfo()),
|
||||
}
|
||||
}
|
||||
20
modules/space/service/space_type.go
Normal file
20
modules/space/service/space_type.go
Normal file
@@ -0,0 +1,20 @@
|
||||
package service
|
||||
|
||||
import (
|
||||
"github.com/cool-team-official/cool-admin-go/cool"
|
||||
"github.com/cool-team-official/cool-admin-go/modules/space/model"
|
||||
)
|
||||
|
||||
type SpaceTypeService struct {
|
||||
*cool.Service
|
||||
}
|
||||
|
||||
func NewSpaceTypeService() *SpaceTypeService {
|
||||
return &SpaceTypeService{
|
||||
&cool.Service{
|
||||
Model: model.NewSpaceType(),
|
||||
},
|
||||
|
||||
// Service: cool.NewService(model.NewSpaceType()),
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user