Documentation ¶
Index ¶
- Constants
- func Add(ctx context.Context, pid int64, name, description string) (int64, time.Time, error)
- func Change(ctx context.Context, id int64, name, description string) (time.Time, error)
- func Init() map[int64]*DataOfGroup
- func LastModified() (modtime time.Time)
- func Move(ctx context.Context, id, pid int64) (time.Time, error)
- func Remove(ctx context.Context, args []interface{}) (time.Time, error)
- type DataOfGroup
Constants ¶
View Source
const RootID = 1
Variables ¶
This section is empty.
Functions ¶
func Init ¶
func Init() map[int64]*DataOfGroup
func LastModified ¶
Types ¶
type DataOfGroup ¶
type DataOfGroup struct { ID int64 `xorm:"pk autoincr 'id'"` Parent int64 `xorm:"'parent' default(0)"` Name string `xorm:"unique 'name' default('') "` Description string `xorm:"'description' default('') "` }
func (DataOfGroup) TableName ¶
func (DataOfGroup) TableName() string
Click to show internal directories.
Click to hide internal directories.