implement user create/delete and group membership add/delete routes

This commit is contained in:
alu committed 2026-04-22 16:24:01 +00:00
1 parent a945f3aed6
commit d82602e508
2 files changed
+165 -2

No files matched your search

+14
View File
@@ -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"`
}