Documentation ¶
Index ¶
- func Add(uID int, cID int) error
- func AddTotal(uID int, count int) error
- func AddTotalMap(m map[int]int) error
- func Delete(id uint) error
- func GetByUserIDAndUserContributionID(uID int, ucID int) (models.UserContributionFollow, error)
- func GetCountByUserContributionID(cID int) (int, error)
- func GetCountByUserID(uID int, order string) (int, error)
- func GetCountByUserIDAndUserContributionID(uID int, ucID int) (int, error)
- func GetFollowCountMap(u []models.UserContributionFollow) map[int]int
- func GetListByUserContributionID(cID int) ([]models.UserContributionFollow, error)
- func GetListByUserContributionIDList(cID []int) ([]models.UserContributionFollow, error)
- func GetListByUserID(uID int, order string, limit int, offset int) ([]models.UserContributionFollow, error)
- func GetTotalListByUserContributionIDList(idList []int) ([]models.ContributionTotalFollows, error)
- func GetTotalMapByUserContributionIDList(idList []int) (map[int]int, error)
- func TruncateTotal() error
- type OrderValue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetByUserIDAndUserContributionID ¶
func GetByUserIDAndUserContributionID(uID int, ucID int) (models.UserContributionFollow, error)
GetByUserIDAndUserContributionID ユーザIDと投稿IDから取得する
func GetCountByUserContributionID ¶
GetCountByUserContributionID 投稿IDからフォロー数を取得する
func GetCountByUserID ¶
GetCountByUserID ユーザIDから数を取得する
func GetCountByUserIDAndUserContributionID ¶
GetCountByUserIDAndUserContributionID ユーザIDと投稿IDから件数を取得する
func GetFollowCountMap ¶
func GetFollowCountMap(u []models.UserContributionFollow) map[int]int
GetFollowCountMap フォロー数マップを取得する
func GetListByUserContributionID ¶
func GetListByUserContributionID(cID int) ([]models.UserContributionFollow, error)
GetListByUserContributionID 投稿IDからフォローリストを取得する
func GetListByUserContributionIDList ¶
func GetListByUserContributionIDList(cID []int) ([]models.UserContributionFollow, error)
GetListByUserContributionIDList 投稿IDリストからフォローリストを取得する
func GetListByUserID ¶
func GetListByUserID(uID int, order string, limit int, offset int) ([]models.UserContributionFollow, error)
GetListByUserID ユーザIDからリストを取得する
func GetTotalListByUserContributionIDList ¶
func GetTotalListByUserContributionIDList(idList []int) ([]models.ContributionTotalFollows, error)
GetTotalListByUserContributionIDList 投稿IDリストから統計を取得する
func GetTotalMapByUserContributionIDList ¶
GetTotalMapByUserContributionIDList 投稿IDリストから統計を取得する
Types ¶
type OrderValue ¶
OrderValue 順番値
func GetOrderValueListByUserID ¶
func GetOrderValueListByUserID(uID int, order string, limit int, offset int) (o []OrderValue, err error)
GetOrderValueListByUserID ユーザIDから順番値リストを取得する
Click to show internal directories.
Click to hide internal directories.