 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- type CollectionGroupRepo
- type CollectionGroupService
- func (cs *CollectionGroupService) AddCollectionGroup(ctx context.Context, req *schema.AddCollectionGroupReq) (err error)
- func (cs *CollectionGroupService) GetCollectionGroup(ctx context.Context, id string) (resp *schema.GetCollectionGroupResp, err error)
- func (cs *CollectionGroupService) UpdateCollectionGroup(ctx context.Context, req *schema.UpdateCollectionGroupReq, cols []string) (err error)
 
- type CollectionService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CollectionGroupRepo ¶
type CollectionGroupRepo interface {
	AddCollectionGroup(ctx context.Context, collectionGroup *entity.CollectionGroup) (err error)
	AddCollectionDefaultGroup(ctx context.Context, userID string) (collectionGroup *entity.CollectionGroup, err error)
	CreateDefaultGroupIfNotExist(ctx context.Context, userID string) (collectionGroup *entity.CollectionGroup, err error)
	UpdateCollectionGroup(ctx context.Context, collectionGroup *entity.CollectionGroup, cols []string) (err error)
	GetCollectionGroup(ctx context.Context, id string) (collectionGroup *entity.CollectionGroup, exist bool, err error)
	GetCollectionGroupPage(ctx context.Context, page, pageSize int, collectionGroup *entity.CollectionGroup) (collectionGroupList []*entity.CollectionGroup, total int64, err error)
	GetDefaultID(ctx context.Context, userID string) (collectionGroup *entity.CollectionGroup, has bool, err error)
}
    CollectionGroupRepo collectionGroup repository
type CollectionGroupService ¶
type CollectionGroupService struct {
	// contains filtered or unexported fields
}
    CollectionGroupService user service
func NewCollectionGroupService ¶
func NewCollectionGroupService(collectionGroupRepo CollectionGroupRepo) *CollectionGroupService
func (*CollectionGroupService) AddCollectionGroup ¶
func (cs *CollectionGroupService) AddCollectionGroup(ctx context.Context, req *schema.AddCollectionGroupReq) (err error)
AddCollectionGroup add collection group
func (*CollectionGroupService) GetCollectionGroup ¶
func (cs *CollectionGroupService) GetCollectionGroup(ctx context.Context, id string) (resp *schema.GetCollectionGroupResp, err error)
GetCollectionGroup get collection group one
func (*CollectionGroupService) UpdateCollectionGroup ¶
func (cs *CollectionGroupService) UpdateCollectionGroup(ctx context.Context, req *schema.UpdateCollectionGroupReq, cols []string) (err error)
UpdateCollectionGroup update collection group
type CollectionService ¶
type CollectionService struct {
	// contains filtered or unexported fields
}
    CollectionService user service
func NewCollectionService ¶
func NewCollectionService( collectionRepo collectioncommon.CollectionRepo, collectionGroupRepo CollectionGroupRepo, questionCommon *questioncommon.QuestionCommon, ) *CollectionService
func (*CollectionService) CollectionSwitch ¶
func (cs *CollectionService) CollectionSwitch(ctx context.Context, req *schema.CollectionSwitchReq) ( resp *schema.CollectionSwitchResp, err error)
 Click to show internal directories. 
   Click to hide internal directories.