mirror of
https://github.com/notherealmarco/WASAPhoto.git
synced 2025-05-06 04:42:36 +02:00
Add GET bans
This commit is contained in:
parent
77e9f405c6
commit
4f391f0b65
7 changed files with 117 additions and 10 deletions
|
@ -56,6 +56,7 @@ type AppDatabase interface {
|
|||
BanUser(uid string, ban string) (QueryResult, error)
|
||||
UnbanUser(uid string, unban string) (QueryResult, error)
|
||||
IsBanned(uid string, banner string) (bool, error)
|
||||
GetUserBans(uid string, start_index int, limit int) (*[]structures.UIDName, error)
|
||||
|
||||
PostPhoto(uid string) (DBTransaction, int64, error)
|
||||
DeletePhoto(uid string, photo int64) (bool, error)
|
||||
|
@ -64,7 +65,8 @@ type AppDatabase interface {
|
|||
LikePhoto(uid string, photo int64, liker_uid string) (QueryResult, error)
|
||||
UnlikePhoto(uid string, photo int64, liker_uid string) (QueryResult, error)
|
||||
|
||||
GetUserProfile(uid string) (QueryResult, *structures.UserProfile, error) // should support limits
|
||||
GetUserProfile(uid string) (QueryResult, *structures.UserProfile, error)
|
||||
GetUserPhotos(uid string, start_index int, limit int) (*[]structures.UserPhoto, error)
|
||||
GetUserStream(uid string, start_index int, limit int) (*[]structures.Photo, error)
|
||||
|
||||
GetComments(uid string, photo_id int64, requesting_uid string, start_index int, offset int) (QueryResult, *[]structures.Comment, error)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue