33 lines
838 B
Go
33 lines
838 B
Go
package adminuser
|
|
|
|
type userRequest struct {
|
|
Username string `json:"username" binding:"required"`
|
|
Name string `json:"name" binding:"required"`
|
|
Team string `json:"team"`
|
|
Status string `json:"status"`
|
|
Password string `json:"password"`
|
|
MFAEnabled bool `json:"mfaEnabled"`
|
|
RoleIDs []uint `json:"roleIds"`
|
|
}
|
|
|
|
type updateUserRequest struct {
|
|
Name *string `json:"name"`
|
|
Team *string `json:"team"`
|
|
Status *string `json:"status"`
|
|
MFAEnabled *bool `json:"mfaEnabled"`
|
|
RoleIDs *[]uint `json:"roleIds"`
|
|
}
|
|
|
|
type statusRequest struct {
|
|
Status string `json:"status" binding:"required"`
|
|
}
|
|
|
|
type resetPasswordRequest struct {
|
|
Password string `json:"password"`
|
|
}
|
|
|
|
type batchStatusRequest struct {
|
|
IDs []uint `json:"ids" binding:"required"`
|
|
Status string `json:"status" binding:"required"`
|
|
}
|