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 INote interface + 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) (r Result, err error) + GetPage func(ctx context.Context, param PageParam) (r PageResult, err error) + Hide func(ctx context.Context, id int) error + Mod func(ctx context.Context, id int, p Param) (err error) + Publish func(ctx context.Context, id int) error + func New(nm note.Noter) INote + type ModParam struct + NoteID int + func (m ModParam) Check(ctx context.Context) error + type PageParam struct + Detail string + Title string + type PageResult struct + List []Result + Total int + type Param struct + Detail string + Title string + func (p Param) Check(ctx context.Context) error + type Result struct + CreatedAt int64 + Detail string + NoteID int + Title string + UserName string + func (r Result) Init(single note.Entity) (Result, error)