Documentation ¶
Index ¶
- type Category
- func (c *Category) Delete(code string) (err error)
- func (c *Category) Exists(code string, ignoreStatus bool) (bool, error)
- func (c *Category) GenerateCode() string
- func (c *Category) Get(code string) (category *Category, err error)
- func (c *Category) GetDataInfo(code string) (dataInfo *redisdb.DataInfo, err error)
- func (c *Category) GetKeys() (codes []string, err error)
- func (c *Category) GetList() (categories []Category, err error)
- func (c *Category) Restore(code string) (err error)
- func (c *Category) Save(category *Category) (err error)
- func (c *Category) Update(category *Category) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Category ¶
type Category struct { Name string `json:"name,omitempty" redis:"name,omitempty"` Description string `json:"description,omitempty" redis:"description,omitempty"` Code string `json:"code,omitempty" redis:"code,omitempty"` redisdb.DataInfo }
func Repository ¶
func Repository() *Category
func (*Category) GenerateCode ¶
func (*Category) GetDataInfo ¶
Click to show internal directories.
Click to hide internal directories.