implement user create/delete and group membership add/delete routes
This commit is contained in:
@@ -5,3 +5,17 @@ type Login struct { // login body struct
|
||||
Username Username
|
||||
Password string `form:"password" binding:"required"`
|
||||
}
|
||||
|
||||
type UserFormRequired struct { // add user body struct
|
||||
CN string `form:"cn" binding:"required"`
|
||||
SN string `form:"sn" binding:"required"`
|
||||
Mail string `form:"mail" binding:"required"`
|
||||
Password string `form:"password" binding:"required"`
|
||||
}
|
||||
|
||||
type UserFormOptional struct { // modify user body struct
|
||||
CN string `form:"cn"`
|
||||
SN string `form:"sn"`
|
||||
Mail string `form:"mail"`
|
||||
Password string `form:"password"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user