Documentation ¶
Index ¶
- Constants
- func Begin() *gorm.DB
- func Commit(db *gorm.DB)
- func Create(dbModel interface{}) error
- func Delete(dbModel interface{}) error
- func GeScanWhere(dest interface{}, name string, where string, bindList []map[string]interface{}, ...) error
- func GetCount(dbModel interface{}, name string, where string, ...) (int, error)
- func GetListWhere(dbModel interface{}, where string, bindList []map[string]interface{}, ...) (*gorm.DB, error)
- func GetWhere(dbModel interface{}, where string, bindList []map[string]interface{}, ...) (*gorm.DB, error)
- func InsertBatch(tableName string, add []map[string]interface{}) error
- func Lock(tableName string, id int) error
- func Rollback(db *gorm.DB)
- func Save(dbModel interface{}) error
- func Truncate(tableName string) error
- func Update(dbModel interface{}, s []interface{}, where string, ...) (*gorm.DB, error)
- func Updates(dbModel interface{}, s interface{}, where string, ...) (*gorm.DB, error)
- type BaseModel
- type ContributionTotalFollows
- type LogBugReport
- type LogContributionImage
- type LogProblemContributionReport
- type LogQuestion
- type LogUserContribution
- type UserCharacterImage
- func (u *UserCharacterImage) Add() error
- func (u *UserCharacterImage) Delete() error
- func (u *UserCharacterImage) GetByID(id int) (userCharacterImage UserCharacterImage, db *gorm.DB, err error)
- func (u *UserCharacterImage) GetListByUserID(uID int) (userCharacterImage []UserCharacterImage, db *gorm.DB, err error)
- func (u *UserCharacterImage) Save() error
- type UserContribution
- func (u *UserContribution) Delete() error
- func (u *UserContribution) GetByID(id int) (userContribution UserContribution, db *gorm.DB, err error)
- func (u *UserContribution) GetByTop(o int, s int) (userContributionList []UserContribution, db *gorm.DB, err error)
- func (u *UserContribution) GetCountByUserID(userID int, order string) (int, error)
- func (u *UserContribution) GetIDAndAdd() (uint, error)
- func (u *UserContribution) GetListByIDList(idList []int) (userContributionList []UserContribution, db *gorm.DB, err error)
- func (u *UserContribution) GetListByUserID(userID int, order string, limit int, offset int) (userContribution []UserContribution, db *gorm.DB, err error)
- func (u *UserContribution) GetListByViewStatusPublic() (userContributionList []UserContribution, db *gorm.DB, err error)
- func (u *UserContribution) Save() error
- type UserContributionDetail
- type UserContributionFollow
- func (u *UserContributionFollow) Add() error
- func (u *UserContributionFollow) Delete() error
- func (u *UserContributionFollow) GetByID(id uint) (userContributionFollow UserContributionFollow, db *gorm.DB, err error)
- func (u *UserContributionFollow) GetByUserIDAndUserContributionID(uID int, ucID int) (userContributionFollow UserContributionFollow, db *gorm.DB, err error)
- func (u *UserContributionFollow) GetCountByUserContributionID(ucID int) (int, error)
- func (u *UserContributionFollow) GetCountByUserID(uID int, order string) (int, error)
- func (u *UserContributionFollow) GetCountByUserIDAndUserContributionID(uID int, ucID int) (int, error)
- func (u *UserContributionFollow) GetListByUserContributionID(ucID int) (userContributionFollow []UserContributionFollow, db *gorm.DB, err error)
- func (u *UserContributionFollow) GetListByUserContributionIDList(ucID []int) (userContributionFollow []UserContributionFollow, db *gorm.DB, err error)
- func (u *UserContributionFollow) GetListByUserID(uID int, order string, limit int, offset int) (userContributionFollow []UserContributionFollow, db *gorm.DB, err error)
- type UserContributionMovie
- func (u *UserContributionMovie) Add() error
- func (u *UserContributionMovie) GetByUserContributionID(uID int, t int) (userContributionMovie UserContributionMovie, db *gorm.DB, err error)
- func (u *UserContributionMovie) GetListByMovieStatusPublic() (userContributionMovie []UserContributionMovie, db *gorm.DB, err error)
- func (u *UserContributionMovie) GetListByUserContributionIDList(uID []int, t int) (userContributionMovie []UserContributionMovie, db *gorm.DB, err error)
- func (u *UserContributionMovie) Save() error
- type UserContributionSearch
- func (u *UserContributionSearch) Add() error
- func (u *UserContributionSearch) Delete() error
- func (u *UserContributionSearch) GetByUserContributionID(id int) (userContributionSearch UserContributionSearch, db *gorm.DB, err error)
- func (u *UserContributionSearch) GetCountBySearch(search string, order string) (int, error)
- func (u *UserContributionSearch) GetListBySearch(search string, order string, limit int, offset int) (userContributionSearch []UserContributionSearch, db *gorm.DB, err error)
- func (u *UserContributionSearch) GetListByUserContributionIDList(id []int) (userContributionSearch []UserContributionSearch, db *gorm.DB, err error)
- func (u *UserContributionSearch) Save() error
- func (u *UserContributionSearch) Truncate() error
- type UserContributionSound
- func (u *UserContributionSound) Add() error
- func (u *UserContributionSound) GetByUserContributionID(uID int) (userContributionSound UserContributionSound, db *gorm.DB, err error)
- func (u *UserContributionSound) GetListByUserContributionIDList(uID []int) (userContributionSound []UserContributionSound, db *gorm.DB, err error)
- func (u *UserContributionSound) Save() error
- type UserContributionSoundDetail
- func (u *UserContributionSoundDetail) Add() error
- func (u *UserContributionSoundDetail) GetByID(id uint) (userContributionSoundDetail UserContributionSoundDetail, db *gorm.DB, ...)
- func (u *UserContributionSoundDetail) GetListByMakeStatusMade() (userContributionSoundDetail []UserContributionSoundDetail, db *gorm.DB, ...)
- func (u *UserContributionSoundDetail) GetListByUserContributionID(uID int) (userContributionSoundDetail []UserContributionSoundDetail, db *gorm.DB, ...)
- func (u *UserContributionSoundDetail) Save() error
- func (u *UserContributionSoundDetail) UpdateToMakeStatusByUserContributionID(uID int, makeStatus int) (err error)
- func (u *UserContributionSoundDetail) UpdatesToMakeStatusAndVoiceTypeByUserContributionID(uID int, makeStatus int, voiceType int) (err error)
- type UserContributionSoundLength
- func (u *UserContributionSoundLength) Add() error
- func (u *UserContributionSoundLength) GetByTop(o int, s int) (userContributionSoundLength []UserContributionSoundLength, db *gorm.DB, ...)
- func (u *UserContributionSoundLength) GetByUserContributionID(uID int) (userContributionSoundLength UserContributionSoundLength, db *gorm.DB, ...)
- func (u *UserContributionSoundLength) Save() error
- type UserContributionTag
- func (uc *UserContributionTag) Add() (err error)
- func (uc *UserContributionTag) AddList(u []UserContributionTag) (err error)
- func (uc *UserContributionTag) Delete() error
- func (uc *UserContributionTag) GetByID(id int) (userContributionTag UserContributionTag, db *gorm.DB, err error)
- func (uc *UserContributionTag) GetListByUserContributionID(id int) (userContributionTag []UserContributionTag, db *gorm.DB, err error)
- func (uc *UserContributionTag) GetListByUserContributionIDList(idList []int) (userContributionTag []UserContributionTag, db *gorm.DB, err error)
- func (uc *UserContributionTag) GetScanListByUserContributionID(id int, dest interface{}) error
- func (uc *UserContributionTag) GetScanListByUserContributionIDList(idList []int, dest interface{}) error
- func (uc *UserContributionTag) Save() error
- type UserContributionUpload
- type UserForgetPassword
- func (u *UserForgetPassword) Add() error
- func (u *UserForgetPassword) Delete() error
- func (u *UserForgetPassword) DeleteList(userForgetPassword []UserForgetPassword) error
- func (u *UserForgetPassword) GetByEmail(email string) (userForgetPassword UserForgetPassword, db *gorm.DB, err error)
- func (u *UserForgetPassword) GetListByEmail(email string) (userForgetPassword []UserForgetPassword, db *gorm.DB, err error)
- type UserMaster
- func (u *UserMaster) GetByEmail(email string) (userMaster UserMaster, db *gorm.DB, err error)
- func (u *UserMaster) GetByID(id int) (userMaster UserMaster, db *gorm.DB, err error)
- func (u *UserMaster) GetIDAndAdd() (uint, error)
- func (u *UserMaster) GetListByIDList(idList []int) (userMaster []UserMaster, db *gorm.DB, err error)
- func (u *UserMaster) GetScanByID(id int, dest interface{}) error
- func (u *UserMaster) GetScanByIDList(idList []int, dest interface{}) error
- func (u *UserMaster) Save() error
- type UserProfileImage
Constants ¶
const ( // ProblemTypeSpam 問題タイプ:スパム ProblemTypeSpam = 1 // ProblemTypeInappropriate 問題タイプ:不適切 ProblemTypeInappropriate = 2 )
const ( // StatusPublic 状態;公開 StatusPublic = 1 // StatusPrivate 状態;非公開 StatusPrivate = 2 // StatusError 状態:エラー StatusError = 3 // StatusRunning 状態:実行中 StatusRunning = 4 // StatusReMeake 状態:作り直し StatusReMeake = 5 // StatusUploading 状態:アップロード中 StatusUploading = 6 // StatusMade 状態:作成済み StatusMade = 7 )
const ( // SoundStatusPublic 音声公開状態 SoundStatusPublic = 1 // SoundStatusPrivate 音声非公開状態 SoundStatusPrivate = 2 )
const ( // TalkTypeText 会話タイプ:テキスト TalkTypeText = 1 // TalkTypeImage 会話タイプ:画像 TalkTypeImage = 2 // MakeStatusUncreated 状態:未作成 MakeStatusUncreated = 2 // MakeStatusMade 状態:作成済み MakeStatusMade = 1 )
const ErrFileTypeUnMatch = "file type unmatch"
ErrFileTypeUnMatch レコードなし
const ErrRecordeNotFound = "record not found"
ErrRecordeNotFound レコードなし
const (
// MovieTypeYoutube 動画タイプ:Youtube
MovieTypeYoutube = 1
)
const ViewStatusPrivate = 2
ViewStatusPrivate プライベート状態
const ViewStatusPublic = 1
ViewStatusPublic 公開状態
Variables ¶
This section is empty.
Functions ¶
func GeScanWhere ¶
func GeScanWhere(dest interface{}, name string, where string, bindList []map[string]interface{}, option map[string]interface{}) error
GeScanWhere 条件から置き換えリストを取得する
func GetCount ¶
func GetCount(dbModel interface{}, name string, where string, bindList []map[string]interface{}, option map[string]interface{}) (int, error)
GetCount 条件から数を取得する
func GetListWhere ¶
func GetListWhere(dbModel interface{}, where string, bindList []map[string]interface{}, option map[string]interface{}) (*gorm.DB, error)
GetListWhere 条件からリストを取得する
func GetWhere ¶
func GetWhere(dbModel interface{}, where string, bindList []map[string]interface{}, option map[string]interface{}) (*gorm.DB, error)
GetWhere 条件から取得する
func InsertBatch ¶
InsertBatch 複数挿入する
Types ¶
type BaseModel ¶
type BaseModel struct { ID uint `gorm:"primary_key" json:"id"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` DeletedAt *time.Time `json:"deletedAt"` }
BaseModel ベースモデル
type ContributionTotalFollows ¶
type ContributionTotalFollows struct { BaseModel UserContributionID int `json:"user_contribution_id"` Count int `json:"count"` }
ContributionTotalFollows ユーザー投稿フォロー総数
func (*ContributionTotalFollows) GetListByUserContributionID ¶
func (c *ContributionTotalFollows) GetListByUserContributionID(uID []int) (contributionTotalFollows []ContributionTotalFollows, db *gorm.DB, err error)
GetListByUserContributionID ユーザー投稿IDからリストを取得する
func (*ContributionTotalFollows) Truncate ¶
func (c *ContributionTotalFollows) Truncate() error
Truncate 空にする
type LogBugReport ¶
LogBugReport バグレポート
type LogContributionImage ¶
LogContributionImage 投稿画像ログ
func (*LogContributionImage) GetIDAndAdd ¶
func (l *LogContributionImage) GetIDAndAdd() (uint, error)
GetIDAndAdd 追加してIDを取得する
type LogProblemContributionReport ¶
type LogProblemContributionReport struct { BaseModel UserID int `json:"user_id"` Type int `json:"type"` UserContributionID int `json:"user_contribution_id"` }
LogProblemContributionReport 投稿画像ログ
func (*LogProblemContributionReport) Add ¶
func (l *LogProblemContributionReport) Add() error
Add 追加する
type LogQuestion ¶
type LogQuestion struct { BaseModel UserID int `json:"user_id"` Email string `json:"email"` Body string `json:"body"` }
LogQuestion 問い合わせログ
type LogUserContribution ¶
type LogUserContribution struct { BaseModel UserContributionID int `json:"user_contribution_id"` UserID int `json:"user_id"` }
LogUserContribution 投稿画像ログ
type UserCharacterImage ¶
type UserCharacterImage struct { BaseModel UserID int `json:"user_id"` CharacterID int `json:"character_id"` Priority int `json:"priority"` VoiceType int `json:"voice_type"` }
UserCharacterImage ユーザーキャラクター画像
func (*UserCharacterImage) GetByID ¶
func (u *UserCharacterImage) GetByID(id int) (userCharacterImage UserCharacterImage, db *gorm.DB, err error)
GetByID IDから取得する
func (*UserCharacterImage) GetListByUserID ¶
func (u *UserCharacterImage) GetListByUserID(uID int) (userCharacterImage []UserCharacterImage, db *gorm.DB, err error)
GetListByUserID ユーザーIDからリストを取得する
type UserContribution ¶
type UserContribution struct { BaseModel UserID int `json:"user_id"` Title string `json:"title"` ViewStatus int `json:"view_status"` }
UserContribution ユーザ投稿
func (*UserContribution) GetByID ¶
func (u *UserContribution) GetByID(id int) (userContribution UserContribution, db *gorm.DB, err error)
GetByID 投稿IDから取得する
func (*UserContribution) GetByTop ¶
func (u *UserContribution) GetByTop(o int, s int) (userContributionList []UserContribution, db *gorm.DB, err error)
GetByTop 新着から投稿リスト取得する
func (*UserContribution) GetCountByUserID ¶
func (u *UserContribution) GetCountByUserID(userID int, order string) (int, error)
GetCountByUserID 投稿IDから数を取得する
func (*UserContribution) GetIDAndAdd ¶
func (u *UserContribution) GetIDAndAdd() (uint, error)
GetIDAndAdd 投稿してIDを取得する
func (*UserContribution) GetListByIDList ¶
func (u *UserContribution) GetListByIDList(idList []int) (userContributionList []UserContribution, db *gorm.DB, err error)
GetListByIDList IDリストから投稿リストを取得する
func (*UserContribution) GetListByUserID ¶
func (u *UserContribution) GetListByUserID(userID int, order string, limit int, offset int) (userContribution []UserContribution, db *gorm.DB, err error)
GetListByUserID 投稿IDからリスト取得する
func (*UserContribution) GetListByViewStatusPublic ¶
func (u *UserContribution) GetListByViewStatusPublic() (userContributionList []UserContribution, db *gorm.DB, err error)
GetListByViewStatusPublic IDリストから投稿リストを取得する
type UserContributionDetail ¶
type UserContributionDetail struct { BaseModel UserContributionID int `json:"user_contribution_id"` Body string `json:"body"` }
UserContributionDetail ユーザー投稿詳細
func (*UserContributionDetail) GetByUserContributionID ¶
func (u *UserContributionDetail) GetByUserContributionID(uID int) (userContributionDetail UserContributionDetail, db *gorm.DB, err error)
GetByUserContributionID 投稿IDから取得する
type UserContributionFollow ¶
type UserContributionFollow struct { BaseModel UserID int `json:"user_id"` UserContributionID int `json:"user_contribution_id"` }
UserContributionFollow ユーザー投稿フォロー
func (*UserContributionFollow) GetByID ¶
func (u *UserContributionFollow) GetByID(id uint) (userContributionFollow UserContributionFollow, db *gorm.DB, err error)
GetByID IDから取得する
func (*UserContributionFollow) GetByUserIDAndUserContributionID ¶
func (u *UserContributionFollow) GetByUserIDAndUserContributionID(uID int, ucID int) (userContributionFollow UserContributionFollow, db *gorm.DB, err error)
GetByUserIDAndUserContributionID ユーザIDと投稿IDから取得する
func (*UserContributionFollow) GetCountByUserContributionID ¶
func (u *UserContributionFollow) GetCountByUserContributionID(ucID int) (int, error)
GetCountByUserContributionID 投稿IDから数を取得する
func (*UserContributionFollow) GetCountByUserID ¶
func (u *UserContributionFollow) GetCountByUserID(uID int, order string) (int, error)
GetCountByUserID ユーザIDから数を取得する
func (*UserContributionFollow) GetCountByUserIDAndUserContributionID ¶
func (u *UserContributionFollow) GetCountByUserIDAndUserContributionID(uID int, ucID int) (int, error)
GetCountByUserIDAndUserContributionID ユーザIDと投稿IDから数を取得する
func (*UserContributionFollow) GetListByUserContributionID ¶
func (u *UserContributionFollow) GetListByUserContributionID(ucID int) (userContributionFollow []UserContributionFollow, db *gorm.DB, err error)
GetListByUserContributionID 投稿IDから取得する
func (*UserContributionFollow) GetListByUserContributionIDList ¶
func (u *UserContributionFollow) GetListByUserContributionIDList(ucID []int) (userContributionFollow []UserContributionFollow, db *gorm.DB, err error)
GetListByUserContributionIDList 投稿IDリストから取得する
func (*UserContributionFollow) GetListByUserID ¶
func (u *UserContributionFollow) GetListByUserID(uID int, order string, limit int, offset int) (userContributionFollow []UserContributionFollow, db *gorm.DB, err error)
GetListByUserID ユーザIDからリストを取得する
type UserContributionMovie ¶
type UserContributionMovie struct { BaseModel UserContributionID int `json:"user_contribution_id"` MovieType int `json:"movie_type"` MovieID string `json:"movie_id"` MovieStatus int `json:"movie_status"` }
UserContributionMovie ユーザ投稿動画
func (*UserContributionMovie) GetByUserContributionID ¶
func (u *UserContributionMovie) GetByUserContributionID(uID int, t int) (userContributionMovie UserContributionMovie, db *gorm.DB, err error)
GetByUserContributionID 投稿IDから取得する
func (*UserContributionMovie) GetListByMovieStatusPublic ¶
func (u *UserContributionMovie) GetListByMovieStatusPublic() (userContributionMovie []UserContributionMovie, db *gorm.DB, err error)
GetListByMovieStatusPublic 公開中のリスト取得する
func (*UserContributionMovie) GetListByUserContributionIDList ¶
func (u *UserContributionMovie) GetListByUserContributionIDList(uID []int, t int) (userContributionMovie []UserContributionMovie, db *gorm.DB, err error)
GetListByUserContributionIDList 投稿IDリストからリスト取得する
type UserContributionSearch ¶
type UserContributionSearch struct { ID uint `gorm:"primary_key"` UserContributionID int `json:"user_contribution_id"` Search string `gorm:"index:search"` FollowCount int `json:"follow_count"` CreatedAt time.Time `json:"createdAt"` UpdatedAt time.Time `json:"updatedAt"` }
UserContributionSearch ユーザー投稿検索
func (*UserContributionSearch) GetByUserContributionID ¶
func (u *UserContributionSearch) GetByUserContributionID(id int) (userContributionSearch UserContributionSearch, db *gorm.DB, err error)
GetByUserContributionID 投稿IDから取得する
func (*UserContributionSearch) GetCountBySearch ¶
func (u *UserContributionSearch) GetCountBySearch(search string, order string) (int, error)
GetCountBySearch 検索から数を取得する
func (*UserContributionSearch) GetListBySearch ¶
func (u *UserContributionSearch) GetListBySearch(search string, order string, limit int, offset int) (userContributionSearch []UserContributionSearch, db *gorm.DB, err error)
GetListBySearch 検索からリストを取得する
func (*UserContributionSearch) GetListByUserContributionIDList ¶
func (u *UserContributionSearch) GetListByUserContributionIDList(id []int) (userContributionSearch []UserContributionSearch, db *gorm.DB, err error)
GetListByUserContributionIDList 投稿IDリストから取得する
func (*UserContributionSearch) Truncate ¶
func (u *UserContributionSearch) Truncate() error
Truncate 空にする
type UserContributionSound ¶
type UserContributionSound struct { BaseModel UserContributionID int `json:"user_contribution_id"` SoundStatus int `json:"sound_status"` }
UserContributionSound ユーザ投稿音声
func (*UserContributionSound) GetByUserContributionID ¶
func (u *UserContributionSound) GetByUserContributionID(uID int) (userContributionSound UserContributionSound, db *gorm.DB, err error)
GetByUserContributionID 投稿IDから取得する
func (*UserContributionSound) GetListByUserContributionIDList ¶
func (u *UserContributionSound) GetListByUserContributionIDList(uID []int) (userContributionSound []UserContributionSound, db *gorm.DB, err error)
GetListByUserContributionIDList 投稿IDリストからリスト取得する
type UserContributionSoundDetail ¶
type UserContributionSoundDetail struct { BaseModel UserContributionID int `json:"user_contribution_id"` Priority int `json:"priority"` TalkType int `json:"talk_type"` Body string `json:"body"` BodySound string `json:"body_sound"` VoiceType int `json:"voice_type"` MakeStatus int `json:"make_status"` }
UserContributionSoundDetail ユーザ投稿音声
func (*UserContributionSoundDetail) Add ¶
func (u *UserContributionSoundDetail) Add() error
Add 追加する
func (*UserContributionSoundDetail) GetByID ¶
func (u *UserContributionSoundDetail) GetByID(id uint) (userContributionSoundDetail UserContributionSoundDetail, db *gorm.DB, err error)
GetByID IDから取得する
func (*UserContributionSoundDetail) GetListByMakeStatusMade ¶
func (u *UserContributionSoundDetail) GetListByMakeStatusMade() (userContributionSoundDetail []UserContributionSoundDetail, db *gorm.DB, err error)
GetListByMakeStatusMade 作成済みのリスト取得する
func (*UserContributionSoundDetail) GetListByUserContributionID ¶
func (u *UserContributionSoundDetail) GetListByUserContributionID(uID int) (userContributionSoundDetail []UserContributionSoundDetail, db *gorm.DB, err error)
GetListByUserContributionID 投稿IDからリスト取得する
func (*UserContributionSoundDetail) Save ¶
func (u *UserContributionSoundDetail) Save() error
Save 保存する
func (*UserContributionSoundDetail) UpdateToMakeStatusByUserContributionID ¶
func (u *UserContributionSoundDetail) UpdateToMakeStatusByUserContributionID(uID int, makeStatus int) (err error)
UpdateToMakeStatusByUserContributionID 投稿IDから作成状態を更新する
func (*UserContributionSoundDetail) UpdatesToMakeStatusAndVoiceTypeByUserContributionID ¶
func (u *UserContributionSoundDetail) UpdatesToMakeStatusAndVoiceTypeByUserContributionID(uID int, makeStatus int, voiceType int) (err error)
UpdatesToMakeStatusAndVoiceTypeByUserContributionID 投稿IDから作成状態とボイスタイプを更新する
type UserContributionSoundLength ¶
type UserContributionSoundLength struct { BaseModel UserContributionID int `json:"user_contribution_id"` Second int `json:"second"` Length int `json:"length"` }
UserContributionSoundLength ユーザ投稿音声長さ
func (*UserContributionSoundLength) Add ¶
func (u *UserContributionSoundLength) Add() error
Add 追加する
func (*UserContributionSoundLength) GetByTop ¶
func (u *UserContributionSoundLength) GetByTop(o int, s int) (userContributionSoundLength []UserContributionSoundLength, db *gorm.DB, err error)
GetByTop 新着から投稿リスト取得する
func (*UserContributionSoundLength) GetByUserContributionID ¶
func (u *UserContributionSoundLength) GetByUserContributionID(uID int) (userContributionSoundLength UserContributionSoundLength, db *gorm.DB, err error)
GetByUserContributionID 投稿IDから取得する
func (*UserContributionSoundLength) Save ¶
func (u *UserContributionSoundLength) Save() error
Save 保存する
type UserContributionTag ¶
type UserContributionTag struct { BaseModel UserContributionID int `json:"user_contribution_id"` Name string `json:"name"` }
UserContributionTag ユーザー投稿タグ
func (*UserContributionTag) AddList ¶
func (uc *UserContributionTag) AddList(u []UserContributionTag) (err error)
AddList リストを追加する
func (*UserContributionTag) GetByID ¶
func (uc *UserContributionTag) GetByID(id int) (userContributionTag UserContributionTag, db *gorm.DB, err error)
GetByID IDから取得する
func (*UserContributionTag) GetListByUserContributionID ¶
func (uc *UserContributionTag) GetListByUserContributionID(id int) (userContributionTag []UserContributionTag, db *gorm.DB, err error)
GetListByUserContributionID 投稿IDから取得する
func (*UserContributionTag) GetListByUserContributionIDList ¶
func (uc *UserContributionTag) GetListByUserContributionIDList(idList []int) (userContributionTag []UserContributionTag, db *gorm.DB, err error)
GetListByUserContributionIDList 投稿IDリストから取得する
func (*UserContributionTag) GetScanListByUserContributionID ¶
func (uc *UserContributionTag) GetScanListByUserContributionID(id int, dest interface{}) error
GetScanListByUserContributionID 投稿IDからスキャン取得する
func (*UserContributionTag) GetScanListByUserContributionIDList ¶
func (uc *UserContributionTag) GetScanListByUserContributionIDList(idList []int, dest interface{}) error
GetScanListByUserContributionIDList 投稿IDリストからスキャン取得する
type UserContributionUpload ¶
type UserContributionUpload struct { BaseModel UserID int `json:"user_id"` UserContributionID int `json:"user_contribution_id"` Token string `json:"token"` }
UserContributionUpload ユーザ投稿アップロード
func (*UserContributionUpload) GetByUserContributionID ¶
func (u *UserContributionUpload) GetByUserContributionID(uID int) (userContributionUpload UserContributionUpload, db *gorm.DB, err error)
GetByUserContributionID 投稿IDから取得する
type UserForgetPassword ¶
type UserForgetPassword struct { BaseModel Email string `json:"email"` Keyword string `json:"keyword"` }
UserForgetPassword ユーザの忘れたパスワード
func (*UserForgetPassword) DeleteList ¶
func (u *UserForgetPassword) DeleteList(userForgetPassword []UserForgetPassword) error
DeleteList リストを削除する
func (*UserForgetPassword) GetByEmail ¶
func (u *UserForgetPassword) GetByEmail(email string) (userForgetPassword UserForgetPassword, db *gorm.DB, err error)
GetByEmail メールアドレスから取得する
func (*UserForgetPassword) GetListByEmail ¶
func (u *UserForgetPassword) GetListByEmail(email string) (userForgetPassword []UserForgetPassword, db *gorm.DB, err error)
GetListByEmail メールアドレスからリストを取得する
type UserMaster ¶
type UserMaster struct { BaseModel `model:"true"` Name string `json:"name"` Email string `json:"email" validate:"required,email"` Password string `json:"password"` ProfileImageID int `json:"profile_image_id"` }
UserMaster ユーザー情報
func (*UserMaster) GetByEmail ¶
func (u *UserMaster) GetByEmail(email string) (userMaster UserMaster, db *gorm.DB, err error)
GetByEmail メールアドレスから取得する
func (*UserMaster) GetByID ¶
func (u *UserMaster) GetByID(id int) (userMaster UserMaster, db *gorm.DB, err error)
GetByID ユーザ IDから取得する
func (*UserMaster) GetIDAndAdd ¶
func (u *UserMaster) GetIDAndAdd() (uint, error)
GetIDAndAdd 投稿してIDを取得する
func (*UserMaster) GetListByIDList ¶
func (u *UserMaster) GetListByIDList(idList []int) (userMaster []UserMaster, db *gorm.DB, err error)
GetListByIDList ユーザ IDリストからリストを取得する
func (*UserMaster) GetScanByID ¶
func (u *UserMaster) GetScanByID(id int, dest interface{}) error
GetScanByID ユーザIDからスキャン取得する
func (*UserMaster) GetScanByIDList ¶
func (u *UserMaster) GetScanByIDList(idList []int, dest interface{}) error
GetScanByIDList ユーザIDリストからスキャン取得する
type UserProfileImage ¶
UserProfileImage ユーザープロフィール画像
func (*UserProfileImage) GetIDAndAdd ¶
func (u *UserProfileImage) GetIDAndAdd() (uint, error)
GetIDAndAdd 追加してIDを取得する
func (*UserProfileImage) GetListByUserID ¶
func (u *UserProfileImage) GetListByUserID(uID int) (userProfileImage []UserProfileImage, db *gorm.DB, err error)
GetListByUserID ユーザーIDからリストを取得する
func (*UserProfileImage) GetScanByUserID ¶
func (u *UserProfileImage) GetScanByUserID(uID int, dest interface{}) error
GetScanByUserID ユーザーIDからスキャン取得する
Source Files ¶
- contribution_total_follow.go
- log_bug_report.go
- log_contribution_images.go
- log_problem_contribution_report.go
- log_questions.go
- log_user_contribution.go
- model.go
- user_character_image.go
- user_contribution.go
- user_contribution_detail.go
- user_contribution_follow.go
- user_contribution_movie.go
- user_contribution_search.go
- user_contribution_sound.go
- user_contribution_sound_detail.go
- user_contribution_sound_length.go
- user_contribution_tag.go
- user_contribution_upload.go
- user_forget_password.go
- user_master.go
- user_profile_image.go