-
Notifications
You must be signed in to change notification settings - Fork 4
/
decl.go
39 lines (32 loc) · 1.01 KB
/
decl.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Package category is a default implementation of interfaces declared in
// "github.com/ottemo/commerce/app/models/category" package
package category
import (
"github.com/ottemo/commerce/app/models/category"
"github.com/ottemo/commerce/db"
"github.com/ottemo/commerce/env"
)
// Package global constants
const (
ConstCollectionNameCategory = "category"
ConstCollectionNameCategoryProductJunction = "category_product"
ConstErrorModule = "category"
ConstErrorLevel = env.ConstErrorLevelActor
ConstCategoryMediaTypeImage = "image"
)
// DefaultCategory is a default implementer of InterfaceCategory
type DefaultCategory struct {
id string
Enabled bool
Name string
Description string
Image string
Parent category.InterfaceCategory
Path string
ProductIds []string
}
// DefaultCategoryCollection is a default implementer of InterfaceCategoryCollection
type DefaultCategoryCollection struct {
listCollection db.InterfaceDBCollection
listExtraAtributes []string
}