Documentation ¶
Index ¶
- func GetOrgId(ctx context.Context, service org.OrgServiceClient, orgSid string) (orgId int64, err error, errStatus int)
- func NewOrgApi(orgService grpc.OrgServiceClient, userService userGrpc.UserServiceClient, ...) *orgApi
- type Api
- type ChangeOrgVisibilityCommand
- type ChangeOrgVisibilityUriParams
- type CreateOrgCommand
- type CreateOrgDTO
- type DeleteOrgByIdCommand
- type DeleteOrgByIdUriParams
- type GetMemberListDTO
- type GetMemberListQuery
- type GetOrgByIdDTO
- type GetOrgByIdQuery
- type GetOrgListDTO
- type GetOrgListQuery
- type GetOrgVisibilityByIdQuery
- type GetUserAssignmentListQuery
- type GetWorkspaceListDTO
- type GetWorkspaceListQuery
- type UpdateOrgByIdCommand
- type UpdateOrgByIdUriParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewOrgApi ¶
func NewOrgApi(orgService grpc.OrgServiceClient, userService userGrpc.UserServiceClient, aclService accesscontrol.Service, quotaService quota.Service) *orgApi
Types ¶
type ChangeOrgVisibilityCommand ¶
type ChangeOrgVisibilityCommand struct { OrgId int64 `json:"-"` Visibility model.ScopeVisibility `json:"visibility" binding:"required"` }
type ChangeOrgVisibilityUriParams ¶
type ChangeOrgVisibilityUriParams struct {
OrgSid string `uri:"orgSid" binding:"required,sid"`
}
type CreateOrgCommand ¶
type CreateOrgCommand struct {
Payload *model.OrgMutation `json:"payload" binding:"required"`
}
type CreateOrgDTO ¶
type DeleteOrgByIdCommand ¶
type DeleteOrgByIdCommand struct {
OrgId int64
}
type DeleteOrgByIdUriParams ¶
type DeleteOrgByIdUriParams struct {
OrgSid string `uri:"orgSid" binding:"required,sid"`
}
type GetMemberListDTO ¶
type GetMemberListQuery ¶
type GetOrgByIdDTO ¶
type GetOrgByIdQuery ¶
type GetOrgListDTO ¶
type GetOrgListQuery ¶
type GetOrgListQuery struct { OrgIdList []int32 Visibility model.ScopeVisibility }
type GetOrgVisibilityByIdQuery ¶
type GetOrgVisibilityByIdQuery struct {
OrgId int32
}
type GetUserAssignmentListQuery ¶
type GetUserAssignmentListQuery struct {
OrgId int32 `uri:"orgId" binding:"required"`
}
type GetWorkspaceListDTO ¶
type GetWorkspaceListQuery ¶
type GetWorkspaceListQuery struct { OrgSid string `uri:"orgSid" binding:"required,sid"` OrgId int64 `uri:"-"` Visibility model.ScopeVisibility `uri:"-"` }
type UpdateOrgByIdCommand ¶
type UpdateOrgByIdCommand struct { OrgId int64 `json:"-"` Payload *model.OrgMutation `json:"payload" binding:"required"` }
type UpdateOrgByIdUriParams ¶
type UpdateOrgByIdUriParams struct {
OrgSid string `uri:"orgSid" binding:"required,sid"`
}
Click to show internal directories.
Click to hide internal directories.