mirror of
https://github.com/notherealmarco/WASAPhoto.git
synced 2025-05-06 04:42:36 +02:00
Add getUserProfile and database.IsBanned
This commit is contained in:
parent
44eb1e1fa6
commit
53a764e8bb
13 changed files with 328 additions and 163 deletions
|
@ -53,6 +53,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)
|
||||
|
||||
PostPhoto(uid string) (DBTransaction, int64, error)
|
||||
DeletePhoto(uid string, photo int64) (bool, error)
|
||||
|
@ -61,7 +62,7 @@ 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) (*UserProfile, error)
|
||||
GetUserProfile(uid string) (QueryResult, *structures.UserProfile, error)
|
||||
|
||||
GetComments(uid string, photo_id int64) (QueryResult, *[]structures.Comment, error)
|
||||
PostComment(uid string, photo_id int64, comment_user string, comment string) (QueryResult, error)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue