refactor(model): changed types of model
Signed-off-by: SoXX <soxx@fenpa.ws>
This commit is contained in:
parent
76f3c8d97e
commit
c242a2b57a
@ -27,5 +27,5 @@ type Post interface {
|
|||||||
CheckPostNodeExistsBySourceURL(ctx context.Context, sourceUrl string) (*models.AnthrovePost, bool, error)
|
CheckPostNodeExistsBySourceURL(ctx context.Context, sourceUrl string) (*models.AnthrovePost, bool, error)
|
||||||
|
|
||||||
// LinkPostWithSource establishes a link between a post and a source in the OtterSpace graph.
|
// LinkPostWithSource establishes a link between a post and a source in the OtterSpace graph.
|
||||||
LinkPostWithSource(ctx context.Context, anthrovePostID models.AnthrovePostID, anthroveSourceDomain string, anthrovePostRelationship *models.AnthrovePostRelationship) error
|
LinkPostWithSource(ctx context.Context, anthrovePostID models.AnthrovePostID, anthroveSourceDomain models.AnthroveSourceDomain, anthrovePostRelationship *models.AnthrovePostRelationship) error
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,7 @@ type Source interface {
|
|||||||
|
|
||||||
// GetSourceLinkForSpecifiedUser GetSourceLinkForUser retrieves the links between a user and a specific source in the OtterSpace graph.
|
// GetSourceLinkForSpecifiedUser GetSourceLinkForUser retrieves the links between a user and a specific source in the OtterSpace graph.
|
||||||
// It returns a map of source domains to user-source relationships, and an error if the operation fails.
|
// It returns a map of source domains to user-source relationships, and an error if the operation fails.
|
||||||
GetSourceLinkForSpecifiedUser(ctx context.Context, anthroveUserID models.AnthroveUserID, sourceDisplayName string) (map[string]models.AnthroveUserRelationship, error)
|
GetSourceLinkForSpecifiedUser(ctx context.Context, anthroveUserID models.AnthroveUserID, sourceDisplayName models.AnthroveSourceDisplayName) (map[string]models.AnthroveUserRelationship, error)
|
||||||
|
|
||||||
// GetAllSources returns a list of Sources in the database
|
// GetAllSources returns a list of Sources in the database
|
||||||
GetAllSources(ctx context.Context) ([]models.AnthroveSource, error)
|
GetAllSources(ctx context.Context) ([]models.AnthroveSource, error)
|
||||||
|
Reference in New Issue
Block a user