Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type INote ¶
type INote interface {
GetPage(ctx context.Context, param PageParam) (r PageResult, err error)
Get(ctx context.Context, id int) (r Result, err error)
AddOne(ctx context.Context) (id int, err error)
Mod(ctx context.Context, id int, p Param) (err error)
Del(ctx context.Context, id int) (err error)
Publish(ctx context.Context, id int) error
Hide(ctx context.Context, id int) error
}
type PageParam ¶
type PageParam struct {
Title string `json:"title"` // 标题
Detail string `json:"detail"` // 详情
app.CommonParam
}
PageParam 分页参数
type PageResult ¶
PageResult 分页结果
Click to show internal directories.
Click to hide internal directories.