follows

package
v0.0.0-...-a74fbde Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 21, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(uID int, cID int) error

Add 詳細を保存する

func AddTotal

func AddTotal(uID int, count int) error

AddTotal 統計を追加する

func AddTotalMap

func AddTotalMap(m map[int]int) error

AddTotalMap 統計マップを追加する

func Delete

func Delete(id uint) error

Delete フォローを削除する

func GetByUserIDAndUserContributionID

func GetByUserIDAndUserContributionID(uID int, ucID int) (models.UserContributionFollow, error)

GetByUserIDAndUserContributionID ユーザIDと投稿IDから取得する

func GetCountByUserContributionID

func GetCountByUserContributionID(cID int) (int, error)

GetCountByUserContributionID 投稿IDからフォロー数を取得する

func GetCountByUserID

func GetCountByUserID(uID int, order string) (int, error)

GetCountByUserID ユーザIDから数を取得する

func GetCountByUserIDAndUserContributionID

func GetCountByUserIDAndUserContributionID(uID int, ucID int) (int, error)

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

func GetTotalMapByUserContributionIDList(idList []int) (map[int]int, error)

GetTotalMapByUserContributionIDList 投稿IDリストから統計を取得する

func TruncateTotal

func TruncateTotal() error

TruncateTotal 統計を空にする

Types

type OrderValue

type OrderValue struct {
	UserContributionID int
	Order              int
}

OrderValue 順番値

func GetOrderValueListByUserID

func GetOrderValueListByUserID(uID int, order string, limit int, offset int) (o []OrderValue, err error)

GetOrderValueListByUserID ユーザIDから順番値リストを取得する

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL