add users
This commit is contained in:
19
backend/internal/users/resource.go
Normal file
19
backend/internal/users/resource.go
Normal file
@ -0,0 +1,19 @@
|
||||
package users
|
||||
|
||||
import (
|
||||
"gorm.io/gorm"
|
||||
)
|
||||
|
||||
type Service struct {
|
||||
db *gorm.DB
|
||||
}
|
||||
|
||||
func New(db *gorm.DB) *Service {
|
||||
return &Service{
|
||||
db: db,
|
||||
}
|
||||
}
|
||||
|
||||
type Password struct {
|
||||
Password string `json:"password"`
|
||||
}
|
Reference in New Issue
Block a user