Documentation ¶
Index ¶
- type ITagDao
- type TagDao
- func (d *TagDao) Create(ctx context.Context, tag *Tags) (string, error)
- func (d *TagDao) DeleteById(ctx context.Context, id primitive.ObjectID) error
- func (d *TagDao) GetById(ctx context.Context, id primitive.ObjectID) (*Tags, error)
- func (d *TagDao) GetByRoute(ctx context.Context, route string) (*Tags, error)
- func (d *TagDao) GetEnabled(ctx context.Context) ([]*Tags, error)
- func (d *TagDao) GetTags(ctx context.Context) ([]*Tags, error)
- func (d *TagDao) ModifyEnabled(ctx context.Context, id primitive.ObjectID, enabled bool) error
- func (d *TagDao) QuerySkipAndSetLimit(ctx context.Context, cond bson.D, findOptions *options.FindOptions) ([]*Tags, int64, error)
- func (d *TagDao) RecoverTag(ctx context.Context, tag *Tags) error
- type Tags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ITagDao ¶
type ITagDao interface { GetTags(ctx context.Context) ([]*Tags, error) GetByRoute(ctx context.Context, route string) (*Tags, error) QuerySkipAndSetLimit(ctx context.Context, cond bson.D, findOptions *options.FindOptions) ([]*Tags, int64, error) Create(ctx context.Context, tag *Tags) (string, error) ModifyEnabled(ctx context.Context, id primitive.ObjectID, enabled bool) error GetById(ctx context.Context, id primitive.ObjectID) (*Tags, error) DeleteById(ctx context.Context, id primitive.ObjectID) error RecoverTag(ctx context.Context, tag *Tags) error GetEnabled(ctx context.Context) ([]*Tags, error) }
type TagDao ¶
type TagDao struct {
// contains filtered or unexported fields
}
func (*TagDao) DeleteById ¶
func (*TagDao) GetByRoute ¶
func (*TagDao) ModifyEnabled ¶
func (*TagDao) QuerySkipAndSetLimit ¶
Click to show internal directories.
Click to hide internal directories.