service

package
v1.0.42 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 11, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type FileDomainService

type FileDomainService struct {
	CloudMindUser    cloudmind_content.ICloudMindContent
	PlatformRelation platform_relation.IPlatFormRelation
}

func (*FileDomainService) LoadAuthor

func (s *FileDomainService) LoadAuthor(ctx context.Context, file *core_api.PublicFile, userId string)

func (*FileDomainService) LoadCollectCount

func (s *FileDomainService) LoadCollectCount(ctx context.Context, file *core_api.PublicFile)

func (*FileDomainService) LoadCollected

func (s *FileDomainService) LoadCollected(ctx context.Context, file *core_api.PublicFile, userId string)

func (*FileDomainService) LoadLikeCount

func (s *FileDomainService) LoadLikeCount(ctx context.Context, file *core_api.PublicFile)

func (*FileDomainService) LoadLiked

func (s *FileDomainService) LoadLiked(ctx context.Context, file *core_api.PublicFile, userId string)

func (*FileDomainService) LoadViewCount

func (s *FileDomainService) LoadViewCount(ctx context.Context, file *core_api.PublicFile)

type IFileDomainService

type IFileDomainService interface {
	LoadAuthor(ctx context.Context, file *core_api.PublicFile, userId string)
	LoadLikeCount(ctx context.Context, file *core_api.PublicFile)
	LoadViewCount(ctx context.Context, file *core_api.PublicFile)
	LoadLiked(ctx context.Context, file *core_api.PublicFile, userId string)
	LoadCollectCount(ctx context.Context, file *core_api.PublicFile)
	LoadCollected(ctx context.Context, file *core_api.PublicFile, userId string)
}

type IPostDomainService

type IPostDomainService interface {
	LoadAuthor(ctx context.Context, user *core_api.User, userId string)
	LoadLikeCount(ctx context.Context, likeCount *int64, postId string)
	LoadViewCount(ctx context.Context, viewCount *int64, postId string)
	LoadCollectCount(ctx context.Context, collectCount *int64, postId string)
	LoadLiked(ctx context.Context, liked *bool, userId, postId string)
	LoadCollected(ctx context.Context, collected *bool, userId, postId string)
}

type IProductDomainService

type IProductDomainService interface {
	LoadAuthor(ctx context.Context, user *core_api.User, userId string)
	LoadLikeCount(ctx context.Context, likeCount *int64, productId string)
	LoadViewCount(ctx context.Context, viewCount *int64, productId string)
	LoadCollectCount(ctx context.Context, collectCount *int64, productId string)
	LoadLiked(ctx context.Context, liked *bool, userId, productId string)
	LoadCollected(ctx context.Context, collected *bool, userId, productId string)
	LoadPurchaseCount(ctx context.Context, purchaseCount *int64, productId string)
	LoadStock(ctx context.Context, stock *int64, productId string)
}

type ITradeDomainService

type ITradeDomainService interface {
}

type PostDomainService

type PostDomainService struct {
	CloudMindUser    cloudmind_content.ICloudMindContent
	PlatformRelation platform_relation.IPlatFormRelation
}

func (*PostDomainService) LoadAuthor

func (s *PostDomainService) LoadAuthor(ctx context.Context, user *core_api.User, userId string)

func (*PostDomainService) LoadCollectCount

func (s *PostDomainService) LoadCollectCount(ctx context.Context, collectCount *int64, postId string)

func (*PostDomainService) LoadCollected

func (s *PostDomainService) LoadCollected(ctx context.Context, collected *bool, userId, postId string)

func (*PostDomainService) LoadLikeCount

func (s *PostDomainService) LoadLikeCount(ctx context.Context, likeCount *int64, postId string)

func (*PostDomainService) LoadLiked

func (s *PostDomainService) LoadLiked(ctx context.Context, liked *bool, userId, postId string)

func (*PostDomainService) LoadViewCount

func (s *PostDomainService) LoadViewCount(ctx context.Context, viewCount *int64, postId string)

type ProductDomainService

type ProductDomainService struct {
	CloudMindUser    cloudmind_content.ICloudMindContent
	PlatformRelation platform_relation.IPlatFormRelation
	CloudMindTrade   cloudmind_trade.ICloudMindTrade
}

func (*ProductDomainService) LoadAuthor

func (s *ProductDomainService) LoadAuthor(ctx context.Context, user *core_api.User, userId string)

func (*ProductDomainService) LoadCollectCount

func (s *ProductDomainService) LoadCollectCount(ctx context.Context, collectCount *int64, productId string)

func (*ProductDomainService) LoadCollected

func (s *ProductDomainService) LoadCollected(ctx context.Context, collected *bool, userId, productId string)

func (*ProductDomainService) LoadLikeCount

func (s *ProductDomainService) LoadLikeCount(ctx context.Context, likeCount *int64, productId string)

func (*ProductDomainService) LoadLiked

func (s *ProductDomainService) LoadLiked(ctx context.Context, liked *bool, userId, productId string)

func (*ProductDomainService) LoadPurchaseCount

func (s *ProductDomainService) LoadPurchaseCount(ctx context.Context, purchaseCount *int64, productId string)

func (*ProductDomainService) LoadStock

func (s *ProductDomainService) LoadStock(ctx context.Context, stock *int64, productId string)

func (*ProductDomainService) LoadViewCount

func (s *ProductDomainService) LoadViewCount(ctx context.Context, viewCount *int64, productId string)

type TradeDomainService

type TradeDomainService struct {
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL