init
This commit is contained in:
27
internal/model/user/user.go
Normal file
27
internal/model/user/user.go
Normal file
@@ -0,0 +1,27 @@
|
||||
package user
|
||||
|
||||
type User struct {
|
||||
ID uint32 `json:"id"`
|
||||
Email string `json:"email"`
|
||||
Name string `json:"name"`
|
||||
PasswordHash string `json:"password_hash"`
|
||||
Role string `json:"role"`
|
||||
}
|
||||
|
||||
type CreateUserDTO struct {
|
||||
Email string `json:"email"`
|
||||
Name string `json:"name"`
|
||||
PasswordHash string `json:"password_hash"`
|
||||
Role string `json:"role"`
|
||||
}
|
||||
|
||||
type UpdateUserDTO struct {
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
type ResponseDTO struct {
|
||||
ID uint32 `json:"id"`
|
||||
Email string `json:"email"`
|
||||
Name string `json:"name"`
|
||||
Role string `json:"role"`
|
||||
}
|
||||
Reference in New Issue
Block a user