Add invite user feature for admin
This commit is contained in:
@@ -70,3 +70,7 @@ type UserSignup struct {
|
||||
Username string `json:"username" binding:"required,min=2,max=20"`
|
||||
Password string `json:"password" binding:"required,min=6,max=100"`
|
||||
}
|
||||
|
||||
type UserToInvite struct {
|
||||
Username string `json:"username" binding:"required,min=2,max=20"`
|
||||
}
|
||||
|
||||
@@ -83,6 +83,13 @@ type UserGet struct {
|
||||
ID uint `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Admin bool `json:"admin"`
|
||||
Activated bool `json:"activated"`
|
||||
InviteToken string `json:"invitetoken"`
|
||||
AddedBooksCount int64 `json:"addedbookscount"`
|
||||
UserBooksCount int64 `json:"userbookscount"`
|
||||
}
|
||||
|
||||
type InviteUserPost struct {
|
||||
ID uint `json:"id"`
|
||||
Token string `json:"token"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user