update
This commit is contained in:
@@ -8,8 +8,8 @@ import (
|
||||
)
|
||||
|
||||
type DepartmentRepository interface {
|
||||
Initialize(ctx context.Context) error
|
||||
Create(ctx context.Context, obj *Department) error
|
||||
Initialize(ctx context.Context) (*Department, error)
|
||||
Create(ctx context.Context, obj *Department) (*Department, error)
|
||||
Update(ctx context.Context, obj *Department) error
|
||||
Get(ctx context.Context, id int32) (*Department, error)
|
||||
All(ctx context.Context) ([]*Department, error)
|
||||
|
||||
@@ -9,7 +9,7 @@ import (
|
||||
|
||||
type RoleRepository interface {
|
||||
Initialize(ctx context.Context) (*Role, error)
|
||||
Create(ctx context.Context, obj *Role) error
|
||||
Create(ctx context.Context, obj *Role) (*Role, error)
|
||||
Update(ctx context.Context, obj *Role) error
|
||||
Get(ctx context.Context, id int32) (*Role, error)
|
||||
GetByVip(ctx context.Context, vip bool) (*Role, error)
|
||||
|
||||
@@ -11,8 +11,8 @@ import (
|
||||
|
||||
type UserRepository interface {
|
||||
Initialize(ctx context.Context, departId, roleId int32) error
|
||||
Create(ctx context.Context, obj *User) error
|
||||
Update(ctx context.Context, obj *User) error
|
||||
Create(ctx context.Context, obj *User) (*User, error)
|
||||
Update(ctx context.Context, obj *User) (*User, error)
|
||||
Get(ctx context.Context, id int32) (*User, error)
|
||||
GetByEmail(ctx context.Context, email string) (*User, error)
|
||||
All(ctx context.Context) ([]*User, error)
|
||||
|
||||
Reference in New Issue
Block a user