Ability to add friends. Also, made a few helper functions.
This commit is contained in:
1 parent
7b82c98352
commit
44d12d2493
7 files changed
+116
-26
No files matched your search
@@ -13,3 +13,13 @@ type MethodData struct {
|
||||
RequestData []byte
|
||||
C *gin.Context
|
||||
}
|
||||
|
||||
// Err logs an error into gin.
|
||||
func (md MethodData) Err(err error) {
|
||||
md.C.Error(err)
|
||||
}
|
||||
|
||||
// ID retrieves the Token's owner user ID.
|
||||
func (md MethodData) ID() int {
|
||||
return md.User.UserID
|
||||
}
|
||||
Reference in new issue
Block a user