You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
526 B
Go
14 lines
526 B
Go
package purchase
|
|
|
|
// Repository 购买记录仓储接口
|
|
type Repository interface {
|
|
// Save 保存购买记录
|
|
Save(purchase *Purchase) error
|
|
FindArticleWithId(uid uint64, contentId uint64) (*Purchase, error)
|
|
FindColumnById(uid uint64, ids ...uint64) ([]*Purchase, error)
|
|
FindArticleById(uid uint64, ids ...uint64) ([]*Purchase, error)
|
|
FindArticlesByUserId(userId uint64) ([]*Purchase, error)
|
|
FindColumnsByUserId(userId uint64) ([]*Purchase, error)
|
|
FindColumnWithId(uid uint64, contentId uint64) (*Purchase, error)
|
|
}
|