team

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TeamBean

type TeamBean struct {
	Id   int    `json:"id"`
	Name string `json:"name,notnull"`
}

type TeamRequest

type TeamRequest struct {
	Id     int    `json:"id,omitempty" validate:"number"`
	Name   string `json:"name,omitempty" validate:"required"`
	Active bool   `json:"active"`
	UserId int32  `json:"-"`
}

type TeamService

type TeamService interface {
	Create(request *TeamRequest) (*TeamRequest, error)
	FetchAll() ([]TeamRequest, error)
	FetchOne(id int) (*TeamRequest, error)
	FindTeamsByUser(userId int32) ([]team.Team, error)
	Update(request *TeamRequest) (*TeamRequest, error)
	FindTeamByAppId(appId int) (*TeamBean, error)
	FindTeamByAppName(appName string) (*TeamBean, error)
	FetchForAutocomplete() ([]TeamRequest, error)
	FindByIds(ids []*int) ([]*TeamBean, error)
}

type TeamServiceImpl

type TeamServiceImpl struct {
	// contains filtered or unexported fields
}

func NewTeamServiceImpl

func NewTeamServiceImpl(logger *zap.SugaredLogger, teamRepository team.TeamRepository,
	pipelineBuilder pipeline.PipelineBuilder, envService cluster.EnvironmentService, userService user.UserService) *TeamServiceImpl

func (TeamServiceImpl) Create

func (impl TeamServiceImpl) Create(request *TeamRequest) (*TeamRequest, error)

func (TeamServiceImpl) FetchAll

func (impl TeamServiceImpl) FetchAll() ([]TeamRequest, error)

func (TeamServiceImpl) FetchForAutocomplete

func (impl TeamServiceImpl) FetchForAutocomplete() ([]TeamRequest, error)

func (TeamServiceImpl) FetchOne

func (impl TeamServiceImpl) FetchOne(teamId int) (*TeamRequest, error)

func (TeamServiceImpl) FindByIds

func (impl TeamServiceImpl) FindByIds(ids []*int) ([]*TeamBean, error)

func (TeamServiceImpl) FindTeamByAppId

func (impl TeamServiceImpl) FindTeamByAppId(appId int) (*TeamBean, error)

func (TeamServiceImpl) FindTeamByAppName

func (impl TeamServiceImpl) FindTeamByAppName(appName string) (*TeamBean, error)

func (TeamServiceImpl) FindTeamsByUser

func (impl TeamServiceImpl) FindTeamsByUser(userId int32) ([]team.Team, error)

func (TeamServiceImpl) Update

func (impl TeamServiceImpl) Update(request *TeamRequest) (*TeamRequest, error)

Jump to

Keyboard shortcuts

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