Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentRepo ¶
type ContentRepo interface { // db GetContent(ctx context.Context, id int32) (*Content, error) CreateContent(ctx context.Context, content *Content) (int32, error) UpdateContent(ctx context.Context, id int32, content *Content) error }
Content Repository Content 持久化层接口定义
type ContentUsecase ¶
type ContentUsecase interface { Get(ctx context.Context, id int32) (*Content, error) Create(ctx context.Context, content *Content) (int32, error) Update(ctx context.Context, id int32, content *Content) error }
Content Usecase Content 业务逻辑层接口定义
type IndexRepo ¶
type IndexRepo interface { // db ListIndex(ctx context.Context, page, pageSize int) ([]*Index, error) CreateIndex(ctx context.Context, index *Index) error UpdateIndex(ctx context.Context, id int32, index *Index) (int32, error) DeleteIndex(ctx context.Context, id int32) error }
Index Repository
Click to show internal directories.
Click to hide internal directories.