Documentation
¶
Index ¶
- type ActivityDetailArgs
- type ClubAchievementRepo
- type ClubActivityDetailRepo
- type ClubContentRepo
- type ClubDescriptionRepo
- type ClubImageRepo
- type ClubLinkArgs
- type ClubLinkRepo
- type ClubNameRepo
- type ClubPageCreateArgs
- type ClubPageRepo
- type ClubPageUpdateArgs
- type ClubPlaceArgs
- type ClubPlaceRepo
- type ClubRemarkRepo
- type ClubRepository
- func (r *ClubRepository) CreateAchievement(clubUUID string, achievements []string) error
- func (r *ClubRepository) CreateAchievementWithTx(tx *gorm.DB, clubUUID string, achievements []string) error
- func (r *ClubRepository) CreateActivityDetail(uuid string, args []ActivityDetailArgs) error
- func (r *ClubRepository) CreateActivityDetailWithTx(tx *gorm.DB, uuid string, args []ActivityDetailArgs) error
- func (r *ClubRepository) CreateContent(clubUUID string, contents []string) error
- func (r *ClubRepository) CreateContentWithTx(tx *gorm.DB, clubUUID string, contents []string) error
- func (r *ClubRepository) CreateImage(clubUUID string, imageIDs []uint32) error
- func (r *ClubRepository) CreateImageWithTx(tx *gorm.DB, clubUUID string, imageIDs []uint32) error
- func (r *ClubRepository) CreateLink(clubUUID string, args []ClubLinkArgs) error
- func (r *ClubRepository) CreateLinkWithTx(tx *gorm.DB, clubUUID string, args []ClubLinkArgs) error
- func (r *ClubRepository) CreatePage(uuid string, args ClubPageCreateArgs) (*clubs.ClubPage, error)
- func (r *ClubRepository) CreatePlace(args []ClubPlaceArgs) error
- func (r *ClubRepository) CreatePlaceWithTx(tx *gorm.DB, args []ClubPlaceArgs) error
- func (r *ClubRepository) CreateSchedule(clubUUID string, args []ClubScheduleArgs) error
- func (r *ClubRepository) CreateScheduleWithTx(tx *gorm.DB, clubUUID string, args []ClubScheduleArgs) error
- func (r *ClubRepository) CreateTPRemark(uuid string, args []ClubTPRemarkArgs) error
- func (r *ClubRepository) CreateTPRemarkWithTx(tx *gorm.DB, uuid string, args []ClubTPRemarkArgs) error
- func (r *ClubRepository) CreateTime(args []ClubTimeArgs) error
- func (r *ClubRepository) CreateTimeWithTx(tx *gorm.DB, args []ClubTimeArgs) error
- func (r *ClubRepository) CreateVideo(clubUUID string, path []string) error
- func (r *ClubRepository) CreateVideoWithTx(tx *gorm.DB, clubUUID string, path []string) error
- func (r *ClubRepository) DeletePageByClubSlug(slug string) error
- func (r *ClubRepository) DeletePageByClubUUID(uuid string) error
- func (r *ClubRepository) DoSearch(content string) ([]clubs.ClubPageExternalInfo, error)
- func (r *ClubRepository) GetAchievementByID(achievementID uint32) (*clubs.ClubAchievement, error)
- func (r *ClubRepository) GetAchievementsByClubUUID(uuid string) ([]clubs.ClubAchievement, error)
- func (r *ClubRepository) GetActivityDetail(uuid string) ([]clubs.ActivityDetail, error)
- func (r *ClubRepository) GetAllLinks() ([]clubs.ClubLink, error)
- func (r *ClubRepository) GetAllPages() ([]clubs.ClubPageExternalInfo, error)
- func (r *ClubRepository) GetAllRelations(uuid string) ([]clubs.DetailRelations, error)
- func (r *ClubRepository) GetClubDescription(uuid string) (string, error)
- func (r *ClubRepository) GetClubThumbnailByID(thumbnailID uint32) (*clubs.ClubThumbnail, error)
- func (r *ClubRepository) GetClubThumbnailByUUID(clubUUID string) (*clubs.ClubThumbnail, error)
- func (r *ClubRepository) GetContentByID(contentID uint32) (*clubs.ClubContent, error)
- func (r *ClubRepository) GetContentsByClubUUID(uuid string) ([]clubs.ClubContent, error)
- func (r *ClubRepository) GetImageByID(imageID uint32) (*clubs.ClubImage, error)
- func (r *ClubRepository) GetImagesByClubUUID(uuid string) ([]clubs.ClubImage, error)
- func (r *ClubRepository) GetLinkByID(linkID uint32) (*clubs.ClubLink, error)
- func (r *ClubRepository) GetLinksByClubUUID(uuid string) ([]clubs.ClubLink, error)
- func (r *ClubRepository) GetPageByClubSlug(clubSlug string) (*clubs.ClubPageInternalInfo, error)
- func (r *ClubRepository) GetPageByClubUUID(uuid string) (*clubs.ClubPageInternalInfo, error)
- func (r *ClubRepository) GetPlaceByID(placeID uint32) (*clubs.ClubPlace, error)
- func (r *ClubRepository) GetPlacesByClubUUID(uuid string) ([]clubs.ClubPlace, error)
- func (r *ClubRepository) GetRestrictedPageByClubSlug(clubSlug string) (*clubs.ClubPageRestrictedInfo, error)
- func (r *ClubRepository) GetRestrictedPageByClubUUID(uuid string) (*clubs.ClubPageRestrictedInfo, error)
- func (r *ClubRepository) GetScheduleByID(scheduleID uint32) (*clubs.ClubSchedule, error)
- func (r *ClubRepository) GetSchedulesByClubUUID(uuid string) ([]clubs.ClubSchedule, error)
- func (r *ClubRepository) GetTPRemarksByClubUUID(uuid string) ([]clubs.ClubRemark, error)
- func (r *ClubRepository) GetTimeByID(timeID uint32) (*clubs.ClubTime, error)
- func (r *ClubRepository) GetTimesByClubUUID(uuid string) ([]clubs.ClubTime, error)
- func (r *ClubRepository) GetVideoByID(videoID uint32) (*clubs.ClubVideo, error)
- func (r *ClubRepository) GetVideosByClubUUID(uuid string) ([]clubs.ClubVideo, error)
- func (r *ClubRepository) UpdateAchievement(clubUUID string, achievements []string) error
- func (r *ClubRepository) UpdateAchievementWithTx(tx *gorm.DB, clubUUID string, achievements []string) error
- func (r *ClubRepository) UpdateActivityDetailWithTx(tx *gorm.DB, uuid string, args []ActivityDetailArgs) error
- func (r *ClubRepository) UpdateAllRelations(uuid string, timeArgs []ClubTimeArgs, placeArgs []ClubPlaceArgs, ...) error
- func (r *ClubRepository) UpdateClubDescription(uuid string, desc string) error
- func (r *ClubRepository) UpdateClubName(uuid string, name string) error
- func (r *ClubRepository) UpdateClubNameWithTx(tx *gorm.DB, uuid string, name string) error
- func (r *ClubRepository) UpdateClubThumbnail(clubUUID string, thumbnailID uint32) error
- func (r *ClubRepository) UpdateClubThumbnailWithTx(tx *gorm.DB, clubUUID string, thumbnailID uint32) error
- func (r *ClubRepository) UpdateContent(clubUUID string, contents []string) error
- func (r *ClubRepository) UpdateContentWithTx(tx *gorm.DB, clubUUID string, contents []string) error
- func (r *ClubRepository) UpdateImage(clubUUID string, imageIDs []uint32) error
- func (r *ClubRepository) UpdateImageWithTx(tx *gorm.DB, clubUUID string, imageIDs []uint32) error
- func (r *ClubRepository) UpdateLink(clubUUID string, args []ClubLinkArgs) error
- func (r *ClubRepository) UpdateLinkWithTx(tx *gorm.DB, clubUUID string, args []ClubLinkArgs) error
- func (r *ClubRepository) UpdatePageByClubSlug(clubSlug string, args ClubPageUpdateArgs) error
- func (r *ClubRepository) UpdatePageByClubUUID(uuid string, args ClubPageUpdateArgs) error
- func (r *ClubRepository) UpdateSchedule(clubUUID string, args []ClubScheduleArgs) error
- func (r *ClubRepository) UpdateScheduleWithTx(tx *gorm.DB, clubUUID string, args []ClubScheduleArgs) error
- func (r *ClubRepository) UpdateTPRemarkWithTx(tx *gorm.DB, uuid string, args []ClubTPRemarkArgs) error
- func (r *ClubRepository) UpdateVideo(clubUUID string, path []string) error
- func (r *ClubRepository) UpdateVideoWithTx(tx *gorm.DB, clubUUID string, path []string) error
- type ClubScheduleArgs
- type ClubScheduleRepo
- type ClubSearchRepo
- type ClubTPRemarkArgs
- type ClubThumbnailRepo
- type ClubTimeArgs
- type ClubTimeRepo
- type ClubVideoRepo
- type IClubRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActivityDetailArgs ¶
type ClubAchievementRepo ¶
type ClubAchievementRepo interface {
GetAchievementByID(achievementID uint32) (*clubs.ClubAchievement, error)
GetAchievementsByClubUUID(uuid string) ([]clubs.ClubAchievement, error)
CreateAchievement(clubUUID string, achievements []string) error
CreateAchievementWithTx(tx *gorm.DB, clubUUID string, achievements []string) error
UpdateAchievement(clubUUID string, achievements []string) error
UpdateAchievementWithTx(tx *gorm.DB, clubUUID string, achievements []string) error
}
type ClubActivityDetailRepo ¶
type ClubActivityDetailRepo interface {
GetActivityDetail(uuid string) ([]clubs.ActivityDetail, error)
GetAllRelations(uuid string) ([]clubs.DetailRelations, error)
CreateActivityDetail(uuid string, args []ActivityDetailArgs) error
CreateActivityDetailWithTx(tx *gorm.DB, uuid string, args []ActivityDetailArgs) error
UpdateActivityDetailWithTx(tx *gorm.DB, uuid string, args []ActivityDetailArgs) error
UpdateAllRelations(uuid string, timeArgs []ClubTimeArgs, placeArgs []ClubPlaceArgs, detailArgs []ActivityDetailArgs, tpremarkArgs []ClubTPRemarkArgs) error
}
type ClubContentRepo ¶
type ClubContentRepo interface {
GetContentByID(contentID uint32) (*clubs.ClubContent, error)
GetContentsByClubUUID(uuid string) ([]clubs.ClubContent, error)
CreateContent(clubUUID string, content []string) error
CreateContentWithTx(tx *gorm.DB, clubUUID string, contents []string) error
UpdateContent(clubUUID string, content []string) error
UpdateContentWithTx(tx *gorm.DB, clubUUID string, contents []string) error
}
type ClubDescriptionRepo ¶
type ClubImageRepo ¶
type ClubImageRepo interface {
GetImageByID(imageID uint32) (*clubs.ClubImage, error)
GetImagesByClubUUID(uuid string) ([]clubs.ClubImage, error)
CreateImage(clubUUID string, imageIDs []uint32) error
CreateImageWithTx(tx *gorm.DB, clubUUID string, imageIDs []uint32) error
UpdateImage(clubUUID string, imageIDs []uint32) error
UpdateImageWithTx(tx *gorm.DB, clubUUID string, imageIDs []uint32) error
}
type ClubLinkArgs ¶
type ClubLinkRepo ¶
type ClubLinkRepo interface {
GetAllLinks() ([]clubs.ClubLink, error)
GetLinkByID(linkID uint32) (*clubs.ClubLink, error)
GetLinksByClubUUID(uuid string) ([]clubs.ClubLink, error)
CreateLink(clubUUID string, args []ClubLinkArgs) error
CreateLinkWithTx(tx *gorm.DB, clubUUID string, args []ClubLinkArgs) error
UpdateLink(clubUUID string, args []ClubLinkArgs) error
UpdateLinkWithTx(tx *gorm.DB, clubUUID string, args []ClubLinkArgs) error
}
type ClubNameRepo ¶ added in v0.1.3
type ClubPageCreateArgs ¶
type ClubPageCreateArgs struct {
Name string
Desc string
ShortDesc string
Campus consts.CampusType
ClubType consts.ClubType
ClubRemark string
ScheduleRemark string
Visible bool
Contents []string
Links []ClubLinkArgs
Schedules []ClubScheduleArgs
Achievements []string
Images []uint32
Videos []string
Times []ClubTimeArgs
Places []ClubPlaceArgs
TPRemark []ClubTPRemarkArgs
ActivityDetails []ActivityDetailArgs
}
type ClubPageRepo ¶
type ClubPageRepo interface {
GetAllPages() ([]clubs.ClubPageExternalInfo, error)
GetPageByClubUUID(uuid string) (*clubs.ClubPageInternalInfo, error)
GetRestrictedPageByClubUUID(uuid string) (*clubs.ClubPageRestrictedInfo, error)
GetPageByClubSlug(clubSlug string) (*clubs.ClubPageInternalInfo, error)
GetRestrictedPageByClubSlug(clubSlug string) (*clubs.ClubPageRestrictedInfo, error)
CreatePage(uuid string, args ClubPageCreateArgs) (*clubs.ClubPage, error)
UpdatePageByClubUUID(uuid string, args ClubPageUpdateArgs) error
UpdatePageByClubSlug(clubSlug string, args ClubPageUpdateArgs) error
DeletePageByClubUUID(uuid string) error
DeletePageByClubSlug(slug string) error
}
type ClubPageUpdateArgs ¶
type ClubPageUpdateArgs struct {
Name string
Desc string
ShortDesc string
ClubRemark string
ScheduleRemark string
Contents []string
Links []ClubLinkArgs
Schedules []ClubScheduleArgs
Achievements []string
Images []uint32
Videos []string
Times []ClubTimeArgs
Places []ClubPlaceArgs
TPRemark []ClubTPRemarkArgs
ActivityDetails []ActivityDetailArgs
}
type ClubPlaceArgs ¶
type ClubPlaceRepo ¶
type ClubRemarkRepo ¶
type ClubRemarkRepo interface {
GetTPRemarksByClubUUID(uuid string) ([]clubs.ClubRemark, error)
CreateTPRemark(uuid string, args []ClubTPRemarkArgs) error
CreateTPRemarkWithTx(tx *gorm.DB, uuid string, args []ClubTPRemarkArgs) error
UpdateTPRemarkWithTx(tx *gorm.DB, uuid string, args []ClubTPRemarkArgs) error
}
type ClubRepository ¶
type ClubRepository struct {
// contains filtered or unexported fields
}
func NewClubRepository ¶
func NewClubRepository(logger *zap.Logger, db *gorm.DB) *ClubRepository
func (*ClubRepository) CreateAchievement ¶
func (r *ClubRepository) CreateAchievement(clubUUID string, achievements []string) error
func (*ClubRepository) CreateAchievementWithTx ¶
func (*ClubRepository) CreateActivityDetail ¶
func (r *ClubRepository) CreateActivityDetail(uuid string, args []ActivityDetailArgs) error
func (*ClubRepository) CreateActivityDetailWithTx ¶
func (r *ClubRepository) CreateActivityDetailWithTx(tx *gorm.DB, uuid string, args []ActivityDetailArgs) error
func (*ClubRepository) CreateContent ¶
func (r *ClubRepository) CreateContent(clubUUID string, contents []string) error
func (*ClubRepository) CreateContentWithTx ¶
func (*ClubRepository) CreateImage ¶
func (r *ClubRepository) CreateImage(clubUUID string, imageIDs []uint32) error
func (*ClubRepository) CreateImageWithTx ¶
func (*ClubRepository) CreateLink ¶
func (r *ClubRepository) CreateLink(clubUUID string, args []ClubLinkArgs) error
func (*ClubRepository) CreateLinkWithTx ¶
func (r *ClubRepository) CreateLinkWithTx(tx *gorm.DB, clubUUID string, args []ClubLinkArgs) error
func (*ClubRepository) CreatePage ¶
func (r *ClubRepository) CreatePage(uuid string, args ClubPageCreateArgs) (*clubs.ClubPage, error)
func (*ClubRepository) CreatePlace ¶
func (r *ClubRepository) CreatePlace(args []ClubPlaceArgs) error
func (*ClubRepository) CreatePlaceWithTx ¶
func (r *ClubRepository) CreatePlaceWithTx(tx *gorm.DB, args []ClubPlaceArgs) error
func (*ClubRepository) CreateSchedule ¶
func (r *ClubRepository) CreateSchedule(clubUUID string, args []ClubScheduleArgs) error
func (*ClubRepository) CreateScheduleWithTx ¶
func (r *ClubRepository) CreateScheduleWithTx(tx *gorm.DB, clubUUID string, args []ClubScheduleArgs) error
func (*ClubRepository) CreateTPRemark ¶
func (r *ClubRepository) CreateTPRemark(uuid string, args []ClubTPRemarkArgs) error
func (*ClubRepository) CreateTPRemarkWithTx ¶
func (r *ClubRepository) CreateTPRemarkWithTx(tx *gorm.DB, uuid string, args []ClubTPRemarkArgs) error
func (*ClubRepository) CreateTime ¶
func (r *ClubRepository) CreateTime(args []ClubTimeArgs) error
func (*ClubRepository) CreateTimeWithTx ¶
func (r *ClubRepository) CreateTimeWithTx(tx *gorm.DB, args []ClubTimeArgs) error
func (*ClubRepository) CreateVideo ¶
func (r *ClubRepository) CreateVideo(clubUUID string, path []string) error
func (*ClubRepository) CreateVideoWithTx ¶
func (*ClubRepository) DeletePageByClubSlug ¶
func (r *ClubRepository) DeletePageByClubSlug(slug string) error
func (*ClubRepository) DeletePageByClubUUID ¶
func (r *ClubRepository) DeletePageByClubUUID(uuid string) error
func (*ClubRepository) DoSearch ¶ added in v0.0.3
func (r *ClubRepository) DoSearch(content string) ([]clubs.ClubPageExternalInfo, error)
func (*ClubRepository) GetAchievementByID ¶
func (r *ClubRepository) GetAchievementByID(achievementID uint32) (*clubs.ClubAchievement, error)
func (*ClubRepository) GetAchievementsByClubUUID ¶
func (r *ClubRepository) GetAchievementsByClubUUID(uuid string) ([]clubs.ClubAchievement, error)
func (*ClubRepository) GetActivityDetail ¶
func (r *ClubRepository) GetActivityDetail(uuid string) ([]clubs.ActivityDetail, error)
func (*ClubRepository) GetAllLinks ¶
func (r *ClubRepository) GetAllLinks() ([]clubs.ClubLink, error)
func (*ClubRepository) GetAllPages ¶
func (r *ClubRepository) GetAllPages() ([]clubs.ClubPageExternalInfo, error)
func (*ClubRepository) GetAllRelations ¶
func (r *ClubRepository) GetAllRelations(uuid string) ([]clubs.DetailRelations, error)
func (*ClubRepository) GetClubDescription ¶
func (r *ClubRepository) GetClubDescription(uuid string) (string, error)
func (*ClubRepository) GetClubThumbnailByID ¶
func (r *ClubRepository) GetClubThumbnailByID(thumbnailID uint32) (*clubs.ClubThumbnail, error)
func (*ClubRepository) GetClubThumbnailByUUID ¶
func (r *ClubRepository) GetClubThumbnailByUUID(clubUUID string) (*clubs.ClubThumbnail, error)
func (*ClubRepository) GetContentByID ¶
func (r *ClubRepository) GetContentByID(contentID uint32) (*clubs.ClubContent, error)
func (*ClubRepository) GetContentsByClubUUID ¶
func (r *ClubRepository) GetContentsByClubUUID(uuid string) ([]clubs.ClubContent, error)
func (*ClubRepository) GetImageByID ¶
func (r *ClubRepository) GetImageByID(imageID uint32) (*clubs.ClubImage, error)
func (*ClubRepository) GetImagesByClubUUID ¶
func (r *ClubRepository) GetImagesByClubUUID(uuid string) ([]clubs.ClubImage, error)
func (*ClubRepository) GetLinkByID ¶
func (r *ClubRepository) GetLinkByID(linkID uint32) (*clubs.ClubLink, error)
func (*ClubRepository) GetLinksByClubUUID ¶
func (r *ClubRepository) GetLinksByClubUUID(uuid string) ([]clubs.ClubLink, error)
func (*ClubRepository) GetPageByClubSlug ¶
func (r *ClubRepository) GetPageByClubSlug(clubSlug string) (*clubs.ClubPageInternalInfo, error)
func (*ClubRepository) GetPageByClubUUID ¶
func (r *ClubRepository) GetPageByClubUUID(uuid string) (*clubs.ClubPageInternalInfo, error)
func (*ClubRepository) GetPlaceByID ¶
func (r *ClubRepository) GetPlaceByID(placeID uint32) (*clubs.ClubPlace, error)
func (*ClubRepository) GetPlacesByClubUUID ¶
func (r *ClubRepository) GetPlacesByClubUUID(uuid string) ([]clubs.ClubPlace, error)
func (*ClubRepository) GetRestrictedPageByClubSlug ¶
func (r *ClubRepository) GetRestrictedPageByClubSlug(clubSlug string) (*clubs.ClubPageRestrictedInfo, error)
func (*ClubRepository) GetRestrictedPageByClubUUID ¶
func (r *ClubRepository) GetRestrictedPageByClubUUID(uuid string) (*clubs.ClubPageRestrictedInfo, error)
func (*ClubRepository) GetScheduleByID ¶
func (r *ClubRepository) GetScheduleByID(scheduleID uint32) (*clubs.ClubSchedule, error)
func (*ClubRepository) GetSchedulesByClubUUID ¶
func (r *ClubRepository) GetSchedulesByClubUUID(uuid string) ([]clubs.ClubSchedule, error)
func (*ClubRepository) GetTPRemarksByClubUUID ¶
func (r *ClubRepository) GetTPRemarksByClubUUID(uuid string) ([]clubs.ClubRemark, error)
func (*ClubRepository) GetTimeByID ¶
func (r *ClubRepository) GetTimeByID(timeID uint32) (*clubs.ClubTime, error)
func (*ClubRepository) GetTimesByClubUUID ¶
func (r *ClubRepository) GetTimesByClubUUID(uuid string) ([]clubs.ClubTime, error)
func (*ClubRepository) GetVideoByID ¶
func (r *ClubRepository) GetVideoByID(videoID uint32) (*clubs.ClubVideo, error)
func (*ClubRepository) GetVideosByClubUUID ¶
func (r *ClubRepository) GetVideosByClubUUID(uuid string) ([]clubs.ClubVideo, error)
func (*ClubRepository) UpdateAchievement ¶
func (r *ClubRepository) UpdateAchievement(clubUUID string, achievements []string) error
func (*ClubRepository) UpdateAchievementWithTx ¶
func (*ClubRepository) UpdateActivityDetailWithTx ¶
func (r *ClubRepository) UpdateActivityDetailWithTx(tx *gorm.DB, uuid string, args []ActivityDetailArgs) error
func (*ClubRepository) UpdateAllRelations ¶
func (r *ClubRepository) UpdateAllRelations(uuid string, timeArgs []ClubTimeArgs, placeArgs []ClubPlaceArgs, detailArgs []ActivityDetailArgs, tpremarkArgs []ClubTPRemarkArgs) error
func (*ClubRepository) UpdateClubDescription ¶
func (r *ClubRepository) UpdateClubDescription(uuid string, desc string) error
func (*ClubRepository) UpdateClubName ¶ added in v0.1.3
func (r *ClubRepository) UpdateClubName(uuid string, name string) error
クラブ(サークル)名の更新を行います
func (*ClubRepository) UpdateClubNameWithTx ¶ added in v0.1.3
クラブ(サークル)名の更新を行います(トランザクション)
func (*ClubRepository) UpdateClubThumbnail ¶
func (r *ClubRepository) UpdateClubThumbnail(clubUUID string, thumbnailID uint32) error
func (*ClubRepository) UpdateClubThumbnailWithTx ¶
func (*ClubRepository) UpdateContent ¶
func (r *ClubRepository) UpdateContent(clubUUID string, contents []string) error
func (*ClubRepository) UpdateContentWithTx ¶
func (*ClubRepository) UpdateImage ¶
func (r *ClubRepository) UpdateImage(clubUUID string, imageIDs []uint32) error
func (*ClubRepository) UpdateImageWithTx ¶
func (*ClubRepository) UpdateLink ¶
func (r *ClubRepository) UpdateLink(clubUUID string, args []ClubLinkArgs) error
func (*ClubRepository) UpdateLinkWithTx ¶
func (r *ClubRepository) UpdateLinkWithTx(tx *gorm.DB, clubUUID string, args []ClubLinkArgs) error
func (*ClubRepository) UpdatePageByClubSlug ¶
func (r *ClubRepository) UpdatePageByClubSlug(clubSlug string, args ClubPageUpdateArgs) error
func (*ClubRepository) UpdatePageByClubUUID ¶
func (r *ClubRepository) UpdatePageByClubUUID(uuid string, args ClubPageUpdateArgs) error
func (*ClubRepository) UpdateSchedule ¶
func (r *ClubRepository) UpdateSchedule(clubUUID string, args []ClubScheduleArgs) error
func (*ClubRepository) UpdateScheduleWithTx ¶
func (r *ClubRepository) UpdateScheduleWithTx(tx *gorm.DB, clubUUID string, args []ClubScheduleArgs) error
func (*ClubRepository) UpdateTPRemarkWithTx ¶
func (r *ClubRepository) UpdateTPRemarkWithTx(tx *gorm.DB, uuid string, args []ClubTPRemarkArgs) error
func (*ClubRepository) UpdateVideo ¶
func (r *ClubRepository) UpdateVideo(clubUUID string, path []string) error
func (*ClubRepository) UpdateVideoWithTx ¶
type ClubScheduleArgs ¶
type ClubScheduleRepo ¶
type ClubScheduleRepo interface {
GetScheduleByID(scheduleID uint32) (*clubs.ClubSchedule, error)
GetSchedulesByClubUUID(uuid string) ([]clubs.ClubSchedule, error)
CreateSchedule(clubUUID string, args []ClubScheduleArgs) error
CreateScheduleWithTx(tx *gorm.DB, clubUUID string, args []ClubScheduleArgs) error
UpdateSchedule(clubUUID string, args []ClubScheduleArgs) error
UpdateScheduleWithTx(tx *gorm.DB, clubUUID string, args []ClubScheduleArgs) error
}
type ClubSearchRepo ¶ added in v0.0.3
type ClubSearchRepo interface {
DoSearch(content string) ([]clubs.ClubPageExternalInfo, error)
}
type ClubTPRemarkArgs ¶
type ClubThumbnailRepo ¶
type ClubThumbnailRepo interface {
GetClubThumbnailByID(thumbnailID uint32) (*clubs.ClubThumbnail, error)
GetClubThumbnailByUUID(clubUUID string) (*clubs.ClubThumbnail, error)
UpdateClubThumbnail(clubUUID string, thumbnailID uint32) error
UpdateClubThumbnailWithTx(tx *gorm.DB, clubUUID string, thumbnailID uint32) error
}
type ClubTimeArgs ¶
type ClubTimeRepo ¶
type ClubVideoRepo ¶
type ClubVideoRepo interface {
GetVideoByID(videoID uint32) (*clubs.ClubVideo, error)
GetVideosByClubUUID(uuid string) ([]clubs.ClubVideo, error)
CreateVideo(clubUUID string, path []string) error
CreateVideoWithTx(tx *gorm.DB, clubUUID string, path []string) error
UpdateVideo(clubUUID string, path []string) error
UpdateVideoWithTx(tx *gorm.DB, clubUUID string, path []string) error
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.