Documentation ¶
Index ¶
Constants ¶
View Source
const ResourceCollection = "c_resources"
Variables ¶
This section is empty.
Functions ¶
func InitIndexes ¶
Types ¶
type ResourceDAO ¶
type ResourceDAO interface { CreateResource(ctx context.Context, resource Resource) (int64, error) FindResourceById(ctx context.Context, fields []string, id int64) (Resource, error) ListResource(ctx context.Context, fields []string, modelUid string, offset, limit int64) ([]Resource, error) Count(ctx context.Context, modelUid string) (int64, error) ListResourcesByIds(ctx context.Context, fields []string, ids []int64) ([]Resource, error) DeleteResource(ctx context.Context, id int64) (int64, error) ListExcludeAndFilterResourceByIds(ctx context.Context, fields []string, modelUid string, offset, limit int64, ids []int64, filter domain.Condition) ([]Resource, error) TotalExcludeAndFilterResourceByIds(ctx context.Context, modelUid string, ids []int64, filter domain.Condition) (int64, error) PipelineByModelUid(ctx context.Context) ([]Pipeline, error) Search(ctx context.Context, text string) ([]SearchResource, error) FindSecureData(ctx context.Context, id int64, fieldUid string) (string, error) }
func NewResourceDAO ¶
func NewResourceDAO(db *mongox.Mongo) ResourceDAO
Click to show internal directories.
Click to hide internal directories.