20 lines
208 B
Go
20 lines
208 B
Go
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"`
|
|
}
|