app

package
v1.4.0-beta Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExceedMaxRelatedResourceNumError

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

type GlobalProjectDTO

type GlobalProjectDTO struct {
	ProjectSummaryDTO
	AvatarId string `json:"avatar_id"`
}

type GlobalProjectsDTO

type GlobalProjectsDTO struct {
	Total    int                `json:"total"`
	Projects []GlobalProjectDTO `json:"projects"`
}

Project

type PrivateRepoError

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

type ProjectCreateCmd

type ProjectCreateCmd struct {
	Owner     domain.Account
	Name      domain.ResourceName
	Desc      domain.ResourceDesc
	Title     domain.ResourceTitle
	Type      domain.ProjType
	CoverId   domain.CoverId
	RepoType  domain.RepoType
	Protocol  domain.ProtocolName
	Training  domain.TrainingPlatform
	Tags      []string
	TagKinds  []string
	All       []domain.DomainTags
	Hardware  domain.Hardware
	BaseImage domain.BaseImage
}

func (*ProjectCreateCmd) Validate

func (cmd *ProjectCreateCmd) Validate() error

type ProjectDTO

type ProjectDTO struct {
	Id            string   `json:"id"`
	Owner         string   `json:"owner"`
	Name          string   `json:"name"`
	Desc          string   `json:"desc"`
	Title         string   `json:"title"`
	Type          string   `json:"type"`
	CoverId       string   `json:"cover_id"`
	Protocol      string   `json:"protocol"`
	Training      string   `json:"training"`
	RepoType      string   `json:"repo_type"`
	RepoId        string   `json:"repo_id"`
	Tags          []string `json:"tags"`
	CreatedAt     string   `json:"created_at"`
	UpdatedAt     string   `json:"updated_at"`
	LikeCount     int      `json:"like_count"`
	ForkCount     int      `json:"fork_count"`
	DownloadCount int      `json:"download_count"`
}

type ProjectDetailDTO

type ProjectDetailDTO struct {
	ProjectDTO

	RelatedModels   []app.ResourceDTO `json:"related_models"`
	RelatedDatasets []app.ResourceDTO `json:"related_datasets"`
}

type ProjectForkCmd

type ProjectForkCmd struct {
	Name      domain.ResourceName
	Desc      domain.ResourceDesc
	From      spacedomain.Project
	Owner     domain.Account
	ValidTags []domain.DomainTags
}

type ProjectSummaryDTO

type ProjectSummaryDTO struct {
	Id            string   `json:"id"`
	Owner         string   `json:"owner"`
	Name          string   `json:"name"`
	Desc          string   `json:"desc"`
	Title         string   `json:"title"`
	Level         string   `json:"level"`
	CoverId       string   `json:"cover_id"`
	Tags          []string `json:"tags"`
	UpdatedAt     string   `json:"updated_at"`
	LikeCount     int      `json:"like_count"`
	ForkCount     int      `json:"fork_count"`
	DownloadCount int      `json:"download_count"`
}

type ProjectUpdateCmd

type ProjectUpdateCmd struct {
	Name     domain.ResourceName
	Desc     domain.ResourceDesc
	Title    domain.ResourceTitle
	RepoType domain.RepoType
	CoverId  domain.CoverId
}

only admin user can update level of project

type ProjectsDTO

type ProjectsDTO struct {
	Total    int                 `json:"total"`
	Projects []ProjectSummaryDTO `json:"projects"`
}

Jump to

Keyboard shortcuts

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