Versions in this module Expand all Collapse all v0 v0.2.0 Aug 15, 2020 v0.1.0 Aug 9, 2020 Changes in this version + type Entity struct + CreatedAt time.Time + Detail string + ID int + Title string + UserID int + func (e Entity) Filter() interface{} + func (e Entity) Join(f func(Entity) Entity) Entity + func (e Entity) Process() Entity + type EntityList []Entity + type Noter interface + Add func(ctx context.Context, entity Entity) (id int, err error) + AddOne func(ctx context.Context) (id int, err error) + Del func(ctx context.Context, id int) (err error) + Get func(ctx context.Context, id int) (entity Entity, err error) + GetList func(ctx context.Context, ids []int64) (entitys EntityList, err error) + GetPage func(ctx context.Context, entity Entity, param models.CommonParam) (res EntityList, total int, err error) + Mod func(ctx context.Context, id int, entity Entity) (err error) + func New() Noter + type Pages []struct + func (p Pages) Transfer() (res []Entity, total int, err error)