service backend
This commit is contained in:
24
api/pkg/model/priority.go
Normal file
24
api/pkg/model/priority.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package model
|
||||
|
||||
import (
|
||||
"github.com/tech/sendico/pkg/mservice"
|
||||
)
|
||||
|
||||
type Priority struct {
|
||||
PermissionBound `bson:",inline" json:",inline"`
|
||||
Colorable `bson:",inline" json:",inline"`
|
||||
}
|
||||
|
||||
func (*Priority) Collection() string {
|
||||
return mservice.Priorities
|
||||
}
|
||||
|
||||
type PriorityGroup struct {
|
||||
PermissionBound `bson:",inline" json:",inline"`
|
||||
Describable `bson:",inline" json:",inline"`
|
||||
Priorities []IndexableRef `bson:"priorities" json:"priorities"`
|
||||
}
|
||||
|
||||
func (*PriorityGroup) Collection() string {
|
||||
return mservice.PriorityGroups
|
||||
}
|
||||
Reference in New Issue
Block a user