add mail attribute to user,

bump API version to 1.0.3
This commit is contained in:
2025-02-11 07:09:48 +00:00
parent fa9abe19fc
commit ef51f6d31d
3 changed files with 18 additions and 6 deletions

View File

@@ -113,12 +113,14 @@ func LDAPGroupToGin(group LDAPGroup) gin.H {
type UserOptional struct { // add or modify user body struct
CN string `form:"cn"`
SN string `form:"sn"`
Mail string `form:"mail"`
UserPassword string `form:"userpassword"`
}
type UserRequired struct { // add or modify user body struct
CN string `form:"cn" binding:"required"`
SN string `form:"sn" binding:"required"`
Mail string `form:"mail" binding:"required"`
UserPassword string `form:"userpassword" binding:"required"`
}