org

package
v0.0.0-...-400e89d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2024 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetOrgId

func GetOrgId(ctx context.Context, service org.OrgServiceClient, orgSid string) (orgId int64, err error, errStatus int)

func NewOrgApi

func NewOrgApi(orgService grpc.OrgServiceClient, userService userGrpc.UserServiceClient, aclService accesscontrol.Service, quotaService quota.Service) *orgApi

Types

type Api

type Api interface {
	// query
	GetOrgById(*gin.Context)
	GetOrgList(*gin.Context)
	GetWorkspaceList(*gin.Context)
	GetMemberList(*gin.Context)

	// mutation
	CreateOrg(*gin.Context)
	UpdateOrgById(*gin.Context)
	DeleteOrgById(*gin.Context)
	ChangeOrgVisibility(*gin.Context)
}

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 CreateOrgDTO struct {
	Data *model.Org `json:"data" binding:"required"`
}

type DeleteOrgByIdCommand

type DeleteOrgByIdCommand struct {
	OrgId int64
}

type DeleteOrgByIdUriParams

type DeleteOrgByIdUriParams struct {
	OrgSid string `uri:"orgSid" binding:"required,sid"`
}

type GetMemberListDTO

type GetMemberListDTO struct {
	Data []*user.MemberDTO `json:"data" binding:"required"`
}

type GetMemberListQuery

type GetMemberListQuery struct {
	OrgSid string `uri:"orgSid" binding:"required,sid"`
	OrgId  int64  `uri:"-"`
}

type GetOrgByIdDTO

type GetOrgByIdDTO struct {
	Data *model.Org `json:"data" binding:"required"`
}

type GetOrgByIdQuery

type GetOrgByIdQuery struct {
	OrgSid string `uri:"orgSid" binding:"required,sid"`
	OrgId  int64  `uri:"-"`
}

type GetOrgListDTO

type GetOrgListDTO struct {
	Data []*model.Org `json:"data" binding:"required"`
}

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 GetWorkspaceListDTO struct {
	Data []*model.Workspace `json:"data" binding:"required"`
}

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL