Documentation ¶
Index ¶
- func Add(userID int, title string, body string, v int) (uint, error)
- func AddLog(userID int, uID int) error
- func AddMovie(uID int, mID string, t int, s int) error
- func AddOrSaveMovie(uID int, mID string, t int, s int) error
- func AddOrSaveSearch(uID int, s string) error
- func AddOrSaveSoundLength(uID int, second int, length int) error
- func AddSearch(uID int, search string) error
- func AddSound(uID int, s int) error
- func AddSoundDetail(uID int, b GetBody) error
- func AddSoundDetailList(uID int, list []GetBody) error
- func AddTmpSound(u models.UserContributionSoundDetail) error
- func AddUpload(uID int, t string) error
- func DeleteByID(userContributionID int, userID int) error
- func DeleteSearchByUserContributionID(uID int) error
- func ExistsMovie(uID int) bool
- func ExistsSound(uID int) bool
- func GetByUserContributionID(userContributionID int) (models.UserContribution, error)
- func GetCountBySearch(search string, order string) (int, error)
- func GetCountByUserID(userID int, order string) (int, error)
- func GetDetailByUserContributionID(uID int) (models.UserContributionDetail, error)
- func GetImageIDAndAdd(userContributionID int) (uint, error)
- func GetListByUserID(userID int, order string, limit int, offset int) ([]models.UserContribution, error)
- func GetMovie(uID int, t int) (models.UserContributionMovie, error)
- func GetMovieListByMovieStatusPublic() ([]models.UserContributionMovie, error)
- func GetMovieListBySpecifiedDays(list []models.UserContributionMovie, day int) []models.UserContributionMovie
- func GetMovieMapByUserContributionIDList(uID []int, t int) (map[int]models.UserContributionMovie, error)
- func GetSearchByUserContributionID(uID int) (models.UserContributionSearch, error)
- func GetSearchListByUserContributionIDList(uID []int) ([]models.UserContributionSearch, error)
- func GetSearchWordBody(body string) (s string, err error)
- func GetSoudDetailListBySpecifiedDays(list []models.UserContributionSoundDetail, day int) []models.UserContributionSoundDetail
- func GetSoundByUserContributionID(uID int) (models.UserContributionSound, error)
- func GetSoundDetailListByMakeStatusMade() ([]models.UserContributionSoundDetail, error)
- func GetSoundDetailListByUserContributionID(uID int) ([]models.UserContributionSoundDetail, error)
- func GetSoundListByUserContributionIDList(uID []int) ([]models.UserContributionSound, error)
- func GetSoundMapByUserContributionIDList(uID []int) (map[int]models.UserContributionSound, error)
- func GetUploadByUserContributionID(uID int) (models.UserContributionUpload, error)
- func GetViewStatusPublicIDList() ([]int, error)
- func JoinSearchWord(s SearchWord) string
- func MakeSoundFile(uID int, list []models.UserContributionSoundDetail) error
- func ReplaceBodeySound(s string) (string, error)
- func Save(userContributionID int, userID int, title string, v int) error
- func SaveDetail(userContributionID int, body string) error
- func SaveSoundDetailTVoiceType(id uint, v int, userID int) error
- func SaveSoundDetailToBodySound(id uint, body string, userID int) error
- func SaveToFollowCount(u []models.UserContributionSearch, m map[int]int) error
- func TruncateSearch() error
- func UpdateSoundToMakeStatus(uID int, makeStatus int) error
- func UpdatesSoundToMakeStatusAndVoiceTypeByUserContributionID(uID int, makeStatus int, voiceType int) error
- type Contribution
- func ContributionListToPublic(list []Contribution) []Contribution
- func ContributionToPublic(c Contribution) Contribution
- func GetContributionByUserContributionID(userContributionID int) (c Contribution, err error)
- func GetListByFollowOrderValue(f []follows.OrderValue) ([]Contribution, error)
- func GetListBySearchValue(s []SearchValue) ([]Contribution, error)
- func GetListByTop(offset int, size int) ([]Contribution, error)
- type GetBody
- type GetCharacter
- type SaveBody
- type SaveCharacter
- type SearchValue
- type SearchWord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddOrSaveMovie ¶
AddOrSaveMovie 追加か保存する
func AddOrSaveSoundLength ¶
AddOrSaveSoundLength 長さを追加 or 保存する
func AddSoundDetailList ¶
AddSoundDetailList 音声詳細リストを追加する
func AddTmpSound ¶
func AddTmpSound(u models.UserContributionSoundDetail) error
AddTmpSound 一時音声ファイルを追加する
func DeleteSearchByUserContributionID ¶
DeleteSearchByUserContributionID 投稿IDから削除する
func GetByUserContributionID ¶
func GetByUserContributionID(userContributionID int) (models.UserContribution, error)
GetByUserContributionID 投稿IDから取得する
func GetCountBySearch ¶
GetCountBySearch 検索から数を取得する
func GetCountByUserID ¶
GetCountByUserID ユーザIDから数を取得する
func GetDetailByUserContributionID ¶
func GetDetailByUserContributionID(uID int) (models.UserContributionDetail, error)
GetDetailByUserContributionID 投稿IDから投稿詳細を取得する
func GetImageIDAndAdd ¶
GetImageIDAndAdd 追加して画像IDを取得する
func GetListByUserID ¶
func GetListByUserID(userID int, order string, limit int, offset int) ([]models.UserContribution, error)
GetListByUserID ユーザIDからリスト取得する
func GetMovie ¶
func GetMovie(uID int, t int) (models.UserContributionMovie, error)
GetMovie 動画を取得する
func GetMovieListByMovieStatusPublic ¶
func GetMovieListByMovieStatusPublic() ([]models.UserContributionMovie, error)
GetMovieListByMovieStatusPublic 公開中の動画リストを取得する
func GetMovieListBySpecifiedDays ¶
func GetMovieListBySpecifiedDays(list []models.UserContributionMovie, day int) []models.UserContributionMovie
GetMovieListBySpecifiedDays 指定に日数内の音声詳細を取得する
func GetMovieMapByUserContributionIDList ¶
func GetMovieMapByUserContributionIDList(uID []int, t int) (map[int]models.UserContributionMovie, error)
GetMovieMapByUserContributionIDList 投稿IDリストから動画マップを取得する
func GetSearchByUserContributionID ¶
func GetSearchByUserContributionID(uID int) (models.UserContributionSearch, error)
GetSearchByUserContributionID 投稿IDから取得する
func GetSearchListByUserContributionIDList ¶
func GetSearchListByUserContributionIDList(uID []int) ([]models.UserContributionSearch, error)
GetSearchListByUserContributionIDList 投稿IDリストからリスト取得する
func GetSearchWordBody ¶
GetSearchWordBody 検索本文を取得する
func GetSoudDetailListBySpecifiedDays ¶
func GetSoudDetailListBySpecifiedDays(list []models.UserContributionSoundDetail, day int) []models.UserContributionSoundDetail
GetSoudDetailListBySpecifiedDays 指定に日数内の音声詳細を取得する
func GetSoundByUserContributionID ¶
func GetSoundByUserContributionID(uID int) (models.UserContributionSound, error)
GetSoundByUserContributionID 投稿IDから音声を取得する
func GetSoundDetailListByMakeStatusMade ¶
func GetSoundDetailListByMakeStatusMade() ([]models.UserContributionSoundDetail, error)
GetSoundDetailListByMakeStatusMade 作成済みの音声詳細を取得する
func GetSoundDetailListByUserContributionID ¶
func GetSoundDetailListByUserContributionID(uID int) ([]models.UserContributionSoundDetail, error)
GetSoundDetailListByUserContributionID 投稿IDから音声リストを取得する
func GetSoundListByUserContributionIDList ¶
func GetSoundListByUserContributionIDList(uID []int) ([]models.UserContributionSound, error)
GetSoundListByUserContributionIDList 投稿IDリストから音声リストを取得する
func GetSoundMapByUserContributionIDList ¶
func GetSoundMapByUserContributionIDList(uID []int) (map[int]models.UserContributionSound, error)
GetSoundMapByUserContributionIDList 投稿IDリストから音声マップを取得する
func GetUploadByUserContributionID ¶
func GetUploadByUserContributionID(uID int) (models.UserContributionUpload, error)
GetUploadByUserContributionID 投稿IDからアップロードを情報を取得する
func GetViewStatusPublicIDList ¶
GetViewStatusPublicIDList 公開状態のIDリストを取得する
func MakeSoundFile ¶
func MakeSoundFile(uID int, list []models.UserContributionSoundDetail) error
MakeSoundFile 音声ファイルを作成する
func ReplaceBodeySound ¶
ReplaceBodeySound 音声本文を置き換える
func SaveSoundDetailTVoiceType ¶
SaveSoundDetailTVoiceType ボイスタイプを保存する
func SaveSoundDetailToBodySound ¶
SaveSoundDetailToBodySound 音声本文を保存する
func SaveToFollowCount ¶
func SaveToFollowCount(u []models.UserContributionSearch, m map[int]int) error
SaveToFollowCount フォロー数を保存する
func UpdateSoundToMakeStatus ¶
UpdateSoundToMakeStatus 投稿IDから作成状態を更新する
Types ¶
type Contribution ¶
type Contribution struct { ID uint `json:"id"` User user.User `json:"user"` Title string `json:"title"` Tag []tags.Tag `json:"tags"` FollowCount int `json:"followCount"` Body []GetBody `json:"body"` ViewStatus int `json:"viewStatus"` Search string `json:"search"` SoundStatus int `json:"soundStatus"` Movie models.UserContributionMovie `json:"movie"` UpdatedAt time.Time `json:"updatedAt"` CreatedAt time.Time `json:"createdAt"` }
Contribution 投稿
func ContributionListToPublic ¶
func ContributionListToPublic(list []Contribution) []Contribution
ContributionListToPublic 投稿リストから公開中を取得する(非公開状態は本文を空にする)
func ContributionToPublic ¶
func ContributionToPublic(c Contribution) Contribution
ContributionToPublic 投稿から公開中を取得する(非公開状態は本文を空にする)
func GetContributionByUserContributionID ¶
func GetContributionByUserContributionID(userContributionID int) (c Contribution, err error)
GetContributionByUserContributionID 投稿IDから取得する
func GetListByFollowOrderValue ¶
func GetListByFollowOrderValue(f []follows.OrderValue) ([]Contribution, error)
GetListByFollowOrderValue フォロー順からリストを取得する
func GetListBySearchValue ¶
func GetListBySearchValue(s []SearchValue) ([]Contribution, error)
GetListBySearchValue 検索値からリストを取得する
func GetListByTop ¶
func GetListByTop(offset int, size int) ([]Contribution, error)
GetListByTop 新着を取得する
type GetBody ¶
type GetBody struct { Priority int `json:"priority"` Body string `json:"body"` DirectionType int `json:"directionType"` TalkType int `json:"talkType"` Character GetCharacter `json:"character"` }
GetBody 取得本文
func GetBodyByUserContributionID ¶
GetBodyByUserContributionID 投稿IDから本文を取得する
func StirngToGetBody ¶
StirngToGetBody 取得本文に変換する
type GetCharacter ¶
type GetCharacter struct { ID int `json:"id"` FileName string `json:"fileName"` VoiceType int `json:"voiceType"` }
GetCharacter 取得キャラクター
type SaveBody ¶
type SaveBody struct { Priority int `json:"priority"` Body string `json:"body"` DirectionType int `json:"directionType"` TalkType int `json:"talkType"` Character SaveCharacter `json:"character"` }
SaveBody 本本
func StirngToSaveBody ¶
StirngToSaveBody 保存本文に変換する
type SaveCharacter ¶
type SaveCharacter struct { ID int `json:"id"` FileName string `json:"fileName"` VoiceType int `json:"voiceType"` }
SaveCharacter 保存キャラクター
type SearchValue ¶
SearchValue 検索値
func GetSearchValueListBySearch ¶
func GetSearchValueListBySearch(search string, order string, limit int, offset int) ([]SearchValue, error)
GetSearchValueListBySearch 検索から検索値リストを取得する