Documentation
¶
Index ¶
- type CategoriesData
- type CategoriesResponse
- type Category
- type Client
- func (c *Client) DownloadSkill(id int, outputPath string) (string, error)
- func (c *Client) GetPackageDetail(id int) (*PackageDetailResponse, error)
- func (c *Client) GetSkillDetail(id int) (*DetailResponse, error)
- func (c *Client) GetSkillFiles(id int) (*FilesResponse, error)
- func (c *Client) HealthCheck() (*HealthResponse, error)
- func (c *Client) ImportZip(zipPath, description string, categoryID int, overwrite bool) (*ImportZipResponse, error)
- func (c *Client) ListCategories() ([]Category, error)
- func (c *Client) ListPackages(pageNum, pageSize int, keyword string) (*PackageListResponse, error)
- func (c *Client) ListSkills(pageNum, pageSize, categoryID int, keyword string) (*ListResponse, error)
- func (c *Client) Login(token string) (*LoginResponse, error)
- type DetailResponse
- type FileNode
- type FilesData
- type FilesResponse
- type HealthResponse
- type ImportZipResponse
- type ListData
- type ListResponse
- type LoginResponse
- type PackageActionResponse
- type PackageDetailResponse
- type PackageListResponse
- type Skill
- type SkillPackage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CategoriesData ¶
type CategoriesResponse ¶
type CategoriesResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data CategoriesData `json:"data"`
}
type Client ¶
func (*Client) DownloadSkill ¶
func (*Client) GetPackageDetail ¶
func (c *Client) GetPackageDetail(id int) (*PackageDetailResponse, error)
func (*Client) GetSkillDetail ¶
func (c *Client) GetSkillDetail(id int) (*DetailResponse, error)
func (*Client) GetSkillFiles ¶
func (c *Client) GetSkillFiles(id int) (*FilesResponse, error)
func (*Client) HealthCheck ¶
func (c *Client) HealthCheck() (*HealthResponse, error)
func (*Client) ListCategories ¶
func (*Client) ListPackages ¶
func (c *Client) ListPackages(pageNum, pageSize int, keyword string) (*PackageListResponse, error)
func (*Client) ListSkills ¶
func (c *Client) ListSkills(pageNum, pageSize, categoryID int, keyword string) (*ListResponse, error)
type DetailResponse ¶
type FilesResponse ¶
type HealthResponse ¶
type HealthResponse struct {
Status string `json:"status"`
}
type ImportZipResponse ¶
type ListResponse ¶
type LoginResponse ¶
type PackageActionResponse ¶
type PackageDetailResponse ¶
type PackageDetailResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data SkillPackage `json:"data"`
}
type PackageListResponse ¶
type PackageListResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data struct {
CurrentPage int `json:"currentPage"`
Total int `json:"total"`
List []SkillPackage `json:"packagesList"`
} `json:"data"`
}
type Skill ¶
type Skill struct {
ID int `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Version string `json:"version"`
CategoryID int `json:"categoryId"`
CategoryName string `json:"categoryName"`
Status int `json:"status"`
IsPublic bool `json:"isPublic"`
IsValid bool `json:"isValid"`
FilePath string `json:"filePath"`
License string `json:"license"`
DownloadCount int `json:"downloadCount"`
StarCount int `json:"starCount"`
FileSize int64 `json:"fileSize"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
ValidatedAt string `json:"validatedAt"`
Tags []string `json:"tags"`
}
type SkillPackage ¶
type SkillPackage struct {
ID int `json:"id"`
Name string `json:"name"`
Description string `json:"description"`
Color string `json:"color"`
CategoryID int `json:"categoryId"`
CategoryName string `json:"categoryName"`
IsFavorite bool `json:"isFavorite"`
SkillCount int `json:"skillCount"`
Skills []Skill `json:"skills,omitempty"`
CreatedAt string `json:"createdAt"`
UpdatedAt string `json:"updatedAt"`
}
Click to show internal directories.
Click to hide internal directories.