Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewService ¶
func NewService(auth app.AuthRepository, account app.AccountRepository) *service
Types ¶
type Service ¶
type Service interface { AuthLogin(ctx context.Context, in *app.LoginInput) (*app.Accounts, string, error) GetProfile(ctx context.Context, id string) (*app.Accounts, string, error) NewAccount(ctx context.Context, adminID string, roleName string, in *app.RegisterInput) error ListAccount(ctx context.Context, adminId string, roleName string) ([]app.Accounts, error) DeleteAccount(ctx context.Context, adminId string, roleName string, userID string, userName string) error GetAccessList(ctx context.Context) (app.AccessControl, error) NewAccessControlList(ctx context.Context, adminId string, roleAdmin string, control *app.AssignRole) error }
Click to show internal directories.
Click to hide internal directories.