2022-06-28 07:32:25 -05:00
|
|
|
package org
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
)
|
|
|
|
|
|
|
|
type Service interface {
|
|
|
|
GetIDForNewUser(context.Context, GetOrgIDForNewUserCommand) (int64, error)
|
2022-07-15 11:06:44 -05:00
|
|
|
InsertOrgUser(context.Context, *OrgUser) (int64, error)
|
|
|
|
DeleteUserFromAll(context.Context, int64) error
|
2022-08-16 10:50:45 -05:00
|
|
|
GetUserOrgList(context.Context, *GetUserOrgListQuery) ([]*UserOrgDTO, error)
|
2022-09-20 02:55:40 -05:00
|
|
|
UpdateOrg(context.Context, *UpdateOrgCommand) error
|
|
|
|
Search(context.Context, *SearchOrgsQuery) ([]*OrgDTO, error)
|
2022-09-20 05:57:51 -05:00
|
|
|
GetByID(context.Context, *GetOrgByIdQuery) (*Org, error)
|
2022-09-27 09:53:45 -05:00
|
|
|
GetByName(context.Context, *GetOrgByNameQuery) (*Org, error)
|
2022-09-22 12:02:55 -05:00
|
|
|
CreateWithMember(context.Context, *CreateOrgCommand) (*Org, error)
|
2022-09-21 11:00:18 -05:00
|
|
|
UpdateAddress(context.Context, *UpdateOrgAddressCommand) error
|
|
|
|
Delete(context.Context, *DeleteOrgCommand) error
|
|
|
|
GetOrCreate(context.Context, string) (int64, error)
|
2022-09-23 02:58:17 -05:00
|
|
|
AddOrgUser(context.Context, *AddOrgUserCommand) error
|
|
|
|
UpdateOrgUser(context.Context, *UpdateOrgUserCommand) error
|
|
|
|
RemoveOrgUser(context.Context, *RemoveOrgUserCommand) error
|
2022-09-23 06:19:34 -05:00
|
|
|
GetOrgUsers(context.Context, *GetOrgUsersQuery) ([]*OrgUserDTO, error)
|
|
|
|
SearchOrgUsers(context.Context, *SearchOrgUsersQuery) (*SearchOrgUsersQueryResult, error)
|
2022-06-28 07:32:25 -05:00
|
|
|
}
|